Application Development and Automation 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: 
Read only

IDOC_INPUT_CREDITOR

germain_azambou2
Explorer
0 Likes
903

Dear SDN community members,

I'm using function module IDOC_INPUT_CREDITOR to post Creditor masterdata from external system to SAP.

The report start and fill all segments and the Function module IDOC_INPUT_CREDITOR is called

in the next step a document is posted in agency business module via following function module: WLF_REGU_LIST_HEAD_MAINTAIN and WLF_REGU_LIST_ITEM_MAINTAIN. this function module need the new created creditor

My problem is following:

when i run the report the first time, the creditor is created ( i can see the new created number in the table) but in the 2nd step of the report, when i try to create the agency business document, we receive an error that this creditor do not exist.

when i restart the program again and and try to create the agency business document with the creditor created in the previous run, the program works without error.

in debugger i find out that before the creditor is created, IDOC_INPUT_CREDITOR checks if the given number of creditor is in lfa1, if not then he fills the global table GT_LFA1_NF with that number. but at the end of IDOC_INPUT_CREDITOR this global table is not refresh.

How can i refresh the global Table GT_LFA1_NF at the end of IDOC_INPUT_CREDITOR?

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; }SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; }SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFF

Dear SDN community members,

I'm using function module IDOC_INPUT_CREDITOR to post Creditor masterdata from external system to SAP.

The report start and fill all segments and the Function module IDOC_INPUT_CREDITOR is called

in the next step a document is posted in agency business module via following function module: WLF_REGU_LIST_HEAD_MAINTAIN and WLF_REGU_LIST_ITEM_MAINTAIN. this function module need the new created creditor

My problem is following:

when i run the report the first time, the creditor is created ( i can see the new created number in the table) but in the 2nd step of the report, when i try to create the agency business document, we receive an error that this creditor do not exist.

when i restart the program again and and try to create the agency business document with the creditor created in the previous run, the program works without error.

in debugger i find out that before the creditor is created, IDOC_INPUT_CREDITOR checks if the given number of creditor is in lfa1, if not then he fills the global table GT_LFA1_NF with that number. but at the end of IDOC_INPUT_CREDITOR this global table is not refresh.

How can i refresh the global Table GT_LFA1_NF at the end of IDOC_INPUT_CREDITOR?

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; }SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; }SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFF

0 REPLIES 0