Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Change system status

Former Member
0 Likes
599

Hi,

My requirement is in IW32 if I change system status for that order, then system status of Network related to it ( in transcation CN22) should also change.

What user exit shoud I use and which BAPI shoud be used to change system status.

Helpful answer will be rewarded.

Thank you

Madhura.

Hi,

My requirement is in IW32 if I change system status for that order, then system status of Network related to it ( in transcation CN22) should also change.

What user exit shoud I use and which BAPI shoud be used to change system status.

Helpful answer will be rewarded.

Thank you

Madhura.

1 REPLY 1
Read only

Former Member
0 Likes
440

user exit.

INCLUDE ZXWOCU07.

**Data Deceleration

data : l_wa_pmsdo like pmsdo,

l_wa_mara like mara,

l_wa_t003o like t003o.

**Get order type with the reference to Dialog Structure for Order Headers and Items

select single *

into l_wa_t003o

from t003o

where auart = caufvd_imp-auart.

**Check whether Revenue posting allowed

if l_wa_t003o-erloese = 'X'.

CLEAR L_WA_PMSDO.

CASE SY-TCODE.

WHEN C_TCODE_IW31 or C_TCODE_IW32.

**Read objnr in temporary area

CALL FUNCTION 'PMSDO_READ'

EXPORTING

OBJNR = caufvd_imp-objnr

IMPORTING

ORG = L_WA_PMSDO

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2.

kevin

ENDCASE.