Hi,
U can record the flow in using SHDB transaction recorder.
U can record and it will generate the program, u can copy and paste the part of the code that is generated, in ur ALV report. this will call the transaction.
Do as follows:
<b>SHDB > New Recording > Specify Recording Name YTEST > Transaction code KKS1 > STRAT RECORDING BUTTON></b>
then speciy the vales u want to give to run the transaction. U can save and come back as soon as u reach the screen when u want to stop it.
EG:
Declare a messtab DATA: i_bdcdata TYPE STANDARD TABLE OF bdcdata, * Internal table to hold BDC messages i_messtab TYPE STANDARD TABLE OF bdcmsgcoll * Work area to hold bdcdata value DATA: w_bdcdata TYPE bdcdata, * Work area to hold BDC messages w_messtab TYPE bdcmsgcoll. CONSTANTS : c_e type bdcmsgcoll-msgtyp value 'E', "E c_a type bdcmsgcoll-msgtyp value 'A', "A nodata type c value '/'. "/ perform f1000_bdc_mm03 using lv_matnr lv_werks. FORM f1000_bdc_mm03 USING P_LV_MATNR P_LV_WERKS. perform bdc_dynpro using 'SAPLMGMM' '0060'. perform bdc_field using 'BDC_CURSOR' 'RMMG1-MATNR'. perform bdc_field using 'BDC_OKCODE' '/00'. perform bdc_field using 'RMMG1-MATNR' p_lv_matnr. perform bdc_dynpro using 'SAPLMGMM' '0070'. perform bdc_field using 'BDC_CURSOR' 'MSICHTAUSW-DYTXT(15)'. perform bdc_field using 'BDC_OKCODE' '=ENTR'. perform bdc_field using 'MSICHTAUSW-KZSEL(15)' 'X'. perform bdc_dynpro using 'SAPLMGMM' '0080'. perform bdc_field using 'BDC_CURSOR' 'RMMG1-WERKS'. perform bdc_field using 'BDC_OKCODE' '=ENTR'. perform bdc_field using 'RMMG1-WERKS' p_lv_werks. perform bdc_dynpro using 'SAPLMGMM' '4000'. perform bdc_field using 'BDC_OKCODE' '=ZU01'. perform bdc_field using 'BDC_CURSOR' 'RMMG1-MATNR'. perform bdc_dynpro using 'SAPLMGMM' '4300'. perform bdc_field using 'BDC_OKCODE' '=ZU08'. perform bdc_field using 'BDC_CURSOR' 'RMMG1-MATNR'. perform bdc_dynpro using 'SAPLMGMM' '4110'. perform bdc_field using 'BDC_OKCODE' '=GESV'. *perform bdc_field using 'BDC_CURSOR' * 'RMMG1-MATNR'. call transaction c_transaction_call_MM03 using i_bdcdata MODE 'N'MESSAGES INTO i_messtab.
<b>Kindly close the previous threads opened by u.</b>
Message was edited by: Judith Jessie Selvi
Sorry this you told me fro the general BDC .
In transcation KKS1 after first screen we get the output in the ALV format there after we are converting it into the EXCEL Sheet and saving the data in the EXCEL sheet so these all things after the initial screen are not coming in the recording. thats why i am asking you.
Moreover i am new to the forum so please tell me how to close the threads.
Siddarth
Add comment