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: 

Reg XK03 skip first screen

Former Member
0 Kudos

Hi All,

I have a requirement in my custom program when I double click on vendor number it should navigate to the transaction XK03 by skipping first screen.I have done code for this using set parameter for vendor and compcode and purchasing organization but the problem is the program should select purchasing data checkbox also in the first screen before skipping that.So how to pass default check for purchasing data check box?

We tried to do this also using BDC but the problem is with modes since we have only 3 modes A,N,E.I want to skip the first sceen and go to the 2nd screen which is not possible in BDC.

Please suggest somebody how to do this?

Regards

Mahesh

6 REPLIES 6

Former Member
0 Kudos

Hi,

you can also work with call transaction using bdcdata.

So, that you can fill all relevant screens with your datas and okcodes.

and the mode is N for background

regards

Nicole

0 Kudos

Hi All,

Thanks for your reply FYI I am not uploading data like in BDC I just want to display the transaction by skipping the first screen the problem with the skip is I can pass values to fields vendor compcode and purch organization using set parameter id but how can I pass data to purchasing data check box (so that the check box will be selected by default).

Regards

Mahesh

0 Kudos

data : opt like CTU_PARAMS.

opt-DISMODE = 'E'.

CLEAR : it_bdc.

REFRESH : it_bdc.

PERFORM populate_bdc_data USING 'X' 'SAPMF02K' '0101'.

PERFORM populate_bdc_data USING space 'BDC_CURSOR'

'RF02K-LIFNR'.

PERFORM populate_bdc_data USING space 'BDC_OKCODE'

'/00'.

PERFORM populate_bdc_data USING space 'RF02K-LIFNR'

l_final-lifnr.

PERFORM populate_bdc_data USING space 'RF02K-BUKRS'

'1000'.

PERFORM populate_bdc_data USING space 'RF02K-EKORG'

l_final-ekorg.

PERFORM populate_bdc_data USING space 'RF02K-D0310' 'X'. <-- for checkbox ..

CALL TRANSACTION 'XK03' USING it_bdc OPTIONS FROM opt.

0 Kudos

Hello srinivas,

If we call the transaction in "E" mode the screen will display only if it has the error on the screen data.This will not solve the problem Please give me some other idea .

Regards

Mahesh

0 Kudos

It works not only in Error mode.. It's working perfectly in my

program ..

Former Member
0 Kudos

Hi,

You can try the following

SET PARAMETER ID: 'LIF' FIELD V_VENDOR

'BUK' FIELD V_CCODE

'EKO' FIELD V_PORG.

CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN.