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: 

abap code

Former Member
0 Kudos

hi all,

can anyone help me in coding this:

Using the Parameter ID 'ABC', use the Get Parameter statement to get the value of the Customer Number entered by the User.

thanx a lot,

Jc

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try this...

Set Parameter 'ABC' field name.

GEt parameter value.

Regards,

Sushil.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Try this...

Set Parameter 'ABC' field name.

GEt parameter value.

Regards,

Sushil.

Former Member
0 Kudos

Hi,

If you want to get the Program Name entered by a user in tx. SE 38 into a variable :

Data : repid like sy-repid.

GET PARAMETER ID RID FIELD REPID.

Now the field REPID will have the program name entered by the user in tx. se38.

Reward if helpful.

Rgds

Former Member
0 Kudos

SET PARAMETER ID pid FIELD f.

Example

DATA REPID like sy-repid VALUE 'RSPFPAR'.

SET PARAMETER ID 'RID' FIELD REPID.

GET PARAMETER ID pid FIELD f.

Read the program name from SAP memory:

DATA : REPID LIKE SY-REPID.

GET PARAMETER ID 'RID' FIELD REPID.

Ramesh

Former Member
0 Kudos

Hello,

The syntax is as follows:

GET PARAMETER ID 'ABC' FIELD <fieldname>.

The parameter id has to be created using SE80 and has to be set in the SU01 if you explicitly use it.

Thanks,

Krishnakumar

Message was edited by: Krishnakumar

Former Member
0 Kudos

Hi Jaycee,

The <i>GET PARAMETER ID pid FIELD f</i> statement is used to retrieve the value presently stored in this Parameter ID field in the SAP Local or Global Memory (in simple words).

Copy and execute this sample code to get a feel of it.



REPORT zztest.


DATA : progname TYPE rs38m-programm.

START-OF-SELECTION.

  GET PARAMETER ID 'RID' FIELD progname.

  WRITE : / 'Current Program : ',  progname.

Regards,

<b>AS</b>