Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Update BKPF-XBLNR & INFVO-XBLNR during MRRL

former_member225253
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

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.

19 REPLIES 19

raymond_giuseppi
Active Contributor
0 Kudos

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.

0 Kudos

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 !!

0 Kudos

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

0 Kudos

Hi Devendra,

Are you looking for specifics. Please be more clear on which call point u're looking for update

0 Kudos

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

0 Kudos

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

0 Kudos

Hi Devendra,

Try using

EXIT_SAPLMRMH_001

EXIT_SAPLMRMH_002

Use break point and check with purchasing document. This is at MRRL level call

0 Kudos

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

0 Kudos

do you want to enhance FM POST_DOCUMENT

0 Kudos

Yes . If that can solve the Purpose . i mean i can enhance include program LFACIF5 in which the FM is called .

Thanks ,

Dave

0 Kudos

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

0 Kudos

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 :

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/707439da-ead9-2910-5c97-af6ca0b6f...

Thanks for your Support .

Dave

0 Kudos

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

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

Hi Devendra,

What is the Pre-requisite that you have given and the substitution step

0 Kudos

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 .

Copy PO number & Date Field of all line items including header in creation of Return Order ( VA01 ) ...

Thanks ,

Dave