2008 Apr 23 1:44 PM
How to set the parameter id against a button to reach a new screen....
i have created a copy of VA01.....by copying the entire code
from system-->status
i am getting the exact screen output.....but there the change and display button are not working..as they are related with VA02 AND VA03...some one asked me to set the parameter id.....and use call transaction..
please help
How to set the parameter id against a button to reach a new screen....
i have created a copy of VA01.....by copying the entire code
from system-->status
i am getting the exact screen output.....but there the change and display button are not working..as they are related with VA02 AND VA03...some one asked me to set the parameter id.....and use call transaction..
please help
2008 Apr 23 1:56 PM
Have you checked the function code of your button in the SE80 screen painter? Maybe it has got the wrong function code. Confirm it by double-clicking the button, and checking the field FctCode.
Depending on the button Function Code, the program take different decisions.
Regards.
2008 Apr 23 2:04 PM
HI Rodrigo,
i thnik its correct function code because i have copied standard SAPCODE i.e SAPMV60A.
2008 Apr 23 1:56 PM
Hi,
Here is the sample code.
********************
*----
at line-selection.
*----
get cursor field c_field.
if c_field = 'SUM_IT-BELNR'.
set parameter id 'GJR' field sum_it-gjahr.
set parameter id 'BUK' field sum_it-bukrs.
set parameter id 'BLN' field sum_it-belnr.
call transaction 'FB03' and skip first screen.
endif.
*********************
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm
.
Regards,
Shiva.
2008 Apr 23 1:58 PM
Hi,
take help of this code.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_user_command = 'CALLBACK_UCOMM'
i_grid_title = c_title
it_fieldcat = it_fieldcat
it_sort = it_sortinfo
TABLES
t_outtab = it_out
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
FORM callback_ucomm USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
DATA : wa_out TYPE type_out.
CASE r_ucomm.
WHEN '&IC1'.
IF rs_selfield-fieldname = 'VBELN'.
READ TABLE it_out INTO wa_out WITH KEY
vbeln = rs_selfield-value.
SET PARAMETER ID 'AUN' FIELD wa_out-vbeln.
For details of Sales order
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
endif.
endform.
regards,
sudha
2008 Apr 23 2:07 PM
Taking a copy of an entire SAP transaction like VA01 and its program code is a very bad idea. SAP regularly releases notes with fixes and upgrades to all kinds of programs, and these will be missed by your copy of the program / screen, meaning that you may cause data corruption in standard tables.
If you need extra or changed functionality in VA01/VA02/VA03 it is better to use one of the many available exit mechanisms, or use the enhancement framework, or even repair the code. At least that way support packs will highlight changes through SPAU when they are applied.
If you just want to have a cut down input screen / front-end or want extra values to default you could look at an up front program that fills the standard screen using BDC / Call transaction, although this is likely to lose support at some point as SAP moves more towards Web Dynpro and similar new screen technologies.
Andrew
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |