cancel
Showing results for 
Search instead for 
Did you mean: 

Confirmation in network?

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

This message was moderated.

Former Member
0 Kudos

hello sulabh,

how will this badi work how will it helpful to me.

0 Kudos

Hi akshay,

this badi will check for line wise entry.so according to your requirement you will give the logic to abap guy that if material is present in network it will allow the good movement otherwise it will give error that material is not present in network.

0 Kudos

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.


Former Member
0 Kudos

hello sulabh,

thank you very much for coding if will give this coding to my abap team and if it work i will close this thread

Former Member
0 Kudos

hey Sulabh,,

Thank you very much for this olution and codin. it work in the same way i want. thanks again

Answers (3)

Answers (3)

sunil_yadav2
Active Contributor
0 Kudos

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

0 Kudos

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

former_member230675
Active Contributor
0 Kudos

Did you try using valuated project stock.

Former Member
0 Kudos

hello abdul,

my project is valuated project stock.