Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Regarding VX22 Transaction [Change License Data]

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.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question