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

suppress message type 'E' in BDC.

Former Member
0 Likes
1,673

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

10 REPLIES 10
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,572

It is not possible.

Read only

0 Likes
1,572

Any solution...or option ?

Read only

0 Likes
1,572

Provide the value to the mandatory field, check with BAPI ( Bapi should throw the same error ), I do not see any other options.

Read only

0 Likes
1,572
I am providing value to mandatory field. before filling up values in the area error message gets generated.

{

   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

Read only

0 Likes
1,572

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

Read only

0 Likes
1,572

 

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

Read only

0 Likes
1,572

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..

Read only

0 Likes
1,572

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...

Read only

0 Likes
1,572

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

Read only

Former Member
0 Likes
1,572

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.