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

About Interface EDI810

Former Member
0 Likes
786

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

7 REPLIES 7
Read only

Former Member
0 Likes
756

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.

Read only

0 Likes
756

As its not an report program, only an include

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
756

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

Read only

0 Likes
756

As you know, if we modify the existing one its an interface, it will definelty have impact for the existing company code.

Read only

0 Likes
756

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

Read only

Former Member
0 Likes
756

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

Read only

0 Likes
756

You are not getting me, the file is in 810 Format, Converting into Idoc , and later i want to modify