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

Issue with set parameter ID

Former Member
0 Likes
3,517

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,952

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

13 REPLIES 13
Read only

former_member188251
Active Participant
0 Likes
2,952

Hi Sai Krishna,

Have you checked the values in debugging?

Read only

Former Member
0 Likes
2,952

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.

Read only

gouravkumar64
Active Contributor
0 Likes
2,952

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.


Read only

arindam_m
Active Contributor
0 Likes
2,952

Hi,

The Parameter can be used to store character value with 20 characters length. Check what you want to pass in that.

Cheers,

Arindam

Read only

Former Member
0 Likes
2,952

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

Read only

former_member209120
Active Contributor
0 Likes
2,952

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.

Read only

venkateswaran_k
Active Contributor
0 Likes
2,952

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

Read only

Former Member
0 Likes
2,952

I checked everything is fine IVN & LGN are captured only NAN is not getting captured.

Read only

rosenberg_eitan
Active Contributor
0 Likes
2,952

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.

Read only

arindam_m
Active Contributor
0 Likes
2,952

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

Read only

Former Member
0 Likes
2,953

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

Read only

0 Likes
2,952

Hi,

Thanks for the lesson.

Regards.

Read only

0 Likes
2,952

hi, what Klaus Babl said is correct.see below screenshot.