cancel
Showing results for 
Search instead for 
Did you mean: 

Badi for setting default values in the transaction in APO.

Former Member
0 Kudos

BADI NAME: SMOD_APOCF005 which is used for setting default values in the transaction.

I have implemented the BADI using the below code but that BADI is not triggering. Please can you provide any solution for resolving this.

As per my requirement I am trying to set default values for these three fields RRP_TYPE, WHATBOM, CONVH.

DATA: LS_MATLOC LIKE LINE OF IT_MATLOC.

LOOP AT IT_MATLOC INTO LS_MATLOC.

LS_MATLOC-RRP_TYPE = '4'.

LS_MATLOC-WHATBOM = '5'.

LS_MATLOC-CONVH = '999'.

MODIFY TABLE IT_MATLOC FROM LS_MATLOC TRANSPORTING RRP_TYPE WHATBOM CONVH.

ENDLOOP.

DATA: LS_MATLOCX LIKE LINE OF IT_MATLOCX.

LOOP AT IT_MATLOCX INTO LS_MATLOCX.

LS_MATLOCX-RRP_TYPE = 'X'.

LS_MATLOCX-WHATBOM = 'X'.

LS_MATLOCX-CONVH = 'X'.

MODIFY TABLE IT_MATLOCX FROM LS_MATLOCX TRANSPORTING RRP_TYPE WHATBOM CONVH.

ENDLOOP.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The BADI SMOD_APOCF005 will trigger when CIF the product data from ECC to APO for any enahncement. You are setting the defalt values while CIF the product data from ECC to APO. Please let me know your requirement.

Regards,

Siri

Former Member
0 Kudos

The BADI name: SMOD_APOCF005 .

T.code at APO : /sapapo/mat1

Once we enter in that T.Code with some Product and Location data.

There under PP/DS tab.

Under Planning Procedure there is a field PP Plng Procedure which I want to set as 4

And under Order Creation there is Plan Explosion which needs to be set as 5

And Under Horizons there is PP/DS Horizon which needs to be set as 999.

BADi is implemented and active.

And once the data is CIF from ECC to APO

These default values are not set in the T code in APO and the BADi is not triggering.

Former Member
0 Kudos

Hi Satya,

could you share the code and process details .

I have also the same requirement.

Regards

Ravi