Hi to all ,
happy 2005!
After the greetings .... the questions 😊
Related with a problem that i have with massive purchase requisition loading with LSMW, i would ask to u one question .
Is it possibile with standard IDOC PREQCR03 create a purchase requisition with more positions ??
I ask this because i always have an error on syntax idoc check with more positions.
The lsmw standard program of idoc generation, create an idoc like this :
EDIDC E1PREQCR E1BPEBANC E1BPEBKN E1BPEBANC E1BPEBKN E1BPEBANC E1BPEBKN
When i try to load the idoc with LSMW (create idoc generation step), i see (with WE02 transaction) this
error (on segment no 005) :
-
EDI: Syntax error in IDoc (segment cannot be identified)
Message no. E0078
Diagnosis
The segment E1BPEBANC does not occur at the current level of the basic type PREQCR03
This error can have several reasons:
The segment E1BPEBANC is assigned to a group whose header segment does not occur.
The segment E1BPEBANC does not exist in the syntax description of the basic type PREQCR03
The sequence of segments in the group in which the segment appears is incorrect.
Previous errors ('mandatory' segment or group missing) may be due to this error.
Procedure
Please check the IDoc or the syntax description of the basic type PREQCR03.
-
I understand what is the problem : the segment E1BPEBANC is repeated more than one time in idoc and (
probably) this kind of idoc was not thinking for create a purchase requisition with more positions.
I don't have this problem if i execute the same generated idoc from we19 transaction (idoc test tool).
This is because WE19 transaction contains is an instruction like this (i used the debug tool step-by-
step to discover it):
if sy-tcode eq 'WE19' or ...... * Make idoc input also with syntax errors ... ... .. endif.
Some suggestions on how to solve this particular the problem??
I suppose i must create ad idoc custom like PREQCR03 but that accept more E1BPEBANC segments ... but how
to do that ?? In standard version, the number of E1BPEBANC segment is already defined with 'Maximum number' = 999999999
Thx a lot
Andrea
Hi Guys ,
i solved the problem by myself.
with the help of the debugging tool, i saw that the problem was on check of idoc syntax, in the idoc generation program.
Logically, a correct multi-pos purchase idoc should appear like this :
EDIDC E1PREQCR E1BPEBANC E1BPEBKN E1BPEBANC E1BPEBKN E1BPEBANC E1BPEBKN
Creating IDOC in that format, doesen't work.
But if the same idoc is created like this :
EDIDC E1PREQCR E1BPEBANC E1BPEBANC E1BPEBANC E1BPEBKN E1BPEBKN E1BPEBKN
It works!!
Andrea
Add a comment