cancel
Showing results for 
Search instead for 
Did you mean: 

call transaction and skip first screen

Former Member
0 Kudos

Hi All!

I had created a Z transaction through SE93 option parameter transaction.

I had given values to pass to the T-code SE54.

Now my problem is there is a test button on this screen which has fetch code TEST ,while passing values i had given the following entries

screen field name : TEST

Value : X

But i am getting an warning message saying TEST field is not available on screen.But infact it is available on the screen which i had checked using layout editor.

Because of this i could not able to skip first screen.

Please advise

Praneeth

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Praneeth. What do you want to do with this transaction? why not create a parameter transaction calling trx. SM30 to update the table?

Jesus

Former Member
0 Kudos

Good question jesus!

The requirement is that the user wants a cluster of all check tables at one place through one Ztransaction . otherwise if i use SM30 ,for each table i have to create single transaction and it will result in multiple z transaction which would be tedious to the user.

I think you are clear.

Regards

Praneeth

Former Member
0 Kudos

Set the SPA/GPA parameter using

set parameter id 'DVI' field <dobj>.

then call the transaction.

naimesh_patel
Active Contributor
0 Kudos

Hello Praneeth,

It seems that you can not use that test button.

Do one thing, make one program without any parameter on selection screen . Use BDC to call SE54 and put all your coding to call the View cluster button. And finally create a simple trnasaction for that.

Hope this will help you.

Regards,

Naimesh

Former Member
0 Kudos

Hi Naimesh!

Can you give me a sample program on this?

Regards

praneeth

naimesh_patel
Active Contributor
0 Kudos

Hello Praneeth,

I have pasted code for you. Copy the code and create one simple report.

After that create report transaction for this report.

Regards,

Naimesh.

**************************

REPORT ZTEST_NP.

DATA: BEGIN OF IT_BDCTAB OCCURS 0.

INCLUDE STRUCTURE BDCDATA.

DATA: END OF IT_BDCTAB.

START-OF-SELECTION.

PERFORM BDC_TAB.

&----


*& Form BDC_TAB

&----


FORM BDC_TAB.

PERFORM DYNPRO USING:

'X' 'SAPMSVIM' '0050',

' ' 'VIMDYNFLDS-VIEWNAME' 'ZTAB1',

' ' 'VIMDYNFLDS-STRUCT_MNT' 'X',

' ' 'BDC_OKCODE' '=CLUS'.

PERFORM DYNPRO USING:

'X' 'SAPLMGMM' '0052',

' ' 'VIMDYNFLDS-VCLNAME' 'ZTAB1',

' ' 'BDC_OKCODE' 'TEST'.

CALL TRANSACTION 'SE54' USING IT_BDCTAB MODE 'E'.

ENDFORM. " BDC_TAB

&----


*& Form DYNPRO

&----


FORM DYNPRO USING DYNBEGIN FIELD FIELD_VAL.

CLEAR IT_BDCTAB.

IF DYNBEGIN = 'X'.

IT_BDCTAB-DYNBEGIN = DYNBEGIN.

IT_BDCTAB-PROGRAM = FIELD.

IT_BDCTAB-DYNPRO = FIELD_VAL.

ELSE.

IT_BDCTAB-FNAM = FIELD.

IT_BDCTAB-FVAL = FIELD_VAL.

ENDIF.

APPEND IT_BDCTAB.

CLEAR IT_BDCTAB.

ENDFORM. " DYNPRO

Former Member
0 Kudos

Hi Naimesh!

Thanks for the code.As of now i am not able to give points to your help since the points awarding section is disabled .as soon as it gets enabled will award you maximum points.

Thanks for the help.

I will get back if there is any problem with the code.

Regards

Praneeth

Former Member
0 Kudos

If at all you are using it for filling BDCDATA, use it like this:

bdcdata-fname = 'BDC_OKCODE'.

bdcdata-fval = 'TEST'.

Peter_Inotai
Active Contributor
0 Kudos

You have to use the SET/GET parameter way to transfer the default values or use the USING BDCDATA option.

Peter

Former Member
0 Kudos

Hi peter!

Can u please elaborate.

The error i am getting is in SE93 while saving the entries.Where shall i use SET/GET parameter?

Please elaborate

Regards

Praneeth