Application Development 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: 

ME32 Outline agreement problem(when saving it issuing message output)urgent

Former Member
0 Kudos

I executing Tcode me32 and make changes on this. It will issuing <b>output message</b>.My need is to suppress output message while executing this in Background.

Any inputs appreciated

regards

dinesh.a

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Create a Output Control Requirement routine in VOFM for

area EF.

In the the routine you can code something like

If SY-BATCH eq 'X'.

SY-SUBRC = 4.

ENDIF.

( See routine no 101 for reference .

You may create a routine EF 901 ( or next avaialble no. in 900 series )

You code will look like

FORM KOBED_901.

SY-SUBRC = 0.

If SY-BATCH eq 'X'.

SY-SUBRC = 4.

ENDIF.

ENDFORM.

----


  • FORM KOBEV_101 *

----


FORM KOBEV_101.

SY-SUBRC = 0.

If SY-BATCH eq 'X'.

SY-SUBRC = 4.

ENDIF.

ENDFORM.

Later in your the Output procedure in NACE , attach this routine to the output type which you want to suppress.

Cheers.

3 REPLIES 3

Former Member
0 Kudos

Create a Output Control Requirement routine in VOFM for

area EF.

In the the routine you can code something like

If SY-BATCH eq 'X'.

SY-SUBRC = 4.

ENDIF.

( See routine no 101 for reference .

You may create a routine EF 901 ( or next avaialble no. in 900 series )

You code will look like

FORM KOBED_901.

SY-SUBRC = 0.

If SY-BATCH eq 'X'.

SY-SUBRC = 4.

ENDIF.

ENDFORM.

----


  • FORM KOBEV_101 *

----


FORM KOBEV_101.

SY-SUBRC = 0.

If SY-BATCH eq 'X'.

SY-SUBRC = 4.

ENDIF.

ENDFORM.

Later in your the Output procedure in NACE , attach this routine to the output type which you want to suppress.

Cheers.

Former Member
0 Kudos

Hi Sanjay,

Thanks for your reply.It's useful for my further Investigation.If i used routines for this it will make

problem in near future.Suppose if the <b>customer wants the output messgage in future</b> it will affects the output control(once if i modified with 900 series routine or standard one to copied).The IDOC process thru LSMW data transfer technique.So if anything to be extended thru IDOC is possible to give better solution?.For that i need create any Z function module type of things?.

For your note : <b>WE are using Message type BLOACH and Basic type BLAORD03</b>

Awaiting your reply.

Once again thanks for your reply.

Regards

Dinesh.A

Former Member
0 Kudos

Hi

If the requirement is for one time data transfer then it is better to delete the condition records before the transfer and then add it again after the transfer.

( This is the way we normally do for initial data transfer ).

If its an ongoing process then you will have to use routines as IDOC will only create the document . Output processing is done by the Contract Create program itself and not by IDOC Function Module . The only thing is intead of SY-BATCH you can use some other way to distinguish whether the contract is being created by IDOC .

Now you have not mentioned whether you will use standard FM IDOC_INPUT_BLAORD or write your own Z Function for IDOC processing.

I am giving a sloution for both.

In IDOC_INPUT_BLAORD there is a user exit

EXIT_SAPLEINN_002 ( ZXM06U10 ). You can just write one line here

DATA FLAG VALUE 'X'.

EXPORT FLAG TO MEMORY ID 'BLAORD'

Or In you custom FM you can write

DATA FLAG VALUE 'X'.

EXPORT FLAG TO MEMORY ID 'BLAORD'

In the requirement routine as suggested in previous post

use

DATA FLAG.

SY-SUBRC = 0 .

IMPORT FLAG TO MEMORY ID 'BLAORD'.

IF SY-SUBRC EQ 0 AND FLAG = 'X'.

>>> C0de will branch here only when executed thru IDOCs

SY-SUBRC = 4 .

ENDIF.

With above method only when contract created thru IDOCs messages will be suppressed.

Cheers