Skip to content

Send IDoc to SAP : Reference clientIDoc.py #340

Discussion options

You must be logged in to vote

Let me say this: trying to parse or create IDocs on the RFC level, is extremely difficult. At least when trying to do it in a generic way. The code for one particular IDoc (like your IORDER01) might be doable, but still is far from "simple"...

Just take a look at IDOC_INBOUND_ASYNCHRONOUS and its IDOC_DATA_REC_40 definition: it only has a 1000 CHAR field, into which the nested IDoc segment tree needs to be converted, and for this

  • you need to have "insider know-how" about the correct algorithm, how to fill the SEGNUM, PSGNUM and HLEVEL fields (I don't think it is publicly documented somewhere?!) and in which order these lines have to be added to the IDOC_DATA_REC_40 table, and
  • you need to…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GreetyVarghese
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants