2012 Dec 06 12:07 PM
Hi,
As you aware ME21 is not "SAP Enjoy" transaction,
hence its easy to record BDC via this transaction (i do not want to use BAPI).
My Activity :
1 ) while recording is about to finish i have to issue SAVE command to complete the normal PO creation activity.
2 ) in this case after pressing save button it will be asked for tax code and its mandatory so SAP is firing message type 'E' for input tax data.
Problem :
How can i overcome this error type message. can i suppress message type 'E' ( i do not want to remove mandatory from tax code)
Avirat
Hi,
As you aware ME21 is not "SAP Enjoy" transaction,
hence its easy to record BDC via this transaction (i do not want to use BAPI).
My Activity :
1 ) while recording is about to finish i have to issue SAVE command to complete the normal PO creation activity.
2 ) in this case after pressing save button it will be asked for tax code and its mandatory so SAP is firing message type 'E' for input tax data.
Problem :
How can i overcome this error type message. can i suppress message type 'E' ( i do not want to remove mandatory from tax code)
Avirat
2012 Dec 06 12:10 PM
2012 Dec 06 12:12 PM
2012 Dec 06 12:16 PM
Provide the value to the mandatory field, check with BAPI ( Bapi should throw the same error ), I do not see any other options.
2012 Dec 06 12:24 PM
{
Previsous code of BDC
}
perform bdc_dynpro using 'saplmlsp' '0200'. " my saving decision
perform bdc_field using 'bdc_okcode'
'=sav'.
PERFORM BDC_DYNPRO USING 'SAPMM06E' '0111'. " call last screen
{
message throws somewhere here....
}
PERFORM BDC_FIELD USING 'BDC_CURSOR' " set cursor position
'EKPO-MWSKZ'.
PERFORM BDC_FIELD USING 'EKPO-MWSKZ' " set value
'NC'.
PERFORM BDC_FIELD USING 'BDC_OKCODE' " press enter key thats it.
'/00'.
CALL TRANSACTION 'ME21' USING BDCDATA MODE 'E' UPDATE 'L' MESSAGES INTO TT_ERR. " its done
2012 Dec 06 12:52 PM
Hi Avirat,
Yes, its necessary to provide the value for TAX_CODE field otherwise the BAPI will through Error messages.
As per my understanding for the document type for which you are creating PO is having the TAX code as Mandatory field in SPRO.You can mark that field as Optional Entry in case the TAX code field is not that necessary for that Document type.
Thanks,
Anuraj
2012 Dec 06 12:57 PM
Problem :
How can i overcome this error type message. can i suppress message type 'E' ( i do not want to remove mandatory from tax code)
Avirat
2012 Dec 06 12:57 PM
hi avirat,
check in me21 where is this field located in which screen and fill it while moving through the screens, rather than waiting for the error message to appear and then fill it.... hope it helps..
2012 Dec 07 4:28 AM
me21 performs 3 screen operation
1 .. header data fill
2.. item data fill ( may or may not call sub screen)
3.. final data (which performs after saving operation)
tax code will asked after saving operation so that whenever i am saving
tax code (screen) calls and immediately fires error message...
2012 Dec 07 2:12 PM
Hi Avirat,
I belive you are missing the Tax code will doing the recording in BDC, Check with the functional consultant & understand where to give the tax code & accordingly fill the value while recording.
Regards,
Nagabhushan
2012 Dec 06 2:42 PM
Are you able to skip this error running ME21 manually (whitout BDC)? I don't think that it's possible whitout providing the required field.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |