Application Development 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: 

Regarding VX22 Transaction [Change License Data]

Former Member
0 Kudos

Hi All,

I have a issue related to <b>VX22 Transaction [Change License Data]</b>.

Do anybody knows the wether any <b>BAPI</b> available for <b>Change License Data[VX22]</b>.

I actually have to perform a BDC for change license data some times for <b>Multiple items for single Sales Document number</b> at a time.

I have Done the recording[SHDB] and added the following code to main program.

Can anybody tell me wether this code will perfectly work for <b>Multiple Items of Single Sales Document Number</b> in <b>VX22 Transaction</b>.



<b>  PERFORM f_bdc_dynpro      USING 'SAPMV52G' '0100'.
  PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                  'VBAK-VBELN'.
  PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
  PERFORM f_bdc_field       USING 'VBAK-VBELN'
                                  i_data-vbeln.
  PERFORM f_bdc_field       USING 'RV52G-SELKZ'
                                  c_x.

  LOOP AT i_pdata.

    PERFORM f_bdc_dynpro      USING 'SAPLV52E' '0500'.
    PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                    'RV52G-SELKZ(08)'.
    PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                    '=DETA'.
    PERFORM f_bdc_field       USING 'RV52G-SELKZ(08)'
                                    c_x.

    PERFORM f_bdc_dynpro      USING 'SAPLV52E' '0520'.
    PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                    'VBEX-MODCO'.
    PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
    PERFORM f_bdc_field       USING 'VBEX-ALNUM'
                                    i_pdata-zzalnum.
    PERFORM f_bdc_field       USING 'VBEX-EMBGR'
                                    i_pdata-zzembgr.
    PERFORM f_bdc_field       USING 'VBEX-GENNR'
                                    i_pdata-zzgennr.
    PERFORM f_bdc_field       USING 'VBEX-MODCO'
                                    i_data-modco.

    PERFORM f_bdc_dynpro      USING 'SAPLV52E' '0520'.
    PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                    'VBEX-ALNUM'.
    PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                    '=BACK'.
    PERFORM f_bdc_field       USING 'VBEX-ALNUM'
                                    i_pdata-zzalnum.
    PERFORM f_bdc_field       USING 'VBEX-EMBGR'
                                    i_pdata-zzembgr.
    PERFORM f_bdc_field       USING 'VBEX-GENNR'
                                    i_pdata-zzgennr.
    PERFORM f_bdc_field       USING 'VBEX-MODCO'
                                    i_data-modco.

  ENDLOOP.

  PERFORM f_bdc_dynpro      USING 'SAPLV52E' '0500'.
  PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                  '*VBEX-VBELN'.
  PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                  '=SICH'.

  PERFORM f_bdc_transaction USING 'VX22'.</b>

I have make use of Session Method for it.

I had run through it against VX22 in all 3 modes and it is working fine for single line item for a sale order.

If any changes required for it to work for Multiple line items please suggest.

If any body knows <b>BAPI</b> for the same process please post.

Thanks in advance.

Thanks & Regards,

Rayeez.

4 REPLIES 4

Former Member
0 Kudos

Hi All,

Anybody have the sujjestions for the above mentioned post!

Thanks in advance.

Thanks & Regards,

Rayeez.

0 Kudos

HI,

Can anybody give answer to my above post.

Thanks in advance.

Thanks & Regards,

Rayeez.

0 Kudos

Hi All,

Anybody worked on above kind of scenario,

If yes please sujjest!

Has Anybody worked with <b>VX22</b> Transaction

If worked please reply to above post!

Thanks & Regards,

Rayeez.

0 Kudos

Hi All,

Can anybody give a reply for my above post!

Thanks & Regards,

Rayeez.