on 05-18-2014 11:19 PM
Hello,
I created a Web Dynpro screen which allows to change purchase requisitions.
I also created for it a parameter transaction in SE93.
In ME52N/ME53N transactions it is possible to see changes in pr items (Environment -> Item Changes). When I'm change an item through standart transactions like ME52N/ME53N/SE38/etc, the proper transcation code is shown. Also in z dynpro transcations it works fine. But when I'm change a pr item through my Web Dynpro transaction, the transaction code field in the Item Changes screen is empty.
How can I solve this?
Thanks,
Ednri.
Consider to show us more details. Probably you have a bug in your logic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have a z program which call to BAPI_PR_CHANGE. I also have a transaction for this program, 'tran_prog' for example. When I'm execute the program, it's change any purchase requisition, pr 12345 - item 10 for example. When I'm enter to ME52N, select 12345 purchase requisition, select the 10 item, and go to Environment -> Item Changes, I see the change which made by the BAPI_PR_CHANGE in my program, and I see that this change was made by 'tran_prog' transaction.
I also have Web Dynpro screen with the same logic like my program. I have transaction for it., 'tran_webdynpro' for example. I execute it, and it's change the same purchase requisition item. But when I'm enter to ME52N in order to see the changes of the item, I see the change, but the "transaction code" field is empty. My expectation was to see that this change was made by 'tran_webdynpro' transaction, and it's not happened.
I hope I was more clear now.
Ok, I think I got it now.
You have created a transaction code (lets say ZXXX), which starts your webdynpro application in a sap gui screen.
When running a webdynpro application system field SY-TCODE is empty, even though you are calling it within a sap gui window. Thus the transaction code field in the Item Changes screen is empty.
Try setting SY-TCODE = 'ZXXX' just before you call your BAPI. Maybe it works. I never tried that.. not sure if this works.
Regards
iSD
I did it. It works partly: When I'm adding a new item to exist purchase requisition via my web dynpro application and go to the Item Changes screen, there are many rows which their Action is 'Changed' and the transaction code is my ('ZXXX'). But there is one row with Action 'Entered', and in this row the transcation code is empty.
It is possible that the BAPI_PR_CHANGE, while saving the Item Changes to the db, use the SY-TCODE for rows of Action 'Changed', and don't use it for rows of Action 'Entered'?
Thank you.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.