Skip to Content
0
Former Member
Apr 28, 2009 at 04:17 AM

SCM Quota Arrangement Data transfer

67 Views

i am trying to do BDC recording for Quota arrangement header data (/SAPAPO/SCC_TQ1). while processing the recording (SM35) i am not able to get the subscreen in order to fill the header level details.

Here is my recoding data:

perform bdc_dynpro      using '/SAPAPO/SAPLOO_TR_QUOTA' '0010'.
perform bdc_field       using 'BDC_CURSOR'
                              '/SAPAPO/S_TRQTASEL-LOCNO'.
perform bdc_field       using 'BDC_OKCODE'
                              '=CHANGE'.
perform bdc_field       using '/SAPAPO/S_TRQTASEL-MODEL'
                              WA_TAB1-MODEL.
perform bdc_field       using '/SAPAPO/S_TRQTASEL-LOCNO'
                              WA_TAB1-LOCATION.
perform bdc_field       using '/SAPAPO/S_TRQTASEL-VERSINDEP'
                              'X'.
perform bdc_field       using '/SAPAPO/S_TRQTASEL-QTDIRI'
                              'X'.
perform bdc_dynpro      using '/SAPAPO/SAPLOO_TR_QUOTA' '0100'.

perform bdc_field       using 'BDC_OKCODE'
                              '=%_GC 118 10'.
perform bdc_dynpro      using '/SAPAPO/SAPLOO_TR_QUOTA' '0100'.
perform bdc_field       using 'BDC_OKCODE'
                              '=0121_OK'.
*perform bdc_field       using 'BDC_CURSOR'
*                              '/SAPAPO/S_TRQTAHALVIO-DVALTO'.
perform bdc_field       using 'BDC_SUBSCR'
                              '/SAPAPO/SAPLOO_TR_QUOTA 0121DETAIL'.
perform bdc_field       using 'BDC_CURSOR'
                              '/SAPAPO/S_TRQTAHALVIO-DVALTO'.
perform bdc_field       using 'GS_0121-MAT_SINGLE'
                              'X'.
perform bdc_field       using '/SAPAPO/S_TRQTAHALVIO-MATNR'
                              WA_TAB1-PRODUCT.
perform bdc_field       using '/SAPAPO/S_TRQTAHALVIO-DVALFR'
                              WA_TAB1-S_DATE.
perform bdc_field       using '/SAPAPO/S_TRQTAHALVIO-DVALTO'
                              WA_TAB1-E_DATE.
perform bdc_dynpro      using '/SAPAPO/SAPLOO_TR_QUOTA' '0100'.
perform bdc_field       using 'BDC_OKCODE'
                              '=SAVE'.

I have tried Bapi method also for the same

Business object: BUS10009

Method: SAVEMULTIPLE2

But the data is not getting posted.

Please give your inputs on the same.

Regards,

Avijit Khajanchi.