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: 

calling new session

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

Could you provide me the code?

Former Member
0 Kudos

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

0 Kudos

you can use Table Paramater USING_TAB to fill screen fields same like BDC processes For this FM.

ibrahim

0 Kudos

hi inder,

i have solved my problem with ur help, Thanks for all you cooperation to me.

Thanks,

santha

0 Kudos

Please mark this post as "Solved". Thanks.

Regards,

Rich Heilman

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Have you tried creating screen variant by clicking the check box for address and then use it?

Regds,

Akshay Bhagwat

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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