Skip to Content

PREQCR03:is it possibile use it to create purc.req. with multiple pos.??

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 03, 2005 at 11:29 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.