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

mb90 related problem

former_member187748
Active Contributor
0 Likes
1,320

Hi all,

when ever we creates any PO it generates a unique reference no., now when i put this ref. no into MB90 transaction

it calls my smartform associated with it, and it get printed, the problem is that, whenever we go for the cancellation

(revarsal) of any PO, it also generates a unique ref. no, now i want to restrict my smartform not to get called whenever the ref. no.

is from revarsal process,please anybody tell me how could i achieve this.

Hi all,

when ever we creates any PO it generates a unique reference no., now when i put this ref. no into MB90 transaction

it calls my smartform associated with it, and it get printed, the problem is that, whenever we go for the cancellation

(revarsal) of any PO, it also generates a unique ref. no, now i want to restrict my smartform not to get called whenever the ref. no.

is from revarsal process,please anybody tell me how could i achieve this.

7 REPLIES 7
Read only

Former Member
0 Likes
1,184

Hi Sanjeev,

The driver program of the SMARTFORM you can put a check that the document type of the PO for which the print is called is not reversal.

Regards,

Read only

0 Likes
1,184

Hi Yakub,

my driver program is  copied from standard SAP program, and it consists of all includes, so i think i have to do some Enhancement into it. So please tell me how can i do that, please tell me in detail

what will be my code, to check for reversal PO.

Read only

0 Likes
1,184

Copied program means Y or Z program, we can change it. check that program and run it in se38 in change mode.

Read only

0 Likes
1,184

Hi Ramesh,

my program consists of these includes, and not all of them are editable(few of them are editable).

So how i know in which include, i have to write my code, and please tell me what will be the code lines so that it will deselect revarsal ref. no for calling my smartforms.

INCLUDE: ZM07DRTOP.                   "Tabellen und Datendeklarationen

*****Start of PDF conversion, 30/12/2004, C5056157

INCLUDE: M07DRTOP_PDF.           "Tabellen und Datendeklarationen

******End of PDF conversion, 30/12/2004, C5056157

INCLUDE: M07DRMTA.                   "Zugriffsroutinen für ATAB-Tabellen

INCLUDE: M07DRMMA.                   "Zugriffsroutinen Material

INCLUDE: M07DRMBE.                   "Zugriffsroutine Bestellung

INCLUDE: M07DRMFA.                   "Zugriffsroutine FauftrKopf

INCLUDE: M07DRKON.                   "Zugriffsroutine Kontierung

INCLUDE: M07DRF01.                   "Druck WE Schein  FertAuftr. Vers1

*****Start of PDF conversion, 30/12/2004, C5056157

INCLUDE: M07DRF01_PDF.               "Druck WE Schein  FertAuftr. Vers1

******End of PDF conversion, 30/12/2004, C5056157

INCLUDE: M07DRF02.                   "Druck WE Schein  FertAuftr. Vers2

*****Start of PDF conversion, 30/12/2004, C5056157

INCLUDE: M07DRF02_PDF.             "Druck WE Schein  FertAuftr. Vers2

******End of PDF conversion, 30/12/2004, C5056157

INCLUDE: M07DRE01.                   "Druck Wareneingangsschein Vers.1

*****Start of PDF conversion, 30/12/2004, C5056157

INCLUDE: M07DRE01_PDF.           "Druck Wareneingangsschein Vers.1

******End of PDF conversion, 30/12/2004, C5056157

INCLUDE: M07DRE02.                   "Druck Wareneingangsschein Vers.2

*****Start of PDF conversion, 30/12/2004, C5061148

INCLUDE: M07DRE02_PDF.           "Druck Wareneingangsschein Vers.1

******End of PDF conversion, 30/12/2004, C5061148

INCLUDE: M07DRE03.                   "Druck Wareneingangsschein Vers.3

INCLUDE: M07DRA01.                   "Druck Warenausgangsschein Vers.1

***** Start of PDF conversion 03/01/2005 by C5056155

INCLUDE: M07DRA01_PDF.               "Druck Warenausgangsschein Vers.1

***** End   of PDF conversion 03/01/2005 by C5056155

INCLUDE: M07DRA02.                   "Druck Warenausgangsschein Vers.2

***** Start of PDF conversion 03/01/2005 by C5056155

INCLUDE: M07DRA02_PDF.               "Druck Warenausgangsschein Vers.1

***** End   of PDF conversion 03/01/2005 by C5056155

INCLUDE: M07DRA03.                   "Druck Warenausgangsschein Vers.3

INCLUDE: M07DRLB3.                   "Druck Warenausg.schein LB Vers.3

INCLUDE: M07DRETI.                   "Druck Etiketten Warenausgang

******Start of PDF conversion, 11/01/2004, C5061148

INCLUDE: M07DRETI_PDF.

*******End of PDF conversion, 11/01/2004, C5061148

******Start of PDF conversion, 11/01/2004, C5056320

  INCLUDE: M07DRKTO.                   "Druck Mehrfachkontierungsblatt

  INCLUDE: M07DRKTO_PDF.                 "Druck Mehrfachkontierungsblatt

******End   of PDF conversion, 11/01/2004, C5056320

INCLUDE: ZM07DRENT.                   "Entries für Druck

*****Start of PDF conversion, 30/12/2004, C5056157

INCLUDE: M07DRENT_PDF.               "Entries für Druck

******End of PDF conversion, 30/12/2004, C5056157

INCLUDE: M07DRLOB.                   "Leseroutine Adresse LB-Lieferant

INCLUDE: M07DRAUS.                   "Ausgaberoutinen

*****Start of PDF conversion, 30/12/2004, C5056157

INCLUDE: M07DRAUS_PDF.                   "Ausgaberoutinen

******End of PDF conversion, 30/12/2004, C5056157

INCLUDE: ZM07DRSON.                   "sonstige Routinen

*****Start of PDF conversion, 30/12/2004, C5056157

INCLUDE: M07DRSON_PDF.                   "sonstige Routinen

******End of PDF conversion, 30/12/2004, C5056157

Read only

0 Likes
1,184

Hi,

as Mr.shah said.. you have to check MKPF-BLART(Material Doc type) Or check reversal movement type MSEG-BWART in you program whether its Z or standard and don't call your smartforms or avoid smartform printing process..

regards

tejas

Read only

0 Likes
1,184

Hi Tejas,

thanks for your reply, but the question is in my driver program all are includes. So how can i know

in which include i have to code.And the other thing is that how could i check for revarsal PO ref. no,

as we can check for movement type either it is of type "102" or "102"(bwart field). If the bwart field is of type "101", i have to print smartform, but for bwart type "102" it will not print.

Please write the code for checking the ref. no of revarsal PO, and tell me how i will know that it is of reversal or not, then how to exclude smartform if it is of revarsal PO.

Read only

0 Likes
1,184

Hi,

You seems to be Functional person and Non-technical.. you should take help from technical person.

I think last option is..

asked your technical person to debug MB90 tcode by placing breakpoint on SELECT statement..

and see for query on MSEG table.. take BWART from MSEG...and avoid your smartforms..implement Enhancement or User exits..or badi..also Put break point on statement CALL CUSTOMER-FUNCTION

Regards

Tejas