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

Regarding Badi

Former Member
0 Likes
636

Hi,

This is satish. Iam new to badi. My requirement is order proposals from F&R system come into Sap system while creating in to purchase orders the badi should look in to that ,and assign purchase order types based on some conditions.

They given the function module name as FRE_ORD_IN_CREATE_DOC which calls

the active implementation of badi exists.I have created that implementation and found 1 method in that. It has two structures how can i use that structures.These structures r not having the fields which i have to use for validation.Is it compulsory to use those structures if not how to code . please help me solving this.

Thanks&regards,

Satish.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
582

Hi Satish,

In which system his badi is their, I couldn't find in R/3 or CRM systems.

In the importing fields of your badi or in structures you will be having the key field for you to search. You can read all the required fields needed for validation and change accordingly.

steps to be followed

1. Identify the Key field.

2. Find the function module to read the whole incoming data .

3. your validation

4. Function module to update your data.

If their are no function modules... Create them.

If you can give me more inputs on system i can help you out

Best regards

Satich Kumar

Hi,

This is satish. Iam new to badi. My requirement is order proposals from F&R system come into Sap system while creating in to purchase orders the badi should look in to that ,and assign purchase order types based on some conditions.

They given the function module name as FRE_ORD_IN_CREATE_DOC which calls

the active implementation of badi exists.I have created that implementation and found 1 method in that. It has two structures how can i use that structures.These structures r not having the fields which i have to use for validation.Is it compulsory to use those structures if not how to code . please help me solving this.

Thanks&regards,

Satish.

2 REPLIES 2
Read only

Former Member
0 Likes
583

Hi Satish,

In which system his badi is their, I couldn't find in R/3 or CRM systems.

In the importing fields of your badi or in structures you will be having the key field for you to search. You can read all the required fields needed for validation and change accordingly.

steps to be followed

1. Identify the Key field.

2. Find the function module to read the whole incoming data .

3. your validation

4. Function module to update your data.

If their are no function modules... Create them.

If you can give me more inputs on system i can help you out

Best regards

Satich Kumar

Read only

0 Likes
582

Hi Satich,

Thanks for responding. Iam giving my requirements below.For determination of badi.Go to SPRO->sap reference img->integration with my other sap components->forecasting replishment->enhancements using badis->execute modify order inbound data before posting.

BAdI to be implemented: FRE_ORD_IN_CREATE_DOC.

This BAdI should:

1.Determine document type for purchase order to be created after an order proposal.

Using the document types in the selection criteria determine the document type of each purchase order using the vendor master information:

•Purchase orders for domestic vendor with (LFM1 _ KALSK) Schema group blank and account group (LFA1_KTOKK ) not equal to Z100, should be created as document type ZNB.

•Purchase orders for import vendor with (LFM1 _ KALSK) Schema group Z2and account group (LFA1_KTOKK ) not equal to Z100, should be created as document type ZIMP.

•Purchase orders for cross-border vendor with (LFM1_KALSK) Schema group Z3 and account group (LFA1_KTOKK ) not equal to Z100, should be created as document type ZCB. Additional validation should take plase in this case: if the vendor address is from US or Mexico, it is assumed that the document type is ZCB. However, if the article country of origin is something different from Canada, US or Mexico; it should be a ZIMP.

•Purchase orders for internal vendors should be created as ZUB. Internal vendor will have an account group of Z100 (LFA1- KTOKK).

•Default document type is ZNB.

2.Flag “origin flag” for those purchase orders with incoterms in selection criteria.

The BAdI should turn on the origin flag for POs (EKPO-WEORA) with any of the incoterms listed in the selection screen. The incoterms are in the vendor master LFM1_ INCO1.

Please help me to solve.

Thanks,

Satish.