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

BAPI

Former Member
0 Likes
829

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
Read only

dev_parbutteea
Active Contributor
0 Likes
727

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
Read only

dev_parbutteea
Active Contributor
0 Likes
727

hi,

which bapi are you using?

Read only

0 Likes
727

Hi,

It is not standard Bapi.Custom bapi iam using.

Thanks,

Sudhakar Goud

Read only

dev_parbutteea
Active Contributor
0 Likes
728

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.

Read only

0 Likes
727

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

Read only

0 Likes
727

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.

Read only

0 Likes
727

Hi,

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

Thanks & regards,

sudhakar