Text_symbol_replace?

Hi All,
I am redaing the text using READ_TEXT FM
& also using FM 'TEXT_SYMBOL_REPLACE' but the values are not populating only plain
text is getting.
can any one tell m,e what is wronge?
by debugging also i am unable to find plz let me know proper solution.
Thanks in advance.
Best Regards,
Oorvi.

Hi,
are you passing correct parameters those FM's
for Read_Text
CALL FUNCTION 'READ_TEXT'
      EXPORTING
        id                      = 'LTQM'   "Mandatory
        language                = SY-LANGU    "Mandatory
        name                    = v_name  "Mandatory unique name of your text
        object                  = 'QMEL'    "Mandatory
      TABLES
        lines                   = t_lines
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
in this case if you are not getting any values in t_lines.
then check with the database table STXH with the fields
TDOBJECT
TDNAME
TDID
TDSPRAS
then you will get an idea where is the problem in your code.
Regards!

Similar Messages

  • Output TEXT_SYMBOL_REPLACE billing spool

    Hi experts,
    I have configured an output for billing  type via V/30
    In the output detail, general data tab I have entered
    Program: SAPMV60A
    Form routine: TEXT_SYMBOL_REPLACE
    In Cover Page Text I have entered:  Invoice &XVBRK-VBELN& (&VBRK-FKDAT&)
    (because I want the subject to read like "Invoice 27388889 (01.01.2010)").
    The output type will be processed when the invoice is saved and posted.
    The problem is that if I created an invoice by VF01 transaction, the Cover page text symbols are replaced properly, but if I do the same by VF04 the results is that text symbols are blank.
    Another issue is that if I stop the VF04 transaction with a break-point, and after I continue the process until the end, the text symbols are properly replaced.
    I have checked OSS notes but I haven't found any solution.
    please, does anybody know how I can solve this problem?
    Thanks,
    Aupalaura

    Hello Aupalaura,
    please try with these settings:
    Program: SAPLV60A                                         < different program
    Form routine: TEXT_SYMBOL_REPLACE
    Best regards,
    Ivano.

  • TEXT_SYMBOL_REPLACE routines

    Hi,
    I costumized invoice sending by email.
    I want to write in my e-mail subject the nuber of the document &VBRK-VBELN& for the SD invoices ...
    does anybody know which program and form routine I need to choose if I'm using 5 - external send... Transmission Medium
    Or there is any other solution to geet invoice number on the subject of the e-mail...
    Thanks for your help
    BR
    Saso

    Hi,
    Normally we use RSNASTSO program Form SAPOFFICE_AUFRUF_VX to send  the mails.
    For your changes u can create a copy of this program and do the necessary changes. then attach this routine to ur output type.
    thanks

  • If condition in standard text in so10

    Hi,
    Im using a standard text where ive written an IF condition but its not working.Im calling that text in my program using READ_TEXT, TEXT_CONTROL_REPLACE and TEXT_SYMBOL_REPLACE function modules.Im not using sapscript or smartform.All my dynamic variables are working fine but for my IF condition what is happening is IF statement is also true and ELSEIF is also true.The statement under if is also getting printed and statement under elseif is also getting printed.
    Could anyone help please.
    Regards,
    Nidhi.

    Standard text " if conditions "  dont work other than scripts and smartforms.
    to my surprise, if conditions have not worked even when I used them as includes in ADOBE forms.
    Please handle the conditions in your program itself.
    << Moderator message - Point begging removed >>
    Edited by: Rob Burbank on Sep 30, 2011 2:49 PM

  • Purchase Order Output Message

    Hello all,
    in a purchase orderI will send out IDOC's. After creating the purchase order a proposal for an output type had been made (checked in analysis, the condition record has been found, but no proposal had been made in the purchase order. After saving the PO there is no record in NAST.
    Has somebody an idea?
    Regards
    Norbert

    hi
    You need to do some configuration for this.
    u2022 Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be PO No. 1800004202.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000001 generated .
    u2022 Use note no 191470
    VB

  • Dynamic Subject Line not appearing in PO mail

    Hi Experts,
    In tcode ME28 when i get the list of POs to be released , I click on the release possible icon against the PO number. On clicking of this, a mail goes to the vendor of the PO.
    My requirement is to change the subject line of this mail.
    I have done all the required settings in NACE i.e. for this output, in the " Mail title & texts" , I have maintained the text and in the General data tab I have mentioned SAPMM06E as the program & TEXT_SYMBOL_REPLACE as the form routine.
    Also in the Mail tab I have done the same : SAPMM06E as the program & TEXT_SYMBOL_REPLACE as the form routine.
    But i am not able to get this dynamic mail text in the PO mail , instead of this text, the correspodnig PO number comes as the mail text.
    In there anything that I have missed out ?
    Please suggest.
    Thanks in advance  .

    Hey ,
    is there a code written which will is responsible for forming and sending this mail ? If so the you need to look inside this code and instead see where are you setting PO number in subject line. In that part of code  you need to a variable which will hold this dynamic text which you want to send as subject line.
    If you can share that code with me , I can help you further.
    Hope this is helpful.
    Regards,
    Uma Dave

  • HOW TO USE PERFORM STATEMENT IN SMARTFORMS

    Hi,
    Can anyone tell me how to use call subroutine in smartform?
    Thanks & Regards,
    Gauarv.

    Hi,
    Hope this helps you..
    You can use the PERFORM command to call an ABAP subroutine
    (form) from
    any program, subject to the normal ABAP runtime
    authorization
    checking. You can use such calls to subroutines for
    carrying out
    calculations, for obtaining data from the database that is
    needed at
    display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed
    when a
    document is formatted for display or printing.
    Communication between a
    subroutine that you call and the document is by way of
    symbols whose
    values are set in the subroutine.
    The system does not execute the PERFORM command within
    SAPscript
    replace modules, such as TEXT_SYMBOL_REPLACE or
    TEXT_INCLUDE_REPLACE.
    The replace modules can only replace symbol values or
    resolve include
    texts, but not interpret SAPscript control commands.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of
    the four
    SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must
    therefore be
    character strings.
    The ABAP subroutine called via the command line stated
    above must be
    defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING...
    are now
    stored in the internal table IN_TAB . Note that the system
    passes the
    values as character string to the subroutine, since the
    field Feld
    VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR
    80). See the
    example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the
    CHANGING
    parameters in the PERFORM statement. These parameters are
    local text
    symbols, that is, character fields. See the example below
    on how to
    return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in
    the ABAP
    program QCJPERFO is called. Then the simple barcode
    contained there
    ('First page', 'Next page', 'Last page') is printed as
    local variable
    symbol.

  • ECC 6.0 with baseline - send PO via e-mail

    Hi forum experts,
    We are having some problems with configuring our system to send POs via e-mail. We are trying to use the following setting, but when the PO is saved (and triggers an output) an error appears without any items in processing log. No e-mail is queued in SOST.
    Medium: 5 - external send
    Program: YBAA_FM06P.
    FORM routine: ENTRY_NEU
    Form: <blank>
    PDF/Smartform form: YBAA_MMPO
    When performing a normal "Print output, medium 1", the PO is successfully printed.
    When changing the program to SAPFM06P, a sapscript form is successfully genereated and queued as an e-mail. We simply don't get it to work using program YBAA_MMPO.
    Are we using the correct program? I have read som discussion threads about it and some experts have suggested to use program /SMB40/FM06P instead. That does not work either.
    Best regards and thanks in advance for your help!
    Magnus

    Hi,
    You are using PDF/Smartform form: YBAA_MMPO for  your PO output and to send mail.
    Use t.code:NACE,select application EF.
    1.Now for your Output type, keep Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE in General data  TAB.
    2. Keep Communication Method as CS01
    3. Keep entry of medium as 5 and function as VN
    4.For subject of the mail goto Mail Title and Texts give PO No. &EKKO-EBELN& .
    5.Keep condition record with your PO output type and have medium 5 with function VN
    6. For sending PO by e-mail- you should an e-mail ID in your vendor master
    Regards,
    Biju K

  • PO number in title in automatic e-mail for vendor when PO creation

    Hello experts,
    I have customized a message type that sends an email to the vendor when saving a purchase order and it works correctly, the problem is that  in the title of the email I want to put the number of the purchase orde and I do not know how to do it.
    I have seen that in the tab page for general data in the customizing of the message type, I can include a program and a form routine, but I do not know how to use them.
    Can anybody tell me how I can show this information?
    Thanks in advance
    Laura

    HI,
    Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be PO No. 1800004202 for e.g.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    Regards,
    Pardeep Malik

  • Problem in Automatic pickup of message in output of Purchase Order

    Dear friends,
    i am facing a problem in PO at output messages, after creating the PO i am unable to go for print automatically. ie: i nead to give the output type NEU in the messages manually.
    i was gone through all the possibulities and settings i have to give. can any one please tell me all the possibulities that causes this problem.
    i am getting the below message regarding this
    No message generated for output of purchasing document
    Message no. 06261
    Diagnosis
    The system was not able to find a message record via the message determination schema. Therefore it was not possible for such a record to be generated for this purchasing document. In consequence, the purchasing document cannot be outputted (printed or transmitted).
    Procedure
    The message determination process should be checked and, if necessary, corrected.
    The message record can be created manually for this document. For this purpose, choose the function "Messages" in the menu "Header" and maintain the necessary data.

    hi
    You need to do some configuration for this.
    u2022 Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be PO No. 1800004202.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000001 generated .
    u2022 Use note no 191470
    VB

  • Purchase Order External Send with email body text

    hi guru,
    i saw lot of threads but i didn't get coreect answer
    i did below process
    Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be PO No. 1800004202.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000001 generated .
    u2022 Use note no 191470
    mail subject is going ,but mail text is not coming.
    some people  suggest this sap note
    Note 786847 - E-mail purchase order w/ e-mail text and several attachments
    i did not get this note.
    give the solution for email body text ,i read some thread,it will solve through abap development .
    please  give solution
    regards
    vijay

    Hi
    1. GO to tcode SCOT.
    2. Double click on SMTP
    3. Click on the set button next to internet
    4. In this screen for SAP Script/ Forms select TXT.
    Regards
    Girish
    Edited by: Girish Bettaiah on Aug 8, 2011 3:11 PM

  • Output text as subject in External Email

    Hi Experts,
    I am trying to configure email output for shipment order.
    I have configured using nace, a new output type with medium 5, a zprogram and a smart form to generate and trigger the output. I was able to see the pdf in SOST transaction till I tried the following
    I took refernace of earlier mails and tried to add mail text and subject in the following way
    Went to config of my output type via V/30
    In the output detail, general data tab when I enter
    Program: sapmoigs
    Form routine: TEXT_SYMBOL_REPLACE
    I get the following warning message
    FORM routine TEXT_SYMBOL_REPLACE could not be found in program SAPMOIGS
    In the mail titles and text added : &OIK01-USERFLD3&  in Document title
    Now the pdf file in SOST does not open. throws error An error occurred while opening this document. The file is damaged and could not be repaired
    Can some one please suggest what can be done here ASAP.
    Thanks.

    I'm guessing that the file doesn't open because instead of a legitimate PDF file name you now have &OIK01-USERFLD3& in it (does the file show up with the Adobe icon?).
    The message you are getting is saying that you have entered the subroutine TEXT_SYMBOL_REPLACE that does not exist in program SAPMOIGS. If you go to SE38, enter SAPMOIGS and display Object List (there is a button on the toolbar), you'll see that on the left under 'Subroutines' there is no TEXT_SYMBOL_REPLACE. Either you need to use another program or create a custom program or maybe this funcationality just not available for shipments.
    Such routine, for example, exists in SAPMV60A if you want to see what it looks like.

  • How to add body text when sending output as PDF in email?

    Hello,
    We are using standard SAP to send SD output as PDF in an email (in output type we choose medium 5, email address is taken from customer master. In transaction SCOT is indicated that SAPscript/smartforms are converted to PDF. When the output is generated, we run rsconn01 to trigger the actual sending of the email).
    Via form TEXT_SYMBOL_REPLACE we can modify the subject of the email that is send to include e.g. the order number. HOWEVER, in the body of the email that is send, we now only have the PDF, but we also would like to add a standard text in the body of the email. Does anyone know how to do this?
    Thanks,
    Alex

    Hi,
    Please refer to the following program and see if it helps you.
    REPORT ZSAMPL_001 .
    INCLUDE ZINCLUDE_01.
    DATA
    DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA : file_name TYPE string.
    data : path like PCFILE-PATH.
    data : extension(5) type c.
    data : name(100) type c.
    SELECTION SCREEN
    PARAMETERS : receiver TYPE somlreci1-receiver lower case.
    PARAMETERS : p_file LIKE rlgrap-filename
    OBLIGATORY.
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CLEAR p_file.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
    file_name = p_file.
    START-OF-SELECTION
    START-OF-SELECTION.
    PERFORM ml_customize USING 'Tst' 'Testing'.
    PERFORM ml_addrecp USING receiver 'U'.
    PERFORM upl.
    PERFORM doconv TABLES itab objbin.
    PERFORM ml_prepare USING 'X' extension name.
    PERFORM ml_dosend.
    SUBMIT rsconn01
    WITH mode EQ 'INT'
    AND RETURN.
    FORM
    FORM upl.
    file_name = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = file_name
    filetype = 'BIN'
    TABLES
    data_tab = itab
    EXCEPTIONS
    *file_open_error = 1
    *file_read_error = 2
    *no_batch = 3
    *gui_refuse_filetransfer = 4
    *invalid_type = 5
    *no_authority = 6
    *unknown_error = 7
    *bad_data_format = 8
    *header_not_allowed = 9
    *separator_not_allowed = 10
    *header_too_long = 11
    *unknown_dp_error = 12
    *access_denied = 13
    *dp_out_of_memory = 14
    *disk_full = 15
    *dp_timeout = 16
    *OTHERS = 17.
    path = file_name.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    CHECK_DOS_FORMAT =
    IMPORTING
    DRIVE =
    EXTENSION = extension
    NAME = name
    NAME_WITH_EXT =
    PATH =
    EXCEPTIONS
    INVALID_DRIVE = 1
    INVALID_EXTENSION = 2
    INVALID_NAME = 3
    INVALID_PATH = 4
    OTHERS = 5
    ENDFORM. "upl
    ***INCLUDE ZINCLUDE_01 .
    10.08.2005 Amit M - Created
    Include For Mail (First Req F16)
    Modification Log
    Data
    tables crmrfcpar.
    DATA: docdata LIKE sodocchgi1,
    objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
    objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
    objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objhex LIKE solix OCCURS 10 WITH HEADER LINE,
    reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
    DATA: tab_lines TYPE i,
    doc_size TYPE i,
    att_type LIKE soodk-objtp.
    DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
    data v_rfcdest LIKE crmrfcpar-rfcdest.
    FORM
    FORM ml_customize USING objname objdesc.
    Clear Variables
    CLEAR docdata.
    REFRESH objpack.
    CLEAR objpack.
    REFRESH objhead.
    REFRESH objtxt.
    CLEAR objtxt.
    REFRESH objbin.
    CLEAR objbin.
    REFRESH objhex.
    CLEAR objhex.
    REFRESH reclist.
    CLEAR reclist.
    REFRESH listobject.
    CLEAR listobject.
    CLEAR tab_lines.
    CLEAR doc_size.
    CLEAR att_type.
    Set Variables
    docdata-obj_name = objname.
    docdata-obj_descr = objdesc.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addrecp USING preceiver prec_type.
    CLEAR reclist.
    reclist-receiver = preceiver.
    reclist-rec_type = prec_type.
    APPEND reclist.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addtxt USING ptxt.
    CLEAR objtxt.
    objtxt = ptxt.
    APPEND objtxt.
    ENDFORM. "ml_customize
    FORM
    FORM ml_prepare USING bypassmemory whatatt_type whatname.
    IF bypassmemory = ''.
    Fetch List From Memory
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listobject
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'LIST_FROM_MEMORY'.
    ENDIF.
    CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
    COMPRESSED_SIZE =
    TABLES
    in = listobject
    out = objbin
    EXCEPTIONS
    OTHERS = 1
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'TABLE_COMPRESS'.
    ENDIF.
    ENDIF.
    Header Data
    Already Done Thru FM
    Main Text
    Already Done Thru FM
    Packing Info For Text Data
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'TXT'.
    APPEND objpack.
    Packing Info Attachment
    att_type = whatatt_type..
    DESCRIBE TABLE objbin LINES tab_lines.
    READ TABLE objbin INDEX tab_lines.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = att_type.
    objpack-obj_name = 'ATTACHMENT'.
    objpack-obj_descr = whatname.
    APPEND objpack.
    Receiver List
    Already done thru fm
    ENDFORM. "ml_prepare
    FORM
    FORM ml_dosend.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = docdata
    put_in_outbox = 'X'
    commit_work = 'X' "used from rel. 6.10
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    CONTENTS_HEX = objhex
    OBJECT_PARA =
    object_parb =
    receivers = reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8
    IF sy-subrc <> 0.
    MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
    WITH docdata-obj_name.
    ENDIF.
    ENDFORM. "ml_customize
    FORM
    FORM ml_spooltopdf USING whatspoolid.
    DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
    Call Function
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = whatspoolid
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_otf_spooljob = 1
    OTHERS = 12.
    Convert
    PERFORM doconv TABLES pdf objbin.
    ENDFORM. "ml_spooltopdf
    FORM
    FORM doconv TABLES
    mypdf STRUCTURE tline
    outbin STRUCTURE solisti1.
    Data
    DATA : pos TYPE i.
    DATA : len TYPE i.
    Loop And Put Data
    LOOP AT mypdf.
    pos = 255 - len.
    IF pos > 134. "length of pdf_table
    pos = 134.
    ENDIF.
    outbin+len = mypdf(pos).
    len = len + pos.
    IF len = 255. "length of out (contents_bin)
    APPEND outbin.
    CLEAR: outbin, len.
    IF pos < 134.
    outbin = mypdf+pos.
    len = 134 - pos.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF len > 0.
    APPEND outbin.
    ENDIF.
    ENDFORM. "doconv
    FORM
    FORM ml_saveforbp USING jobname jobcount.
    Data
    *data : yhead like yhrt_bp_head.
    *DATA : ydocdata LIKE yhrt_bp_docdata,
    *yobjtxt LIKE yhrt_bp_objtxt OCCURS 0 WITH HEADER LINE,
    *yreclist LIKE yhrt_bp_reclist OCCURS 0 WITH HEADER LINE.
    *DATA : seqnr TYPE i.
    Head
    *yhead-jobname = jobname.
    *yhead-jobcount = jobcount..
    *MODIFY yhrt_bp_head FROM yhead.
    Doc Data
    *ydocdata-jobname = jobname.
    *ydocdata-jobcount = jobcount.
    *MOVE-CORRESPONDING docdata TO ydocdata.
    *MODIFY yhrt_bp_docdata FROM ydocdata.
    Objtxt
    *seqnr = 0.
    *LOOP AT objtxt.
    *seqnr = seqnr + 1.
    *yobjtxt-jobname = jobname.
    *yobjtxt-jobcount = jobcount.
    *yobjtxt-seqnr = seqnr.
    *MOVE-CORRESPONDING objtxt TO yobjtxt.
    *MODIFY yhrt_bp_objtxt FROM yobjtxt.
    *ENDLOOP.
    RecList
    *seqnr = 0.
    *LOOP AT reclist.
    *seqnr = seqnr + 1.
    *yreclist-jobname = jobname.
    *yreclist-jobcount = jobcount.
    *yreclist-seqnr = seqnr.
    *MOVE-CORRESPONDING reclist TO yreclist.
    *MODIFY yhrt_bp_reclist FROM yreclist.
    *ENDLOOP.
    ENDFORM. "ml_saveforbp
    FORM
    FORM ml_fetchfrombp USING jobname jobcount.
    *CLEAR docdata.
    *REFRESH objtxt.
    *REFRESH reclist.
    *SELECT SINGLE * FROM yhrt_bp_docdata
    *INTO corresponding fields of docdata
    *WHERE jobname = jobname
    *AND jobcount = jobcount.
    *SELECT * FROM yhrt_bp_objtxt
    *INTO corresponding fields of TABLE objtxt
    *WHERE jobname = jobname
    *AND jobcount = jobcount
    *ORDER BY seqnr.
    *SELECT * FROM yhrt_bp_reclist
    *INTO corresponding fields of TABLE reclist
    *WHERE jobname = jobname
    *AND jobcount = jobcount
    *ORDER BY seqnr.
    ENDFORM. "ml_fetchfrombp
    Hope this helps.
    Please reward some points if it helps.
    Regards,
    Amit Mishra

  • Output Message Type MAHN not getting picked up in PO

    Hello Experts
       I have configured customized output type ZMAH (similar to MAHN) for reminder process. When I am creating PO this output type is not getting picked up automatically. If I am maintaining it manually I am able to send message for ME9F (Purchase Order) and ME91F (Reminder) successfully. Upon deremination analysis I am getting this message 502 " Output ignored (requirement 103 not fulfilled) ". Reminder are getting picked up from Purchase Value Key to PO.
    Any help is appreciated.
    Thanks
    Ankit

    Hello Tej
      I have maintained output device but same result.
    Here I am listing all parameters that I have used for configuration can anyone please take a look and let me know if I am missing anything
    Steps for new Message Type for PO Reminder (ZMAH)
    1.     Defined new Table 026 Purchasing Output Determination: Document Type
                                                        (ii) 027 Purchasing Output Determination: Purch. Org./Vendor for EDI
    2.     Defined new access sequence Z515 Access Sequence for Archiving.
    Following are parameters to the Access Sequence
    Access Sequence Number = 1
    Table = 026
    Description = Purchasing Output Determination: Document Type
    Requirement = 103
    Exclusive = Yes (box checked)
    Access Sequence Number = 2
    Table = 027
    Description = Purchasing Output Determination: Purch. Org./Vendor for EDI
    Requirement = 103
    Exclusive = Yes (box checked)
    3.     Maintain Output Type ZMAH for PO
    General Data
    Access Sequence = Z515
    Access to condition (Checked)
    Multiple Issuing (Checked)
    Change Output
    Program = SAPFM06P
    FORM Routine = ENTRY_NEU
    Replacement of Text Symbol
    Program = SAPMM06E
    FORM Routine = TEXT_SYMBOL_REPLACE
    Default Values
    Dispatch Time = Send Immediately (when saving application)
    Transmission Medium = External Send
    Communication Strategy = 0001 (E-mail Document)
    Processing Routines
    Transmission Medium = 5 (External Send)
    Program = SAPFM06P
    Form Routine = ENTRY_NEU
    Form = MEDRUCK
    Partner Roles
    Medium = External Send
    Funct = VN
    Name = Vendor
    4.     Fine-Tuned Control: Purchase Order
    Oprat. = 3
    CType = ZMAH
    Name = Output for Reminder
    Short Text = Urging letter (expediter)/reminder
    Update Print Related Data = Yes (checked)
    5.     Maintain Message Determination Schema: Purchase Order
    Procedure RMBEF1 (Purchase Order)
    Step = 101
    Cntr = 3
    CTyp = ZMAH
    Description = Output for Reminder
    Requirement = 103
    6.     Assign Schema to Purchase Order
    Procedure RMBEF1
    7.     Define Partner Roles for Purchase Order
    Out. = ZMAH
    Med = 5 (External Send)
    Funct = VN
    Name = Output for Reminder
    Name = Vendor
    8.     Test Condition Maintained in MN04 (Master Data)
    Purch. Org. = 0001
    Vendor = 101281
    Partner Funct = VN
    Medium = 5 (External Send)
    Date/Time = 4 Send immediately (when saving application)
    Output Device = LP01
    Cover Page Text = Reminder PO number &EKKO-EBELN&
    Also I have configured Purchasing Value Key, reminders are coming to PO correctly.
    Thanks
    Ankit

  • Purchase Order by email

    Hi,
    I have completed all the steps mentioned in SAP Note 191470 in order to email the Purchase Order.
    I am able to successfully create the purchase Order and even able to print it.
    However, I am not able to send the email. In ME21N, the message are showing in red colour.
    I selected option 4 in order to email (immediately) and maintained the communication structure.
    My gateway is already opened as I can see the emails in SOST for other activities like payment advice.
    I cannot even see any log also.
    Please let me know any further steps are missing.
    Thanks,
    Ravi

    Hi,
    Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be for e.g. PO No. 1800004202.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000001 generated.
    this may help U !
    REgards,
    Pardeep Malik

