cancel
Showing results for 
Search instead for 
Did you mean: 

File to IDOC

Former Member
0 Kudos

Hi Experts,

I have a File, which contains dif. Material types, number, etc.,

Now, my IDOC should read only if Material type = 'A' then update.

Shall i need to write UDF for this.

Could you pls give me the solution

Thanks in Advance...

Regards,

Ramana.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I am explaining again in detail..

I have a file which contains the data for dif. types of materials and numbers.

I need only if Material type = A then my IDOC should update at receiver side.

So, where should i use the Standard Function (if,else)

either...at sender side (file ) or receiver side(idoc)

Regards,

Ramana.

former_member181959
Contributor
0 Kudos

Hi,

In the mapping program, you have two message types. one is for Source (file) and another is for target (IDoc).

So first drag the target filed (root node of the IDoc) then Drag the source file (field from File message type) then use the dataflow editor, to put the IfElse condition.

You have to do everything in the mapping program itself. Let me know incase of any difficulty.

Hope this helps.

-Prasad Babu.

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Prasad,

ThanX alot...

Regards,

Ramana.

Former Member
0 Kudos

>>Double click on the IDoc root node.

So, you mean to say i have to write standard function from Target which i have to double click on IDOC.

Pls correct me if i am wrong??

Here my Source is File..

Regards,

Ramana.

Former Member
0 Kudos

Hi All,

Thanks for your replies...

could you please give me the steps for this..(more elaboratively)

Regards,

Ramana.

former_member181959
Contributor
0 Kudos

Hi,

Double click on the IDoc root node.

Then drag source (Material Type) from source structure

Then map it to it using (IFElse) condition.

Then if Material Type = "A" then only the IDoc will get generated.

Hope this helps.

-Prasad Babu.

former_member181959
Contributor
0 Kudos

Hi,

You can do it without the use of UDF.

You just need to map the header node of the IDoc to Source file filed using IfElse condition.

Do that if Material type = 'A', then only IDoc will be generated.

Hope this helps.

-Prasad Babu.

vikas_agarwal
Contributor
0 Kudos

Hi,

There is no need to write UDF, you can use the standard functions like ifelse function to solve this problem.

Regards

Vikas

former_member214364
Active Contributor
0 Kudos

Hi Ramana,

will you get all Material types to source message from File?.

you can do mapping without UDF, with simple standard functions.

Cheers,

Jag