05-31-2007 6:30 AM
Hi,
iam working BAPI Vendor request.Already this object exits,Iam doint some validations.I have stuck up one point.Below i mentioned that point.
For Main Vendors Account Group (ZFELFA1-KTOKK = 0001), if any of the following fields are null, populate that null field with the corresponding value below into the ZFELFM1 table. If the fields are not null, do not peform the following:
LFM1-INCO1 (Incoterms (Part 1) = FOB
LFM1-INCO2 (Incoterms (Part 2)) = PLANTSITE
LFM1-MEPRF (Price Deter.(Pricing) Date Control) = 3
LFM1-KZAUT (Auto. Gen. of Purchase Order Allowed) = X
LFM1-LEBRE (Ind. for Service-Based Invoice Verif.) = X
Please exian what is the logic with code?
Thanks & Regards,
sudhakar goud
05-31-2007 7:19 AM
Hi,
if ZFELFA1-KTOKK = 0001.
if LFM1-INCO1 = space.
LFM1-INCO1 (Incoterms (Part 1) = FOB
endif.
if LFM1-INCO2= space.
LFM1-INCO2 (Incoterms (Part 2)) = PLANTSITE
endif.
<b>.
.
.</b>
endif.
05-31-2007 7:06 AM
05-31-2007 7:11 AM
Hi,
It is not standard Bapi.Custom bapi iam using.
Thanks,
Sudhakar Goud
05-31-2007 7:19 AM
Hi,
if ZFELFA1-KTOKK = 0001.
if LFM1-INCO1 = space.
LFM1-INCO1 (Incoterms (Part 1) = FOB
endif.
if LFM1-INCO2= space.
LFM1-INCO2 (Incoterms (Part 2)) = PLANTSITE
endif.
<b>.
.
.</b>
endif.
05-31-2007 7:34 AM
Hi sooness,
Thanks for ur reply.The logic is for if any of the following fields are null, populate that null field with the corresponding value below into the ZFELFM1 table.
If the fields are not null, do not perform follwing.
LFM1-INCO1 (Incoterms (Part 1) = FOB
LFM1-INCO2 (Incoterms (Part 2)) = PLANTSITE
LFM1-MEPRF (Price Deter.(Pricing) Date Control) = 3
LFM1-KZAUT (Auto. Gen. of Purchase Order Allowed) = X
LFM1-LEBRE (Ind. for Service-Based Invoice Verif.) = X
so if fields are not null, what is the logic?
Thanks & regards,
Sudhakar Goud
05-31-2007 7:52 AM
HI,
if the fields are not null , do not do anything just use the values that are already in those fields as it is.
Hope that this helps you,
Regards,
Sooness.
05-31-2007 8:27 AM
Hi,
Thanks for ur reply.This answer is very helpful to me.I will assign full points.
Thanks & regards,
sudhakar