Maybe you are looking for

  • Set up spreadsheet to log data from Lookout Screen

    I am a complete beginner using Lookout Software. We already have a system up and running on the production line. I intend to use a PLC to store data in data registers during production. This information is then to be displayed on the Lookout screen.

  • Saving a LinkedList into a text doc using bufferwriter

    hi I'm having some problem attempting to save my linked into a text doc(.txt). By using the scanner class i to read another text doc and have it put each work in that document as an single element in the linkedlist. But when i try to write the linked

  • Transforming certain elements of xml-doc to bytearray representing xml?

    I have a xml-file like this. <?xml version="1.0" encoding="UTF-8"?> <Family>      <Person>               <Name>Suzy</Name>           <Nick>Mom</Nick>        </Person      <Person>               <Name>Pete</Name>           <Nick>Dad</Nick>      </Pers

  • Publisher Admin tab not available

    I'm trying to setup the BI publisher. When I access the publisher, I can't see the Admin tab. I can't create any report. Basically, I can't do anything. I have already allow the access to the publishser to Everyone. Anything that I need to do to enab

  • Where did make go?

    I upgraded to Lion, went into one of my programs and typed make.  Instead of building, I got "-bash: make: command not found"  What the heck?  I better not have to reinstall the developer tools, that's like an 8 gig download.  XCode is still there, b