‎2006 Jul 28 12:22 PM
hi Friends,
i am using the FM ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST' for calling new session FK03 tcode and Skip the frist screen, i have passed 2 parameters lifnr(LIF) and bukrs(BUK).This Values coming with NEW session, but in FK03 frist screen check box are there for Address data, it is asking Select at least one processing option,
how to select the processing option. please give me solution.
Thanks,
santha
‎2006 Jul 28 12:48 PM
‎2006 Jul 28 12:49 PM
Hi Santhananda
In the fuction module there is a table SPAGPA_TAB which contains the data to be store din the memory.
So pass the value ('X') and the field name corresponding to the checkbox into the table and call the Function Module with this table.
Award points if found useful.
Regards
Inder
‎2006 Jul 28 12:54 PM
you can use Table Paramater USING_TAB to fill screen fields same like BDC processes For this FM.
ibrahim
‎2006 Jul 30 12:06 PM
hi inder,
i have solved my problem with ur help, Thanks for all you cooperation to me.
Thanks,
santha
‎2006 Jul 31 1:50 AM
‎2006 Jul 28 12:51 PM
Hi santhananda,
Please try with this FM 'TRANSACTION_CALL_VIA_RFC'
In this FM u can send transaction data in internal table.
Regards,
Ranjit Thakur.
Please Mark The Helpful Answer.
‎2006 Jul 28 12:52 PM
Hi,
Have you tried creating screen variant by clicking the check box for address and then use it?
Regds,
Akshay Bhagwat
‎2006 Jul 28 12:52 PM
Hi, you will need to do a partial BDC here. Please test out the example below.
report zrich_0001.
data: messtab like bdcmsgcoll occurs 0 with header line,
bdcdata like bdcdata occurs 20 with header line,
mode(1) type c value 'E'.
parameters: p_lifnr type rf02k-lifnr,
p_bukrs type rf02k-bukrs.
perform bdc_dynpro using 'SAPMF02K' '0106'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-D0610'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
p_lifnr.
perform bdc_field using 'RF02K-BUKRS'
p_bukrs.
* These are the checkboxes
perform bdc_field using 'RF02K-D0110'
'X'.
perform bdc_field using 'RF02K-D0120'
'X'.
perform bdc_field using 'RF02K-D0130'
'X'.
perform bdc_field using 'WRF02K-D0380'
'X'.
perform bdc_field using 'RF02K-D0210'
'X'.
perform bdc_field using 'RF02K-D0215'
'X'.
perform bdc_field using 'RF02K-D0220'
'X'.
perform bdc_field using 'RF02K-D0610'
'X'.
call function 'ABAP4_CALL_TRANSACTION'
starting new task 'TEST'
exporting
tcode = 'FK03'
mode_val = mode
update_val = 'S'
tables
using_tab = bdcdata
* mess_tab = messtab
exceptions
call_transaction_denied = 1
tcode_invalid = 2
others = 3.
***********************************************************************
* Form BDC_DYNPRO
************************************************************************
form bdc_dynpro using program dynpro.
clear bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
append bdcdata.
endform.
************************************************************************
* Form BDC_FIELD
************************************************************************
form bdc_field using fnam fval.
clear bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
append bdcdata.
endform.
Regards,
Rich Heilman