Application Development and Automation 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: 
Read only

Interactive ALV...user Command routine

Former Member
0 Likes
339

Hi All,

From the ALV report, I am Double clicking on Sales order Docuemt(VA02), It is taking me to va02 transaction.

I am writing like

CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.

But When ever I double click One information popup coming with 'Consider the subsequent documents', When ever i click on Enter , then it is entering into second screen.... here I want handle this popup ...I want to enter directly into the second screen.

regards,

Ajay

2 REPLIES 2
Read only

Former Member
0 Likes
289

Before you CALL TRANSACTION, are you Using code like this for the necessary input fields?


SET PARAMETER ID 'AUN' FIELD p_selfield-value.

Read only

Former Member
0 Likes
289

Maybe not the most elegant way to do this but here is an solution to skip the message "Subsequent documents exist":


data: bdcdata_tab type BDCDATA occurs 0,
      bdcdata_wa  TYPE bdcdata,
      bdc_options type ctu_params.

CLEAR bdcdata_wa.
bdcdata_wa-program  = 'SAPMV45A'.
bdcdata_wa-dynpro   = '0102'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.

CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'VBAK-VBELN'.
bdcdata_wa-fval = SALES_ORDER_NUMBER.
APPEND bdcdata_wa TO bdcdata_tab.

CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=UER2'.
APPEND bdcdata_wa TO bdcdata_tab.

clear bdc_options.
bdc_options-dismode = 'E'.
bdc_options-NOBINPT = 'X'.  "NOTE THIS!!

call TRANSACTION 'VA02' using bdcdata_tab options from bdc_options.