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

BDC problem

Former Member
0 Likes
752

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

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
656

Are you using SHDB to do your recording?

Regards,

Rich Heilman

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
657

Are you using SHDB to do your recording?

Regards,

Rich Heilman

Read only

0 Likes
656

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

Read only

0 Likes
656

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

Read only

Former Member
0 Likes
656

I Hope you are Doing Recording.

Please refer the recording..

vijay