2013 Aug 05 7:26 AM
| SET PARAMETER ID 'IVN' FIELD ls_report-ivdoc. | |
| SET PARAMETER ID 'LGN' FIELD ls_report-lgnum. |
| SET PARAMETER ID 'NAN' FIELD ls_report-nvers. |
| CALL TRANSACTION 'LI13N'." AND SKIP FIRST SCREEN. |
My code is as follows but when i called transaction LI13N NVERS value is not getting populated.
Please help me in resolving this issue.
2013 Aug 05 8:55 AM
Hi,
in screen SAPML04I 2011 in the attributes of field RL04I-NVERS the dictionary attribute GET Parameter isn't marked by SAP standard.
Therefore it can't be set by SET PARAMETER.
Regards,
Klaus
2013 Aug 05 7:31 AM
2013 Aug 05 7:39 AM
How many character is your variable ls_report-nvers?
If it is more than the required 2 character then kindly try to condense the value and try again.
2013 Aug 05 7:47 AM
Hi,
Generally in this case,You have to write like this.
In reuse function module you have to activate user command.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
it_fieldcat = i_fcat
TABLES
t_outtab = it_final
like this.
then,
FORM user_command USING r_ucomm TYPE sy-ucomm
rs_selfield TYPE slis_selfield.
READ TABLE IT_FINAL INTO WA_FINAL
INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
SET PARAMETER ID 'BES' FIELD WA_FINAL-EBELN.
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
ENDIF.
ENDFORM.
Try it.
Thanks
Gourav.
2013 Aug 05 7:59 AM
Hi,
The Parameter can be used to store character value with 20 characters length. Check what you want to pass in that.
Cheers,
Arindam
2013 Aug 05 8:01 AM
Hi Sai,
I hope "ls_report" is it an Internal table or work area ? if it is internal table then it may be pick multiple values at a time , so you must "Read that Internal table and put into Work Area " using "READ TABLE " Statement then pass the value into SET Parameter ID .
Regard's
Smruti
2013 Aug 05 8:14 AM
Hi Sai Krishna,
In debug Pl. check values getting or not for ls_report-nvers.
SET PARAMETER ID 'NAN' FIELD ls_report-nvers.
Check length of nvers
Structure length is like this then what is the length of ls_report-nvers
Get Parameter not assigned to nvers so it is not possible to set parameter for nvers.
2013 Aug 05 8:22 AM
Dear Sai,
Is other values are available to you? Only nvers is not available?
Please make sure that the value coming from ls_report-nvers is a numeric only.
If it is of alphanumeric, then it will not accept.
Please put a break point and check the value of ls_report-nvers.
Also I assume that you are reading it correctly from the internal table work area.
Please confirm.
Regards,
Venkat
2013 Aug 05 8:40 AM
I checked everything is fine IVN & LGN are captured only NAN is not getting captured.
2013 Aug 05 8:47 AM
Hi,
I have this: (and it is working just fine).
TYPES: BEGIN OF tp_linv_1 .
TYPES: pdatu TYPE link-pdatu ,
charg TYPE linv-charg ,
gesme TYPE linv-gesme ,
istat TYPE linv-istat ,
ivnum TYPE linv-ivnum ,
ivpos TYPE linv-ivpos ,
lgnum TYPE linv-lgnum ,
meins TYPE linv-meins ,
menge TYPE linv-menge ,
lgtyp TYPE linv-lgtyp ,
lgpla TYPE linv-lgpla . .
TYPES: END OF tp_linv_1 .
SET PARAMETER ID 'LGN' FIELD st_linv_1-lgnum .
SET PARAMETER ID 'IVN' FIELD st_linv_1-ivnum .
CALL TRANSACTION 'LI13N' AND SKIP FIRST SCREEN .
Regards.
2013 Aug 05 8:53 AM
Hi,
Check in table TPARA if that is maintained
In a program, SPA/GPA parameters can be created or assigned values only if a name exists for them in the table TPARA. If it can be determined statically that an identification specified in pid is not contained in the TPARA database table and the package check of the ABAP runtime environment is activated by the profile parameterabap/package_check, a syntax error occurs. Otherwise the extended program check reports an error.
from link
http://help.sap.com/abapdocu_702/en/abapset_parameter.htm
Cheers,
Arindam
2013 Aug 05 8:55 AM
Hi,
in screen SAPML04I 2011 in the attributes of field RL04I-NVERS the dictionary attribute GET Parameter isn't marked by SAP standard.
Therefore it can't be set by SET PARAMETER.
Regards,
Klaus
2013 Aug 05 9:03 AM
2013 Aug 05 9:09 AM