cancel
Showing results for 
Search instead for 
Did you mean: 

Output Types > Replacement of text symbols: program, FORM routine needed

Joerg_S
Participant
0 Kudos

Hello,

I'm searching for a program and/or FORM routine that will replace &EKKO-EBELN& and &EKKO-LIFNR& (from Mail title and texts) .

Example: Hochland Rahmenvertrag &EKKO-EBELN& / &EKKO-LIFNR& Replaced with: Hochland Rahmenvertrag 4600012345 / 712888

I have problems filling the eMail subject when creating a Outline agreement (Apllication EV)...

For purchase orders it's working without FORM routine (Apll. EF) !!!

SAP provides this (empty) fields in transaction NACE (or NACT).

Output type > Detail

General Data > Replacement of text symbols

appreciating any hints in this topic

regards

Jörg

-

-


from SAP F1 context help: ... Program for creating or changing an output text Use In order to analyse parameters in titles of e-mails or faxes, you have to store a special program and a form routine in the field FORM routine. System fields like SY-UNAME or SY-DATUM are are excluded from this: They will be automatically analysed by the system. Example On New Year's Day 2000, you send the purchase order 4711 by fax. The title of the corresponding output type is "Purchase order no. VBAK-VBELN on SY-DATUM" (put a "&" before and after the fields). In the outbound message you therefore have the output "Purchase order no. 4711 on 01/01/2000". The field VBAK-VBELN has been filled with global data by a form routine. ...

Accepted Solutions (1)

Accepted Solutions (1)

kesavadas_thekkillath
Active Contributor
0 Kudos

Create a form routine.

Call it from your sap script using these values and return the replaced string.

Just search for EXTERNAL SUBROUTINE IN SAP SCRIPT, you will get the solution.

Joerg_S
Participant
0 Kudos

Hi Keshav

You mean

PERFORM 'X' IN PROGRAM 'Z_xxx'

USING

a

CHANGING

b

?

why should i create a form routine in SAP Script for variables that are allready available/filled?

will this refresh my variables? or make it global ?

Also. please read my reply above to see where i'm stuck

regards

Jörg

Edited by: Jörg Sauterleute on Sep 9, 2010 1:57 PM

Former Member
0 Kudos

here are some hints

PR - SAPMM06B - Include MM06BFTE_TEXT_EDITIEREN - ?????

PO - SAPMM06E - Include MM06EFTE_TEXT_EDITIEREN - Form text_symbol_replace

Joerg_S
Participant
0 Kudos

> here are some hints

> PR - SAPMM06B - Include MM06BFTE_TEXT_EDITIEREN - ?????

> PO - SAPMM06E - Include MM06EFTE_TEXT_EDITIEREN - Form text_symbol_replace

Great - these where the hints i was searching for

NACE ...

program = SAPMM06E form routine = TEXT_SYMBOL_REPLACE

...now the eMail subject is filled with PO-number and supplier-number as demanded ... and all just using SAP standard

thx to you guys assisting me

special thx to shital phadake

Jörg

Former Member
0 Kudos

I tried exactly same as above, but nothing (no po) is printed on the spool. BTW, if I just have text (say PO number" ) and no form or program name defined, then the text is getting printed on the PO prnitout. But when I have PO number: &EKKo-EBELN&' and form and program names as explained above, nothing is printed in spool / printout. I am pretty sure that I am missing some link, not sure what is that and how to fix that. Thanks,

Regards,

Sundar.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi friend,

Try in this way,

1. Before calling the function module to send e-mail, while populating the subject value.

2. Declare a string variable and using concatenate ABAP statement, just concatenate all the required data you want in subject and then use that variable for subject of mail.

Ex: CONCATENATE xxx yyy zzz into v_subject SEPARATED BY SPACE.

I hope this will solve your problem, if not kindly get back here we will solve it.

Cheers...

Joerg_S
Participant
0 Kudos

Hi Nastera,

i would follow your proposal if i had the option to "stick my fingers into source code" but i'm using SAP standard print program (SAPFM06P).

And first i would like to deal this problem with SAP standard options. Therefore i pointed out that there is a option in customizing to set up a form routine for textreplacement, but i have no idea which program and form routine to use. Any experience in here?

please follow NACE (or NACT) > Output type > Detail > General Data > Replacement of text symbols to see where i'm stuck

thx for assisting

Jörg

Former Member
0 Kudos

enhance the driver program if youz are not allowed to modify it.

solution is simple and listening to you tells me that you know anayway enough to solve this task alone.

Joerg_S
Participant
0 Kudos

@Florian:

enhancements or modifcations should always be plan B

Plan A you will find below