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: 

insertion into SAP from a Idoc(LOIPRO)

Former Member
0 Kudos
143

Hallo,

I'm researching to inserting the Idoc (LOIPRO) into SAP, and since in my Idoc, there are lots of items are empty ( I translate just about 10 date).

Does somebody knows the step to insert the Idoc and how will SAP react si there are some empty items? (should I put 0 or something in the place)?

Thanks.

Xiaofeng Shao

3 REPLIES 3

Former Member
0 Kudos
68

Shao, I did not understand your question.

If your field is empty if will not show up in the Idoc and SAP will ignore that.

If you want it to have a value of "0" and want this to be shown , then yes do that.

0 Kudos
68

thanks Sandeep,

let me explain that^^

so firstly, the project is to get the data from antoher software and to put the data in a Idoc between that software and SAP, but when I should put the data from Idoc to SAP, I have no idea how to manipulate :-S

Secondly, since I transfer only certain data, so I doubt what will happen in the empty fields. or that's better to create another Idoc with only the value filed or just let the Idoc with lots of empty field be inserted?

0 Kudos
68

ok Shoa

your 2nd question is simple-

Fill only 1 Idoc, let there be lot of empty fields.

The Idocs are made in general for applications across industry segments.

So there are always too many fields in any Idoc. I have seen production examples where people use an Idoc to pass maybe 5-10 fields and the Idoc has hunders and hundreds of fields.

You will not see segments which have no field populated and you will not see fields in a segment which are not populated.

Your first question.

From Idoc to SAP, you have no idea on how to manipulate?

WHat do you need to manipulate.

Usually in a PRD environment , you should not manipulate. Just take the Idoc and post it.

For posting it you should have a partner prfolie set-up in WE20 for the sending partner with the Idoc name in the inbound parameters.

You also need a process code which tells how to post the Idoc, using Function module or BAPI or workflow. etc.

Hope you got your answer if not, then do not hesitate to ask.

Regards