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

how to write the syntax

Former Member
0 Likes
717

hi,

can anybody provide me the what is the syntax for below description??

If the sales order is not at offer date, then table z03_sd_idx_ccli and z03_sd_data_ccli must not be updated. (If they were updatings, they could not be chosen again)

thanks

navketan

6 REPLIES 6
Read only

Former Member
0 Likes
696

Hi Navketan,

You can write your logic something like this.

If sales_order eq offer_date

update z03_sd_idx_ccli and z03_sd_data_ccli

endif.

Much Regards,

Amuktha.

Read only

0 Likes
696

can somebody send more elaborately

Read only

Former Member
0 Likes
696

If salesorder eq offerdate

modify z03_sd_idx_ccli and z03_sd_data_ccli

endif.

if u use modify statement then system itself checks in the table that the partcicular entry is already exist or not.if this entry doest exist then only it will create the entry.

Read only

Sathya_Gunasekaran
Contributor
0 Likes
696

Hello,

Instead of telling " if both the dates are not equal.....do not update."

You can write " If both the dates are equal...then update".

If date1 = date2.

Update statement.

endif.

Read only

Former Member
0 Likes
696

Hi,

If So_date = Offer_date.

modify z03_sd_idx_ccli from wa.

modify z03_sd_data_ccli from wa1.

endif.

if sy-subrc = 0.

write code for next time could not be chosen again.

endif.

Read only

Former Member
0 Likes
696

hi nayar , try this logic

if (<sales_order-field name> NQ <offer_date-field name> and flag = 1.)
exit.
else.
INSERT into <z03_sd_idx_ccli> from < source_name>.
INSERT into <z03_sd_data_ccli> from < source_name>.
if sy-subrc eq 0.
 flag = 1.
endif.