‎2008 May 20 7:22 AM
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
‎2008 May 20 7:29 AM
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.
‎2008 May 20 7:29 AM
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.
‎2008 May 20 7:33 AM
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
‎2008 May 20 7:35 AM
>
> 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.
‎2008 May 20 7:42 AM
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
‎2008 May 20 7:53 AM
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.
‎2008 May 20 7:49 AM
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.