on 07-16-2012 12:53 PM
hi experts,
we have a project in that project material is assigned to the network. now at the time of confirmation i need to enter network after i choose goods movement. now my requirement is only those material which are assigned to that network will be consume there other wise it will give error that this material does not belong to that network or wbs element. how can i achieve this in sap standard settings.
wait for your experts solutions
thanks in advance.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi akhay,
give this coding logic
TYPES : BEGIN OF ty_resb,
rsnum TYPE rsnum,
rspos TYPE rspos,
matnr TYPE matnr,
END OF ty_resb.
DATA : it_resb TYPE STANDARD TABLE OF ty_resb,
wa_resb TYPE ty_resb.
DATA : l_rsnum TYPE resb-rsnum.
***changes start by Sulabh on 18.07.2012
***to check material in network wether exist or not
IF sy-mandt = '' OR sy-mandt = '' OR sy-mandt = ''.
IF sy-tcode = 'CN25' .
IF is_mseg-sobkz <> 'Q'.
MESSAGE e014(zps) WITH is_mseg-matnr.
* Only Project Stock(Q) is allowed material &
ENDIF.
REFRESH it_resb.
CLEAR : l_rsnum.
IF is_mseg-rsnum IS NOT INITIAL .
SELECT rsnum
rspos
matnr INTO TABLE it_resb
FROM resb
WHERE rsnum = is_mseg-rsnum.
* AND RSPOS = IS_MSEG-RSPOS.
ELSE.
SELECT SINGLE rsnum INTO l_rsnum FROM caufv
WHERE aufnr = is_mseg-nplnr.
IF l_rsnum IS NOT INITIAL .
SELECT rsnum
rspos
matnr INTO TABLE it_resb
FROM resb
WHERE rsnum = l_rsnum.
ENDIF.
ENDIF.
READ TABLE it_resb INTO wa_resb WITH KEY matnr = is_mseg-matnr.
IF sy-subrc <> 0 .
MESSAGE e013(zps) WITH is_mseg-matnr is_mseg-nplnr.
* Material & does not exist in Network &
ENDIF.
ENDIF.
ENDIF.
Dear Akshay,
Please check TCODE OPST (Confirmation Parameters).
Material Movement Tick all component
Logs/Error tick Goods Movement and terminate for incorrect goods movement
Hope this will solve your problem.
thanks
Sunil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear moderator,
it seems you have hidden my reply. can i know the reason for that? so next time i became careful while answering the question.
THANKS AND REGARDS
SULABH GUPTA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try using valuated project stock.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.