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

re: selection-screen

Former Member
0 Likes
689

Hi all,

I have a issue like , I have an internal table , In the internal table i have a cusmer no ,

I have to see weather this custmer no exists in the s_shipto_party(selection-screen.. this is ship to party selection screen internal table ) ,

i.e

I have to check weather In the 1st internal table, the custmer no is existing in the selection screen internal table (s_shipto_party) , if it is not there , I have to insert the cusmer nos which are getting from 1st internal into the selection screen internal table , please help me i will give u full points.

regards,

Sasi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
668

loop at internal table having customer no.

read selection screen itab with key cutomerno = internal table customer no.

if sy-subrc <> 0.

append selection screen itab.

endif.

endloop.

6 REPLIES 6
Read only

Former Member
0 Likes
669

loop at internal table having customer no.

read selection screen itab with key cutomerno = internal table customer no.

if sy-subrc <> 0.

append selection screen itab.

endif.

endloop.

Read only

Former Member
0 Likes
668

Hi,

loop at itab where customerno in s_ship_to_party.

s_screen-sign = 'I'.

s_screen-option = 'EQ'.

s_screen-low = itab-customerno.

append s_screen.

endloop.

Regards,

Shruthi

Read only

Former Member
0 Likes
668

>

> Hi all,

> I have a issue like , I have an internal table , In the internal table i have a cusmer no ,

> I have to see weather this custmer no exists in the s_shipto_party(selection-screen.. this is ship to party selection screen internal table ) ,

> i.e

> I have to check weather In the 1st internal table, the custmer no is existing in the selection screen internal table (s_shipto_party) , if it is not there , I have to insert the cusmer nos which are getting from 1st internal into the selection screen internal table , please help me i will give u full points.

>

> regards,

> Sasi

Check if this code works for you


LOOP AT itab WHERE cust NOT IN s_shipto_party.
  s_shipto_party-low = itab-cust.
  APPEND s_shipto_party.
ENDLOOP.

Read only

Former Member
0 Likes
668

Hi,

Is Ship_to_party is written in the Selection Screen Using

Select-options ? If so then Below is the process:

Loop At Int Table 1.

then Read the Selection Screen Internal Table.

Read table ship_to_party where ship_to_party-low =

int_tabl1-customer.

if sy-subrc <> 0.

ship_to_party-low = int_tabl1-customer.

append ship_to_party

endif.

Hope This Helps.

Thanks & Regards

Jitendra

Read only

0 Likes
668

HI ,

Try this way

itab - suppose ur internal table with cust no.

s_itab - select option internal table.

wa_s_itab -work area of type s_itab.

loop at itab.

read s_itab with key custno = itab-custno.

if sy-subrc NE 0.

move itab-custno to wa_s_itab-custno.

append wa_s_itab to s_itab.

clear wa_s_itab.

endif.

endloop.

Read only

Former Member
0 Likes
668

Hi,

Use the below code.

LOOP AT itab WHERE not custno IN s_shipto_party.

s_shipto_party-low = itab-custno.

APPEND s_shipto_party.

ENDLOOP.