cancel
Showing results for 
Search instead for 
Did you mean: 

Sales order creation with ref to contract through idoc-reg

Former Member
0 Kudos

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..

Accepted Solutions (0)

Answers (1)

Answers (1)

ian_kehoe
Active Participant
0 Kudos

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