I have a requirement where I have to give a pop-up message in an exit which is triggered in update task. Is it technically possible?
To be precise the exit is EXIT_SAPLL03T_002(triggered during TO confirmation.)
I have a requirement where I have to give a pop-up message in an exit which is triggered in update task. Is it technically possible?
To be precise the exit is EXIT_SAPLL03T_002(triggered during TO confirmation.)
Hi,
I want to display dynamic material numbers on a custom screem based on input but i am getting the following Dump:
Runtime Errors DYNPRO_ITAB_ERROR
Date and Time 12/23/2012 08:40:33
Short text
Error in internal table in screen
What happened?
The current screen processing action was terminated since a situation
occurred where the application could not continue.
This is probably due to an error in the ABAP program or in the current
screen.
Error analysis
The program "YTESTFORM" has terminated.
The following error occurred (short text of cause of error):
"FX099: Wrong fieldtype for CURSOR. Has to be binary/hex type."
The following elements are affected:
Screen name.............. "YTESTFORM"
Screen number............ 0200
This error is connected to the processing of an internal table with the
field or variable "C", and was triggered within in the program.
Trigger Location of Runtime Error
Program YTESTFORM
Module Name SYSTEM-EXIT
Code below:
PROCESS BEFORE OUTPUT.
loop at i_ytest2 into w_ytest2 cursor c from n1 to
n2. (Getting dump on this loop)
chain.
field: ytest11-matnr.
module dynpro_modifiz_loop_0200.
endchain.
endloop.
*
PROCESS AFTER INPUT.
loop.
chain.
field: ytest11-matnr.
* module dynpro_0901_input.
endchain.
endloop.
Requirement - For one ZLAR contract type i have to get the contract end date VEDA-VENDDAT at item level based on the Material offset days.
Material offset days are maintaining in a custom table. Based on the offset no of days the contract end date needs to be calculated.
Contract end date = Contract_start_date + Offset no of days
I'm trying to code in 'userexit_move_field_to_vbap'. But the changes are not reflecting in VA41 contract end date in item level. I'm moving the values to XVEDA-VENDAT but the enddate is not populating. i donot find VEDA-VENDDAT and MATNR at on place. Could anyone suggest me how this could be done.
Appreciate for the help.
hi experts,
i have a requirement where i have 2 fields and 2 radio buttons on the selection screen. when i click on 2nd radio button a 3rd field is visible. the first two fields are obligatory.
when i try to toggle between different radio buttons it is not allowing me by showing "fill required field error".
to avoid this i have written a code to make the 3rd field visible at selection screen output event and also made the screen-required =2 for the first two fields.
now it is allowing to toggle between radio buttons and 3rd is visible when i click on 2nd radio button.
i have wriiten a code under start of selection event to throw an error message when first two fields are blank and execute button is clicked.
displayed the error message as MESSAGE 'XYZ' type 'S' DISPLAY LIKE 'E' so that the it remains in the same screen.
but now thye problem is when first field is having some value and second field is blank the cursor is still in the first field it is not going to the error field,.
please suggest a way to do it.
it is not possible to write the code in AT SELECTION SCREEN event as it would give the error message even when we toggle between theradio buttons.
Please suggest.
thanks & Regards,
Pritha
How to link those two fields kalnr and kaln1?
Hi experts,
I am new in ABAP. Can any one help me.
we have a requirement the all debit and credit entries on a customers account has to be cleared automatically.
Now I want to clear the open items using FIFO procedure, that is credit entries on a customers account will be cleared against the oldest open invoice.
I already developed code for picking Customer's all Invoices and all payment and credit note .
On fifo basis I can adjust invoice against payments. Now How can I post clearing.
Is there any BAPI available on this regards or I am missing something ?
Hi All.
I using BAPI SD_SALESDOCUMENT_CREATE to create sales order.
When I create a document the foreigner carrier is changed to other, I checked the master data and it has partner function defined.
wa_partners-partn_role = 'FC'. "Frieght carrier
wa_partners-partn_numb = int_order-kunnr2.
Hello all,
I have a small issue in my requirement. I have the following selection screen in my report and I had to put drop downs as shown:
Now the drop downs are parameters and not select-options as shown below :
I am populating the drop down for the username using the FM VRM_SET_VALUES as shown:
Now, the main issue that I have is that I need to pass the username from the drop downs as a range in a custom function module.
This is the approach I took:
I created a range table:
I appended the values:
However, on debugging I can see the the parameters I3_CASH and I2_CASH are not holding any values at all.
So the range table LT_USNAM2 passed to the FM is empty
So can anyone please help me out as to how to populate the range table so that I can get the higher and lower values and append them so they can be passed to the FM ?
Regards,
Manish
Hi All,
Below is the proposed solution by abapers and would like to share it a document.
Scenario:
Could you please tell me how to do enhancement when uploading attachment in sales order edit mode VA02? We've a requirement to send email to related users when someone upload a new attachment for specific document type in VA02, I did google but have no clear clue. I only know there are some FMs named GOS_* and objects named CL_GOS_*, then I try to put breakpoint on all of them and upload file in VA02, I got the result when first click the GOS icon in VA02, the CHECK_STATUS method of CL_GOS_SRV_ATTACHMENT_CREATE is triggered, but it's not triggered for all other methods. I also tried to create a new class inherit from CL_GOS_SERVICE and do similiar work as CL_GOS_SRV_ATTACHMENT_CREATE does, then register the new class for service PCATTA_CREA by customizing SGOSATTR in SM30, but it still not triggered.
Does anyone have experience about similiar requirement? what exact class or FM will be triggered when uploading attachments in VA02? and how can I enhance them to add our own logic of sending email for specific document type?
Any suggestion is very appreciated.
Best Regards,
Jeff
消息编辑者为:Jeff liu
Hi Jeff,
The method you followed is correct. What I would normally do is, create a new class, inheriting from CL_GOS_SRV_ATTACHMENT_CREATE and redefine method EXECUTE. One thing which you may check is, while registering this in SGOSATTR , you may have to change the service type (TYPE) to "Single service" to make it trigger. And you have to give the new class name there in CLSNAME. Put a break point in your new EXECUTE. It should trigger.
Regards,
Gokul
Another solution would be to use BAdI GOS_SRV_REQUEST "GOS: Catch Request of a Generic Service" to override the calling of the Generic Object Services. You could encapsulate the standard call in your code or you could also call the copied class created using Gokul suggestion.
Regards,
Raymond
PS: When I discovered this BAdI, I was able to put SGOSATTR data back to its standard values.
Hi Gokul,
Thank you for the information. But actually I did just the same as you. Below is my steps:
1. create a new class ZCL_GOS_SRV_ATTACHMENT_CREATE inherit from CL_GOS_SRV_ATTACHMENT_CREATE, as a test, in all the methods I did nothing but just call SUPER->method. Then put breakpoint in methods IF_GOS_SERVICE_ON_CREATE~ON_OBJECT_CREATED, EXECUTE, ON_SERVICE_SUCCEEDED, CHECK_STATUS.
2. register ZCL_GOS_SRV_ATTACHMENT_CREATE in SGOSATTR, here I select service name PCATTA_CREA, I put ZCL_GOS_SRV_ATTACHMENT_CREATE in field "Class f.Gen.Service", select "Single Service" in field "Service Type".
3. start VA02, then click GOS icon, the method CHECK_STATUS get triggered for several times, after that, the GOS menu can be used, then I click again the GOS icon and in the menu choose "Create"->"Create Attachment". The import file pop-up window appears, but after I select a file and click open button. None of the breakpoint gets triggered now. But I can see the file actually has been uploaded.
4. I also tried to use "Attachment list" menu under GOS icon in VA02 and then click "New" button to do the same upload process and still the methods not triggered.
Is there any step that I made mistake?
PS: We are using SAPKA70103 package, is it because of patch version? I searched notes but could not find anything mentioned patch level reason, so I think it should not because of package.
Thank you again!
Jeff
Hi Raymond,
I also tried your BADI GOS_SRV_REQUEST in SE19 but seems it still not work. The method I implement is if_ex_gos_srv_request~start_service. I also did nothing but just set a breakpoint and then activate the BADI, then I did as upper steps and found it still not get triggered. Looks very strange.
Jeff
Declare your class into table SGOSCUST not in SGOSATTR
Hi George,
Also tried your solution but still not work. Below is my steps, to make you better understand, I also attached some screen shots:
1. Create class ZCL_GOS_SRV_ATTACHMENT_CREATE inherit from CL_GOS_SRV_ATTACHMENT_CREATE
2. Set break point in method EXECUTE
3. Register it into SGOSCUST as you suggested
After I select a file from my gui client, the file successfully imported but the break point still not triggered. So I think your suggestion does not work.
Please correct me if something wrong. Thanks!
Also it looks very strange that after the file imported, I think there should have some message prompting the result, but actually it doesnot happen, just like nothing happened, but when I open the attachment list, the file is really imported.
Jeff
Hi Jeff
do not panic just set an external breakpoint and will work GOS services use RFC to work
Hi,
I agree with George. Try external break point. I also tried the same earlier.
Regards,
Gokul
Hi George,
Thank you very much for pointing out my mistake. yes, you are right. I set external break point and found the method EXECUTE get triggered while clicking menu "create"->"create attachment". Then I pressed F8 to continue and saw the import file window pop-up. But after I selected a file, it comes back to the end of the EXECUTE method, if i go on pressing F8, the other break points in my class like IF_GOS_SERVICE_ON_CREATE~ON_OBJECT_CREATED and ON_SERVICE_SUCCEEDED still not triggered. When I press F6 in EXECUTE method, the FM SGOS_OBJECT_ADD_TO_HISTORY then object CL_GOS_DIRECT method START_SERVICE then FM GOS_EXECUTE_SERVICE are called by sequence but seems not able to enhance them freely. How can I do then?
Hi George and Gokul,
Sorry, I was totally confused by the break point issue. I didn't realize after the file import screen, i can get the result, if no exception occurred, then i can write my own logic in the method EXECUTE, just after CALL METHOD SUPER->EXECUTE.
Thank you again!
Jeff
This document was generated from the following discussion: GOS enhancement in sales order
Hi,
My requirement is While Doing TECO in IW32 User status needs to change LOCK(E0011).
I am using user exit IWO10009 in that using I_CHANGE_STATUS I am changing the Status to LOCK.
But its going for DUMP.
The dump is because of JEST and JCDS inconsistent.
Is there any user exit/BADI instead of FM to change the User Status to LOCK in IW32 while doing TECO?
DUMP DETAILS: UPDATE_JCDS Inconsistent :STATUS :E0010.
Dear all,
I want access(Read) .csv file from any server in sap abap , please tell me how to access it. any function module available for this.
Hi All,
I am trying to pass the name of the action along with its parameters to the DO_ACTION()
method of the/BOBF/IF_TRA_SERVICE_MANAGER
interface. But the action is not getting triggered. Instead it is filling the failed key table. The key which i am passing is the BO key of my custom object Z***********=>SC_BO_KEY
Please help me out, is there something which i am missing.
Regards,
Thiru
Hi Experts,
I need your help on disabling edit mode of a text field in MM02 -> Additional data -> Basic data text -> long text field. (PFA)
We checked in debugging and modified this field.
If T130M-AKTYP= 'A' Then we can not edit the text field.
Now I want to know where I can implement this, I need to know if there is any exits that I can use.
Plz help.
Hello everyone.
If I call it with the explicit method it works.
CALL METHOD of parent 'Workbooks' = child. " This works
I want to call dynamically methods of OLE objects like this.
CALL METHOD of parent lv_method = child. " This doesn't work
But gives me a CX_SY_DYN_CALL_ILLEGAL_TYPE
The function module interface allows you to specify only
fields of a particular type under "VERB".
The field "LV_METHOD" specified here is a different
field type
SAP documentation says: The ABAP keyword CALL METHOD calls the method m of the object obj. m can be literal or a variable.
In the help there is addionally: The name of the method has to be specified in a character-type data object meth.
Thanks
Hi All,
I have a requirement to remove a partner function from VBPA table after SAVE button is pressed in VA01/VA02.
I am making use of USEREXIT_SAVE_DOCUMENT_PREPARE. Internal Table XVBPA[ ] has required Partner functions which is to be removed.
I tried setting XVBPA-UPDKZ to 'D' as suggested in below thread but it didn't help.
User Exit MV45AFZZ-partner function automation
Plz help me.
Thnaks.
Dear All,
We are getting the data from File server into SAP application server to create the sales order in SAP system. Before all every thing working fine. Now my client wants to change some data while reading the data from that application server. Now my question is through that application server path how do I find the program like where used list in SAP.
According to my client requirement I was tried to change the Idoc data using exit but it's working only within SAP system. While running through that application path it's not changing the data.
Can anyone tell me how do I find that program name only by using that application path ?
Or
Here I confirm through that path only they are processing the data so can any suggest me to find program name?
What are the other possibility to find or resolve my issue?
Thanks & Many regards,
John
Hello guys, I have a problem to create a POPUP in BADI ME_PROCESS_PO_CUST, I be using the function POPUP_GET_VALUES for my POPUP, but not executing nothing. Who can help me? Cheers!
Hello gurus,
I have an issue with the below code. This is to get the division field from the table zgb_100 by doing look ups in different tables.
The code is logically but when I debug the code I see that the below highlighted part is not being picked up it is directly going
to the next step from IF ip_zgb_100-val1. Please let me know your valuable suggestion if my logic of extracting the division
is wrong. Thanks in advance
The division is extracted in this way
anln1 -> 10000002
anln2 = 0000
kostl : O613901 Using cost center, profit center P90309010 is from csks
Use profit center and get the field khinr from table cepc.
get the setname field from table setnode using the conditions and khinr
get the first 4 digits in setname field move them to division.
if the ip_zgb_100-val1 is initial get first 4 digits of khinr
and that is my division.
DATA: xprctr LIKEcsks-prctr.
DATA: kostl LIKE anlz-kostl
DATA: xkhinr LIKE cepc-khinr.
DATA: xsetname LIKE setnode-setname.
DATA: xsetn(4).
CLEAR: xkostl, xprctr, xsetname, xkhinr, xsetn, xprctr.
select kostl from anlz into xkostl
where bukrs = zbwfiaa_asset-bukrs and
anln1 = zbwfiaa_asset-anln1 and
anln2 = zbwfiaa_asset-anln2.
endselect.
SELECT SINGLE prctr FROM csks into xprctr
WHERE kostl = xkostl.
SELECT SINGLE khinr FROM cepc INTO xkhinr
WHERE prctr = zbwfiaa_asset-prctr.
SELECT SINGLE setname FROM setnode INTO xsetname
WHERE setclass = '0106'
AND subclass = lv_anla-bukrs
AND subsetname = xkhinr.
CLEAR ip_zgb_100.
MOVE xsetname+0(4) TO xsetn.
SELECT SINGLE val1 FROM zgb_100 INTO ip_zgb_100-val1
WHERE vtname = 'ASSET_DIVISION'
AND key1 = xsetn.
IF ip_zgb_100-val1 = 0.
CLEAR xsetn.
MOVE xkhinr+0(4) TO xsetn.
SELECT SINGLE val1 FROM zgb_100 INTO ip_zgb_100-val1
WHERE vtname = 'ASSET_DIVISION'
AND key1 = xsetn.
ENDIF.
IF sy-subrc = 0.
MOVE ip_zgb_100-val1 TO zbwfiaa_asset-zzdivision.
MODIFY i_t_data FROM zbwfiaa_asset INDEX l_tabix.
ENDIF.
Hi All,
My client need generate employee experience certificate in Arabic fonts. This experience certificate will design in smartforms, so which font to be used and how to change OTF from LTR to RTL.
Thanks,
Syed Tayab Shah