06-03-2016 6:27 AM
Hi fellow ABAP members ,
i have to Update BKPF-XBLNR & INFVO-XBLNR during MRRL with EXTERNAL ID field in VL31N . I am referring to the post https://scn.sap.com/message/16757654#16757654 , But i am putting a break point in function module POST_DOCUMENT and it is not stopping there . What should be done ? It is a priority Requirement . Plz help . I am attaching screenshots .Any other way to do that .
Thanks and Rgds ,
Dave
06-03-2016 7:11 AM
POST_DOCUMENT is an update task FM, so either put your break point in the statement beore its call or activate debug of update task.
Regards,
Raymond
PS: "priority" or "urgent" are not allowed by The SCN Rules of Engagement
(it's your priority/urgency not forum members one) and can trigger deletion of thread by moderator.
06-03-2016 7:11 AM
POST_DOCUMENT is an update task FM, so either put your break point in the statement beore its call or activate debug of update task.
Regards,
Raymond
PS: "priority" or "urgent" are not allowed by The SCN Rules of Engagement
(it's your priority/urgency not forum members one) and can trigger deletion of thread by moderator.
06-03-2016 7:30 AM
Thanks Raymond . it is stopping there . i called a break-point before the fm call . i will get in touch if any further queries on the issue . i can now proceed with the task .
Grateful to you Raymond !!
06-03-2016 10:08 AM
Hi Raymond ,
The forcefully updated the BKPF-XBLNR during MRRL in FM POST_DOCUMENT in debugger in MRRL in development server to test and it got updated successfully in BKPF-XBLNR & INFVO-XBLNR in mir4 and FB03 screens . But my challenge is to get the VERUR field data in BKPF-XBLNR . VERUR field is updated in VL31N ( external id field ) transaction in LIKP table .
The importing / exporting TABLES in FM POST_DOCUMENT which are below donot have VBLEN ( Delivery ) however they have new BELNR , MM invoce number which is being generated in MRRL from which i am not able to fetch text VERUR of LIKP .
How to fetch text TEST2 ( VERUR ) in LIKP from parameters in POST_DOCUMENT or some other way ? Kindly help .
Thanks ,
Dave
06-03-2016 10:26 AM
Hi Devendra,
Are you looking for specifics. Please be more clear on which call point u're looking for update
06-03-2016 10:38 AM
I am looking for link of tables ( logic ) so that i can get VERUR field of LIKP to be passed in XBLNR field in tables parameters of FM POST_DOCUMENT .
Thanks
06-03-2016 10:54 AM
Hi Raymond ,
Kindly throw some light on the table level issue to capture the text entered in external id field in VL31N before MRRL .
Thanks ,
Dave
06-03-2016 10:59 AM
Hi Devendra,
Try using
EXIT_SAPLMRMH_001
EXIT_SAPLMRMH_002
Use break point and check with purchasing document. This is at MRRL level call
06-03-2016 11:03 AM
Hi Pras ,
Already tried
EXIT_SAPLMRMH_001
EXIT_SAPLMRMH_002
. These exits will not update the required fields to be updated . It will be through enhancement in FM POST_DOCUMENT . Plz refer the thread : https://scn.sap.com/message/16757654#16757654
Rgds ,
Dave
06-03-2016 11:07 AM
06-03-2016 11:33 AM
Yes . If that can solve the Purpose . i mean i can enhance include program LFACIF5 in which the FM is called .
Thanks ,
Dave
06-03-2016 12:49 PM
Seems you have TWO question
How to find the delivery information
I suppose information to find a link between delivery and generated invoice would be stored in RBKP/RSEL. Problem may also arise as those data may not yet be committed to database, so may require a first EXPORT in some BAdI (VL31N - SD BAdI) to be IMPORTed later (MRRL - logistoics/FI BAdI).
How to substitute some value in the generated FI document
POST_DOCUMENT is IMHO not a good point to change data (as most update task FM) as data validity was already checked at this point, and may trigger some database inconsistencies, I would suggest some FI substitution rule or an implementation of some BAdi like AC_DOCUMENT but better use a dedicated BAdI like INVOICE_UPDATE or BAdI listed in 1156325 - BAdIs in the Logistics Invoice Verification environment.
Regards,
Raymond
06-06-2016 8:22 AM
Hi Raymond ,
Greetings for the day ahead .
I have tried all other procedures other then applying FI substitution . Other procedures donot seem to work at my end . I will now try FI substitution . Will update you on that .Any tips which you want to give for applying FI substitution procedure on my requirement . i am referring to this tutorial :
Thanks for your Support .
Dave
06-06-2016 11:48 AM
Hi Raymond ,
The Requirement is to update the text which the user is entering in VL31N in external id field ultimately to be there in FB03 and MIR4 in Reference field after the execution of MRRL . Now when i trying to do this by FI substitution how will we capture the text which is already been updated in LIKP bec delivery number or material document number needs to come there during MRRL execution and in my preliminary exploration it doesnot stop in program ZRGGBS000 which is already maintained in view V_T80D .
Plz help .
Thanks and Rgds ,
Dave
06-06-2016 12:11 PM
The FI-substitution user-exit will only be called if a rule with an exit is executed.
Did you look, as I already suggested, for some SD exit/BAdI to export the text?
Regards,
Raymond
06-13-2016 7:26 AM
Hi Raymond ,
Can u plz guide me through this Requirement to Copy PO no & Date Fields of all line items in creation of Return Order ( VA01 ) from Original Order .The original order may have line items with different PO numbers and Dates . I have tried few ways but just required some finishing touches , it seems . I have posted on SDN yesterday . Would be grateful for your guidance .
Thanks ,
Dave
06-03-2016 11:23 AM
Hi ,
Have a look at BADI AC_DOCUMENT.
You might need to add XBLNR in append structure for ACCHD_SUB.
Also have a look at OSS notes 1025810 concerning field BKTXT not filled because of using this BADI.
Best regards,
Hendrik
06-06-2016 11:52 AM
Hi Hendrik ,
The Requirement is to update the text which the user is entering in VL31N in external id field ultimately to be there in FB03 and MIR4 in Reference field after the execution of MRRL . Now when i trying to do this by FI substitution how will we capture the text which is already been updated in LIKP bec delivery number or material document number needs to come there during MRRL execution and in my preliminary exploration it doesnot stop in program ZRGGBS000 which is already maintained in view V_T80D .
Plz help .
Thanks ,
Dave
06-07-2016 7:14 AM
Hi Devendra,
What is the Pre-requisite that you have given and the substitution step
06-13-2016 7:32 AM
Hi Hendrik ,
Greetings for the day ahead .
Can u plz guide me through this Requirement to Copy PO no & Date Fields of all line items in creation of Return Order ( VA01 ) from Original Order .The original order may have line items with different PO numbers and Dates . I have tried few ways but just required some finishing touches , it seems . I have posted on SDN yesterday . Would be grateful for your guidance .
Thanks ,
Dave