Skip to Content
avatar image
Former Member

Sales order creation with ref to contract through idoc-reg

Hi Friends,

While sales order is creating with ref to contract through idoc, if contract is having rejected items, then in sales order, rejected items are copying. But if  order is created from VA01, then rejected items are not copying. How can I restrict rejected item in sales order in idoc case also, reffered SAP note 562710,but this case not mentioned. Pl help me on this.

rajendra..

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 04, 2015 at 07:47 PM

    Hi Rajendra,
    The decision whether to copy rejected items or not should be done in the copy control routines. Please check your
    customising to see if you have a custom routine maintained. Usually it is done with routine 301 (LV45C301) where there is
    a check on the field PLMIN "Pos./neg. quantity":
    Main Program     SAPLV45C
    Source code of   LV45C301

    FORM BEDINGUNG_PRUEFEN_301 USING BP_SUBRC.

    ...
    * Do not copy completed or rejected items
      IF VBAP-ABGRU NE SPACE OR
         VBUP-RFSTA = CHARC.
        IF FVCPA-PLMIN = CHAR_PLUS.    <<<<<<<
          BP_SUBRC = 1.
        ENDIF.
      ENDIF.
    ENDFORM.
    ...

    If you are comfortable debugging you could use report SDJEDI from transaction SE38 with a breakpoint set in the above program to check the values.

    I hope this helps.
    Regards,
    Ian Kehoe

    Add comment
    10|10000 characters needed characters exceeded