Application Development 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: 

BAPI

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

dev_parbutteea
Active Contributor
0 Kudos

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.

6 REPLIES 6

dev_parbutteea
Active Contributor
0 Kudos

hi,

which bapi are you using?

0 Kudos

Hi,

It is not standard Bapi.Custom bapi iam using.

Thanks,

Sudhakar Goud

dev_parbutteea
Active Contributor
0 Kudos

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.

0 Kudos

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

0 Kudos

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.

0 Kudos

Hi,

Thanks for ur reply.This answer is very helpful to me.I will assign full points.

Thanks & regards,

sudhakar