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

BADI ME_PROCESS_OUT_CUS posting error

Former Member
0 Likes
1,423

Hi All

Processing IDOC IDOC_INPUT_PURSAG_CREATE for schedule agreements.

the BAPI BAPI_SAG_CREATE is being called internally to create schdule agreements.

I am using this BADI ME_PROCESS_OUT_CUS to update the field EKKO-STAKO for time dependent condition.

I need to update the value EKKO-STAKO = 'X' inorder to get IDOC posted.

The value 'X' which I update in this class is not getting populated in the subsequent include LMEOUTP07.

I am using this class IF_EX_ME_PROCESS_OUT_CUST~OPEN to update the field EKKO-STAKO. This is the class which is getting triggered before the below mentioned error code.

Pgm Code:

IF l_context->header_new->header-stako IS INITIAL.

  • system supports documents with master conditions only!

mmpur_message_forced 'E' 'MEOUT' '019'

l_context->header_new->header-bsart '' '' ''.

re_valid = mmpur_rule_invalid.

ENDIF.

It wld be helpful if anyone suggest to update this field.

Thanks in Advance

Hi All

Processing IDOC IDOC_INPUT_PURSAG_CREATE for schedule agreements.

the BAPI BAPI_SAG_CREATE is being called internally to create schdule agreements.

I am using this BADI ME_PROCESS_OUT_CUS to update the field EKKO-STAKO for time dependent condition.

I need to update the value EKKO-STAKO = 'X' inorder to get IDOC posted.

The value 'X' which I update in this class is not getting populated in the subsequent include LMEOUTP07.

I am using this class IF_EX_ME_PROCESS_OUT_CUST~OPEN to update the field EKKO-STAKO. This is the class which is getting triggered before the below mentioned error code.

Pgm Code:

IF l_context->header_new->header-stako IS INITIAL.

  • system supports documents with master conditions only!

mmpur_message_forced 'E' 'MEOUT' '019'

l_context->header_new->header-bsart '' '' ''.

re_valid = mmpur_rule_invalid.

ENDIF.

It wld be helpful if anyone suggest to update this field.

Thanks in Advance

6 REPLIES 6
Read only

Former Member
0 Likes
1,163

You should use method PROCESS_HEADER to apply any kind of change to header data. Use GET_DATA and SET_DATA methods to set changed data back to standard data structures. see interface documentation for more details.

regards,

Pranav

Read only

Former Member
0 Likes
1,163

Hi Pranav

Thanks for your reply.

I have tried with get_data and set_data in method process_header.

But I need to bypass the below error message by passing the value of ekko-stako = 'X'. This error message is getting triggered before the process_header method is being called.

Pgm Code:

IF l_context->header_new->header-stako IS INITIAL.

  • system supports documents with master conditions only!

mmpur_message_forced 'E' 'MEOUT' '019'

l_context->header_new->header-bsart '' '' ''.

re_valid = mmpur_rule_invalid.

ENDIF.

Even I tried with other methods.

How do I pass bypass this error message?

Thank you

Read only

0 Likes
1,163

Try to impliment external enhancement point - BAPI_SAG_CREATE_G6 available in BAPI_SAG_CREATE. You can change Header and Headerx tables with field MAST_COND = 'X' (which is your STAKO).

regards,

Pranav

Edited by: PBHATT on Oct 22, 2010 11:43 AM

Read only

Former Member
0 Likes
1,163

Hi Pranav

I set a break point in the enhancement BAPI_SAG_CREATE_G6 and changed the value of MAST_COND set to 'X' in header and headerx.

But this value is not being poplulated in this code. include -> LMEOUTP07

if l_context->header_new->header-stako is initital ---> this value is not changed to 'X' .

mmpur_message_forced 'E' 'MEOUT' '019'

endif.

This error messgae shld be avoided

please suggest.

Regards

Read only

Former Member
0 Likes
1,163

Thanks Pranav.

Its solved.

Read only

fellipe_mendes
Participant
0 Likes
1,163

Hello Ragul g!

Could you please let us know how you solved this problem?

Thanks and Regards