on 04-29-2013 2:51 PM
Hi All,
I need to update a field SHORTXT in PTRV_SREC in some cases.
I tried using FM-PTRV_TRAVEL_STATISTICS_UPDATE but its not updating PTRV_SREC and seems it read from BAPI_TRIP_GET_DETAIL and updates same data.
Tried using FM- PTRA_DB_TRIP_SAVE, but this is updating cluster- beleg which i am able to see. But this FM is not updating PTRV_SREC.
Could you let me know, how to proceed further. Thank you.
Regrads,
Vinoth
Hi Vinoth,
For changing any value in PTRV_SREC you need to use BADI: TRIP_WEB_CHECK and method USER_CHECK_LINE_OF_RECEIPTS.
Please try to implement this BADI and check results.
Thanks
Alok
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alok,
Thank you for reply.
Working on interface and based on some condition, i need to update SHORTXT of PTRV_SREC.
I think the BAdI will be used to change values from front end.Please confirm this.
Now i am using exit 002 in FM- PTRV_TRAVEL_STATISTICS_UPDATE to update SHORTTXT (based on call stack check to prevent, if same FM called from other pgm or...). This is updating PTRV_SREC table.
And i am populating beleg and using cluster EXPORT.... to update cluster for SHORTXT (Beleg-BTEXT = PTRV_SREC-SHORTXT).
Is there any other way to update both cluster and DB directly?
Regards,
Vinoth
Yes this BADI will update the table from front end entry. I think its for Web Dynpro version.
For Exit in this FM It has code for updating DB but i dont see any Cluster update in this FM code. This is really strange.
I am not sure how to achieve the same together. But will check again if any solution.
Thanks
Alok
User | Count |
---|---|
92 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.