‎2006 Nov 21 3:13 PM
Hi,
I have a Function module for Inbound invoice. It has been hard coded for Company code, profit centre And it has been using BDC ( FB01). Now it should be updated for other Company codes also. How is it done.
Thank Q
‎2006 Nov 21 3:16 PM
u put a select-option or parameter...like create a new import parameter for the FM and use this for company code...inside the code remove the hard code & use this variable...ur problem will be solved.
‎2006 Nov 21 3:28 PM
‎2006 Nov 21 3:17 PM
Hi,
As the Company Code has ben hard coded , u have two options either change the Comapny code manually in ur FM or do the recording again wherein u can explicitly pass the companty codes and use the same recording in the FM.
Hope this helps!
Sandeep
‎2006 Nov 21 3:33 PM
As you know, if we modify the existing one its an interface, it will definelty have impact for the existing company code.
‎2006 Nov 21 3:35 PM
Manju,
You did not answer my question. If you are going take out the hard coded values, where are you going to get those values from.
I would assume that the file will have those values and so the IDOC will have the value.
So, its a matter of picking up the value from there and passing the same to BDC.
Regards,
Ravi
Note - Please mark all the helpful answers
‎2006 Nov 21 3:18 PM
But where do you expect those values to come from now?
If you are expecting them to come from the interface, as its a IDOC you don't have to change the parameters, but read the appropriate segment to get the company code and profit centre and use that.
Take a look at the IDOC to see in which segment fields these are coming
Regards,
Ravi
Note - Please mark all the helpful answers
‎2006 Nov 21 3:30 PM
You are not getting me, the file is in 810 Format, Converting into Idoc , and later i want to modify