on 12-22-2014 7:57 AM
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..
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.