2008 Mar 14 12:44 PM
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
2008 Mar 14 12:53 PM
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
2008 Mar 14 12:48 PM
Hi,
Just check if wa_display-vbeln is not initial before setting parameter id.
Reward if helpful..
Regards,
Ramya
2008 Mar 14 12:51 PM
2008 Mar 14 12:48 PM
2008 Mar 14 12:53 PM
Dear Santhosh,
The parameter id is AUN FOR VBELN.
This can be seen in SE11
Check the further characteristics of VBELN
2008 Mar 14 12:59 PM
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
2008 Mar 14 12:53 PM
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
2008 Mar 14 12:55 PM
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..
2008 Mar 14 12:55 PM
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.
2008 Mar 14 12:56 PM
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.