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

At line selection

Former Member
0 Likes
664

Hi All,

In my report program...

I am displaying like below..

Sales order <Number1 #> has been Saved.

Contract <Number1 #> has been Saved.

Sales order <Number2 #> has been Saved.

Contract <Number2 #> has been Saved.

Sales order <Number3 #> has been Saved.

Contract <Number3 #> has been Saved.

In this If i click Number1 it should display correspondng values used for that...

If i click number2 it should display for that...

How to get the particular clicked value.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
639

Hi,

Sales order <Number1 #> HOTSPOT ON has been Saved.

HIDE: <Number1 #>

Contract <Number1 #> HOTSPOT has been Saved.

HIDE: <Number1 #>

Sales order <Number2 #> HOTSPOT ON has been Saved.

HIDE: <Number2 #>

Contract <Number2 #> HOTSPOT ON has been Saved.

HIDE: <Number2 #>

Sales order <Number3 #> HOTSPOT ON has been Saved.

HIDE: <Number3 #>

Contract <Number3 #> HOTSPOT ON has been Saved.

HIDE: <Number3 #>

AT LINE-SELECTION.

U can code for the further logic using SY-LISEL.

Rgds,

Prakash

Hi All,

In my report program...

I am displaying like below..

Sales order <Number1 #> has been Saved.

Contract <Number1 #> has been Saved.

Sales order <Number2 #> has been Saved.

Contract <Number2 #> has been Saved.

Sales order <Number3 #> has been Saved.

Contract <Number3 #> has been Saved.

In this If i click Number1 it should display correspondng values used for that...

If i click number2 it should display for that...

How to get the particular clicked value.

6 REPLIES 6
Read only

Former Member
0 Likes
639

Hi,

Use the below mentioned procedure .

Sales order <Number1 #> <b>HIDE</b> has been Saved.

Contract <Number1 #> <b>HIDE</b> has been Saved.

Sales order <Number2 #> <b>HIDE</b> has been Saved.

Contract <Number2 #> <b>HIDE</b> has been Saved.

Sales order <Number3 #> <b>HIDE</b> has been Saved.

Contract <Number3 #> <b>HIDE</b> has been Saved.

Now at AT LINE-SELECTION.

read the value in SY-LISEL.

THis will give the NUMBER1 and then proceed wiht your process.

Click the link below to know more about reading screen entries.

http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba3ef35c111d1829f0000e829fbfe/content.htm

Regards,

Vara

Read only

Former Member
0 Likes
640

Hi,

Sales order <Number1 #> HOTSPOT ON has been Saved.

HIDE: <Number1 #>

Contract <Number1 #> HOTSPOT has been Saved.

HIDE: <Number1 #>

Sales order <Number2 #> HOTSPOT ON has been Saved.

HIDE: <Number2 #>

Contract <Number2 #> HOTSPOT ON has been Saved.

HIDE: <Number2 #>

Sales order <Number3 #> HOTSPOT ON has been Saved.

HIDE: <Number3 #>

Contract <Number3 #> HOTSPOT ON has been Saved.

HIDE: <Number3 #>

AT LINE-SELECTION.

U can code for the further logic using SY-LISEL.

Rgds,

Prakash

Read only

Former Member
0 Likes
639

Hope below example would give you some idea on handling the requirement:

data: vbeln type vbeln.

write:/ 'Sales Order Number:', '510003086'.
write:/ 'Contract:', '510003061'.

at line-selection.
  case sy-lisel(1).
  when 'S'.
     vbeln = sy-lisel+19(10).
     set parameter id 'AUN' field vbeln.
     call transaction 'VA03' and skip first screen.
  when 'C'.
     vbeln = sy-lisel+9(10).
     set parameter id 'AUN' field vbeln.
     call transaction 'VA43' and skip first screen.
  endcase.

Kind Regards

Eswar

Read only

Former Member
0 Likes
639

Hi ,

You need to use the HIDE command .

So your program must look like this.

Write 😕 'Sales Order Numner ' , it_1-sono ,' has been saved.

HIDE it_1-sono.

now when you click on it , the control gets trnasfred to the event AT LINE-SELECTION , and the value on which you clicked is stored back to the varaible

it_1-sono , you can use this for furher processing.e.g.

AT LINE-SELECTION.

Write it_1-sono.

Regards

Arun

Read only

Former Member
0 Likes
639

suppose your itab contains values

name no

a 1

b 2

c 3

itab2 contains

name height

a 3.5

b 4.5

c 6.5

at line-selection.

read table itab2 with key name = itab-name.

sy-lsind you have to fix.........

write : / itab2-height.

loop at itab.

write : / itab-name, itabno.

hide : itab-name.

endloop.

for each line the hide statement will store the value itab-name in hide area i.e. when you click 1st row itab-name = a for clicking 2nd row it will be b like this.

regards

shiba dutta

Read only

Former Member
0 Likes
639

Hi,

Check this example..

DATA: V_VBELN(10).

V_VBELN = '123'.

WRITE: / 'SALES ORDER ', V_VBELN, ' SAVED'.

HIDE V_VBELN.

V_VBELN = '454545'.

WRITE: / 'CONTRACT ', V_VBELN, ' SAVED'.

HIDE V_VBELN.

AT LINE-SELECTION.

WRITE: / V_VBELN.

Thanks,

Naren