2010 Oct 22 3:19 PM
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
2010 Oct 22 3:41 PM
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
2010 Oct 22 4:59 PM
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
2010 Oct 22 5:43 PM
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
2010 Oct 23 9:24 AM
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
2010 Oct 25 8:30 AM
2015 Dec 08 9:58 PM
Hello Ragul g!
Could you please let us know how you solved this problem?
Thanks and Regards
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |