12-02-2005 4:26 PM
Hi experts,
i am doing BDC for IW31 order creation.
now i want to set the user status at operation level.
when eneter user status it is saying order is not yet released.once i relase and save the user status is saved(manually).
Please tell me how do in BDC.
how can do Release and user status through BDC.
Please help me
12-02-2005 4:32 PM
12-02-2005 4:32 PM
12-02-2005 4:37 PM
hi
i am doing recording i am bale to set the user status through bdc screens.
but while creatig it is saying user status not allowed.
once i rlease the i am able to save the iw31 trn.
please tell me how t o do
12-02-2005 4:38 PM
I just recorded using SHDB, it works good for me. I release, then change user status, then save.
Maybe you should release first, then change the user status.
report zrich_0005
no standard page heading line-size 255.
include bdcrecx1.
start-of-selection.
perform open_group.
* Initial Screen, Enter type, priority, and plant
perform bdc_dynpro using 'SAPLCOIH' '0100'.
perform bdc_field using 'BDC_CURSOR'
'CAUFVD-IWERK'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'AUFPAR-PM_AUFART'
'PM01'.
perform bdc_field using 'CAUFVD-PRIOK'
'2'.
perform bdc_field using 'CAUFVD-IWERK'
'0008'.
* Enter work center and click release
perform bdc_dynpro using 'SAPLCOIH' '3000'.
perform bdc_field using 'BDC_OKCODE'
'=FREI'.
perform bdc_field using 'BDC_CURSOR'
'CAUFVD-VAPLZ'.
perform bdc_field using 'CAUFVD-VAPLZ'
'MECHCL01'.
* Click user status edit button
perform bdc_dynpro using 'SAPLCOIH' '3000'.
perform bdc_field using 'BDC_OKCODE'
'=ANST'.
perform bdc_field using 'BDC_CURSOR'
'CAUFVD-KTEXT'.
* Choose the user status
perform bdc_dynpro using 'SAPLBSVA' '0201'.
perform bdc_field using 'BDC_CURSOR'
'J_STMAINT-ANWS(02)'.
perform bdc_field using 'BDC_OKCODE'
'=OKAY'.
perform bdc_field using 'J_STMAINT-ANWS(01)'
''.
perform bdc_field using 'J_STMAINT-ANWS(02)'
'X'.
* Save the order
perform bdc_dynpro using 'SAPLCOIH' '3000'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'BDC_CURSOR'
'CAUFVD-KTEXT'.
perform bdc_transaction using 'IW31'.
perform close_group.
Regards,
Rich Heilman
12-02-2005 4:33 PM