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: 

user command in reuse_alv_grid_display not working

rahul2000
Contributor
0 Kudos
1,700

Dear all,

I am calling VF03 throught the following code.But when i click on document no in my output it goes to the first screen and says ENTER A BILLING DOCUMENT NUMBER...

Where am i going wrong.Plz let me know

----


  • FORM USER_COMMAND *

----


  • --> R_UCOMM *

  • --> RS_SELFIELD *

----


FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

CASE r_ucomm.

WHEN '&IC1'.

READ TABLE iT_display INTO wa_display INDEX rs_selfield-tabindex.

SET PARAMETER ID 'AUN' FIELD wa_display-vbeln..

CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.

ENDCASE.

ENDFORM. "user_command

1 ACCEPTED SOLUTION

former_member708410
Contributor
0 Kudos
313

user command in reuse_alv_grid_display not working

Posted: Mar 14, 2008 1:44 PM E-mail this message Reply

Dear all,

I am calling VF03 throught the following code.But when i click on document no in my output it goes to the first screen and says ENTER A BILLING DOCUMENT NUMBER...

Where am i going wrong.Plz let me know

-


FORM USER_COMMAND *

-


--> R_UCOMM *

--> RS_SELFIELD *

-


FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

CASE r_ucomm.

WHEN '&IC1'.

READ TABLE iT_display INTO wa_display INDEX rs_selfield-tabindex.

if wa_display-vbeln is not initial

SET PARAMETER ID 'VF' FIELD wa_display-vbeln..

CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.

endif.

ENDCASE.

ENDFORM. "user_command

REWARD POINTS IF HELPFUL,

KUMAR

9 REPLIES 9

Former Member
0 Kudos
313

Hi,

Just check if wa_display-vbeln is not initial before setting parameter id.

Reward if helpful..

Regards,

Ramya

0 Kudos
313

Dear Ramya,

No wa_dispay-vbeln is not initial.

santhosh_patil
Contributor
0 Kudos
313

Hi,

The parameter id may be AF Please check..

.....Patil

0 Kudos
313

Dear Santhosh,

The parameter id is AUN FOR VBELN.

This can be seen in SE11

Check the further characteristics of VBELN

0 Kudos
313

Rahul,

The parmeter ID is what it is assigned on the screen you're using.

Kumar is correct in that it is VF

Proof:

Use Tran Code VF03

Put cursor in Billing Document field and hit F1

Click the Technical Info button

Note value in Parameter ID

former_member708410
Contributor
0 Kudos
314

user command in reuse_alv_grid_display not working

Posted: Mar 14, 2008 1:44 PM E-mail this message Reply

Dear all,

I am calling VF03 throught the following code.But when i click on document no in my output it goes to the first screen and says ENTER A BILLING DOCUMENT NUMBER...

Where am i going wrong.Plz let me know

-


FORM USER_COMMAND *

-


--> R_UCOMM *

--> RS_SELFIELD *

-


FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

CASE r_ucomm.

WHEN '&IC1'.

READ TABLE iT_display INTO wa_display INDEX rs_selfield-tabindex.

if wa_display-vbeln is not initial

SET PARAMETER ID 'VF' FIELD wa_display-vbeln..

CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.

endif.

ENDCASE.

ENDFORM. "user_command

REWARD POINTS IF HELPFUL,

KUMAR

0 Kudos
313

Dear Kumar..

Thanks a ton..

Problem has been resolved..

parameter id is VF...

can u plz let me know how to find this..

Full points to you..

Former Member
0 Kudos
313

Hi,

check wheather u have passed USER_COMMAND name in the Exporting parameter of

I_CALLBACK_USER_COMMAND = 'USER_COMMAND' in the FM

REUSE_ALV_GRID_DISPLAY .

Regards,

Balakumar.G.

Former Member
0 Kudos
313

Hi,

I can call the transaction from my code.Just have a look.

Let me know ,whether it is working succefully or not.

FORM USER_COMMAND USING R_COMM TYPE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

CASE R_COMM.

WHEN '&IC1'.

IF RS_SELFIELD-FIELDNAME = 'EBELN'.

SET PARAMETER ID 'BES' FIELD WA_EKKO-EBELN. " BES is data element of EBELN

CALL TRANSACTION 'SE38'.

ENDIF.

ENDCASE.

ENDFORM.

To find BES,double click on the field(it opens data element)

and Click on "further characteristics" tab button.there u can

get the parameter id.

Reward,if it is useful.

Regards,

Chandu.