‎2006 Oct 27 5:56 PM
Hai experts,
I have an Include like following,
tables: zzue026, ztbwtrade.
data: zsur_flag type c.
clear: zzue026, zsur_flag.
select single vkorg auart from zzue026 into (zzue026-vkorg,
zzue026-auart)
where vkorg = vbak-vkorg and auart = vbak-auart.
if sy-subrc = 0.
import zsur_flag from memory id 'ZZSUR_FLAG'.
if zsur_flag ne 'Y'.
message w027(zkse).
endif.
endif.
if yvbak_updkz eq 'D'.
move-corresponding: xvbak to ztbwtrade.
move: 'D' to ztbwtrade-updkz.
move: sy-datum to ztbwtrade-aedat.
modify ztbwtrade.
endif.
Taking the above inlcude as a reference, I would like to write an include which check below conditions ,I would like to put these in custom table .
Sales org = 5010,
Order type = RAS
Item category = IRRS
Condition type = ZNET
If the above condition did not meet then the user exit should not be executed.
Can anyone help be with code,?????
Can anyone tell me the steps for creating a Custom table ??
‎2006 Oct 27 6:53 PM
Hello,
I think u need some sales order fields into your Ztable.
create a table with what everever u would like to be put these 4 fields into that table.
take ABAPer help to create table from your a team.
tables: zzue026, ztbwtrade.
data: zsur_flag type c.
clear: zzue026, zsur_flag.
select single vkorg auart from zzue026 into (zzue026-vkorg,
zzue026-auart)
where vkorg = vbak-vkorg and auart = vbak-auart.
if sy-subrc = 0.
import zsur_flag from memory id 'ZZSUR_FLAG'.
if zsur_flag ne 'Y'.
message w027(zkse).
endif.
endif.
if yvbak_updkz eq 'D'.
move salesorg,ordertype,conditontype and itemcat into Ztable.
modify ztable.
endif.
**********Poorna**********