PO Output Type / Processing Routine Problem

Hello everyone,
I cannot seem to find any reference to the problem described below.
I have encountered a problem by migrating from SAPFM06P to SAPLMEDRUCK during an ECC 5.0 upgrade, at a client where I am under contract as an ABAP Developer.
Here is some background to the situation.  The client is currently migrating from version 4.6C to 5.0 and thought it was a good idea to upgrade their purchase order messaging  programs from the outdated SAPFM06P, which was utilized in version 3.x, to the newer program SAPLMEDRUCK implemented for use in version 4.6.
Specifically, Message Output (ME9F) controls the output of purchase order messages in foreground, when the purchase order message is saved and the "further Data option" of the PO message contains "requested processing" equal to the value of "send with application own transaction".  This way, the actual messaging can be controlled in foreground and "breakpoints" can be set to display tables and fields.  Behind the scenes, the message status program RSNAST00 is executed by ME9F program RM06ENDR_ALV.  During this execution, it locates the message (NAST) record from the purchase order and the (TNAPR) configuration, which links the output type to the ABAP print program and SAPscript layout set.  The specific problem is: in RSNAST00, the external call perform "PERFORM (TNAPR-RONAM) in PROGRAM (TNAPR-PGNAM) USING RETURNCODE US_SCREEN IF FOUND" does not pass NAST information to the called program (TNAPR-PGNAM).  I know no NAST table information is passed because I set a break-point on the perform and single step to the print program.  Therefore, the purchase order is unknown by the print program (TNAPR-PGNAM) and results in an error and no purchase order print is provided.  Needless to say, this was tested with a new "Z" version of SAPLMEDRUCK.  So, I changed the program name (output type processing routine) in configuration to SAPLMEDRUCK, but there again the NAST information is not passed to the print program from RSNAST00.  Ironically, I reverted back to the older "z" version of SAPFM06P and NAST and TNAPR information is passed to the print program thru the external call perform quoted above.  I prefer to not modify the SAP original code for RSNAST00, which is used in many other applications.
One other note, I had previously performed this maneuver on one different occasion with very successful results.
Has anyone ever encountered this problem in a 5.0 environment (running Windows NT and MSSQL and SAP BASIS 6.4).
I know this is long winded, but I wanted to explain the background of the entire situation.
Any and all help would be appreciated.  Thanks in advance,

Dave,
Your entry points (like form ENTRY_NEU) should remain in your current version of SAPFM06P.  Change that form to reflect the function calls in the new SAPLMEDRUCK form (ENTRY_NEU) (calls to ME_READ_PO_FOR_PRINTING and ME_PO_PRINT.
Look at the example below:
Here is the form in your old (Z) version of SAPFM06P:
FORM ENTRY_NEU USING ENT_RETCO ENT_SCREEN.
XSCREEN = ENT_SCREEN.
IF NAST-AENDE EQ SPACE.
   XDRUVO = '1'.
ELSE.
   XDRUVO = '2'.
ENDIF.
CLEAR: XFZ, XOFFEN, XLMAHN, XLPET.
*- Anstoß Verarbeitung -
CLEAR ENT_RETCO.
PERFORM LESEN USING NAST.
MOVE RETCO TO ENT_RETCO.
ENDFORM.
Here is form entry_neu in your new (Z) version of SAPFM06P:
  INCLUDE FM06PE02                                                   *
form entry_neu using ent_retco ent_screen.
  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_doc   type meein_purchase_doc_print.
  clear ent_retco.
  if nast-aende eq space.
    l_druvo = '1'.
  else.
    l_druvo = '2'.
  endif.
  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
  call function 'ME_PRINT_PO'
       exporting
            ix_nast        = l_nast
            ix_druvo       = l_druvo
            doc            = l_doc
            ix_screen      = ent_screen
            ix_from_memory = l_from_memory
            ix_toa_dara    = toa_dara
            ix_arc_params  = arc_params
            ix_fonam       = tnapr-fonam          "HW 214570
       importing
            ex_retco       = ent_retco.
endform.
Remember, the form should be in the Z version of SAPFM06P - not the Z version of SAPLMEDRUCK.  Make sure the configuration (TNAPR) has the SAPFM06P program name and entry point.
It should work.  Let me know how it goes.
Rick

Similar Messages

  • Output Types Processing Routines

    Hi experts,
    I need help regarding the Output Types Processing Routines.
    In SAP, there are several Processing Routines, how does the processing routines work if you put a Program and Forms to Processing 1 and Processing 2?
    Points will be rewarded.
    Thanks....

    Hi Salem,
    When you execute a program through a transaction, then the first program and the first form are executed..
    These entries are maintained in NAST table.. Now, the first o/p is displayed... When you press the BACK button on the o/p of first form screen, It goes back to the SAP code and check for the second entry if any, if it exists, it calls the second progarm and the second form.. and so on..
    Thanks and Best Regards,
    Vikas Bittera.
    **Reward if useful**

  • EDI/ALE-Output type-Process code relation?

    Hi.
    In EDI preocessing the relation between the Message type and the process code is know.
    But where is the realtion of either of these two to the output type?
    When we hit a F4 in the message control in WE20 for process codes it gives us a list.
    How is this linkages established.
    Output type-process code-message type-output routines?
    Please dont answer in vague terms.

    Dear experts,
    I am a little further now.
    I used output condition WA01 which is already set up in NACE and in MN23 I set up:
    In SP01 I can see the created Spool entries after creating the Good issue with ME2O. So the print out would work. But I need an EDI output....
    I created a new output condition ZWA1 in NACE and set "Processing routines" to EDI.
    I set "Partner functions" to EDI and LS - logical system.
    In MN23 I have:
    I set Event Type to "WA" because when I look at a material document in MB03 it also shows WA:
    In WE20 I have my LS - logicals system and set up the output for MBGMCR03:
    What confuses me is: I have to send the EDI output to a LS - logical system. But in MN23 I can't set the LS - it gives error: "You cannot enter a partner function for output ZWA1"
    No IDoc is created so far - please help. Thank you.
    Best regarsd,
    Peter

  • Output type and Routine

    Hi All,
    I have created one Z* output type and attached it with Z* program. and it is having routine called ENTRY_N. Now when i execute a transaction which will trigger my output type, is giving me error saying "Processing routine ENTRY_N in program Z* does not exist".
    Can anyone help.
    Regards,
    Dharmesh

    > Hi,
    >
    > in the Driver Program have a routine with name ENTRY.
    > just paste it.
    >
    >
    FORM ENTRY USING RETURN_CODE US_SCREEN.
    >
    >   CLEAR RETCODE.
    >   XSCREEN = US_SCREEN.
    <i>>   PERFORM PROCESSING.</i>
    >   IF RETCODE NE 0.
    >     RETURN_CODE = 1.
    >    ELSE.
    >     RETURN_CODE = 0.
    >   ENDIF.
    >
    > ENDFORM.
    >
    > and put the aboce code in it.
    >
    in the above code Perform processing you need include all your open_forms and write_forms, close_form. the data you are trying to pass it to script. i hope it is clear.you need to put that logic in the <b>form ENTRY</b>.
    regards
    vijay

  • MIRO - Invoice Output types (MR90)  Routines Based on Specific Suppliers

    Hi All,
    Requirement is to trigger Invoice outputs for a specific set of suppliers, while doing invoice verification in MIRO and the same need to be processed in MR90 for the output.
    Is there a routine which triggers a invoice output ( type REKL) only for specfic set of suppliers, for e,g if the suppliers are all ERS suppliers then it should trigger "REKl" else not?
    I am aware we have a routine 181 which can be modified but wanted to know from experts if this kind of requirements has a standard solution.
    Will appreciate any help regarding this.
    Note :Standard settings and customization have been done and triggering output is not an issue so please address the specific requiremennts.
    Regards
    Swagat Panda

    Would like to know more on how your are cancelling ERS invoices already settled? as i am not able to cancel them in MR8M is there any other ways around it?
    Also, Sub Cr we are using not for back dated price changes but since we are a service company we don't have concepts of MAP prices for the materials all are account assigned materials and get expensed and revaluation will just act as a statistical entry as there won't be stock at any point of time.
    The invoice reduction we are not using as these are all ERS invoices and if there is any amount to be debited to the supplier we come to know after a settlement run (MRRL) is over and we see a "visual" quality defect at a later point of time as i mentioned earlier we don't have stock.
    So this is one of the reason why we are debited the supplier at a later stage using Sub Cr and for this the vendor has to be sent a "notification" that we are going to debit him for a delivery ( account assigned ).
    But your suggestions were helpful in setting up business rules.
    Please be in touch.
    Regards
    Swagat Panda

  • Output type processing error for adobe forms

    We have created one output type in NACE transaction for Application V1(Sales) and attached the Adobe form to that output type. Whevener i am creating or saving a quotation / Sales order that output type is not processesed rather it is giving an Express document error that 'Update was terminated'.
    Please help me out to solve it.

    It is processed as there was a issue in the program.

  • Output type processing

    I want to process an output type by "Send with application own transaction" (option 3) in the request processing. I need to know the t-code which does such a processing for sales order  ( which VF31 does for billing ).

    Hi Abhishek,
    Welcome to SDN.
    You can use standard program <b>SD70AV1A</b>.
    No transaction code available for this program.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Output type processing status

    Hello All,
    i have an output type for a delivery. whenever a new delivery is created or modified, i need to collect that information and write it to the application server, and also need to change the processing status of output type from yellow to green.
    please anybody tell where to write this logic and how to change the traffic signal status....
    thx in advance,
    Sippy.

    Hi,
    In NACE you will be provided with the output types................
    write a custom driver program that makes your work...and ask support team to configure your progam to
    the Standard SAP transactions where you want your program have to execute.
    thanks,
    vinayaka

  • MRIS standard program for Output Type processing

    Hi,
    I have an issue regarding processing of output type for transaction MRIS.. The output type used is for external send, I created an enhancement that selects the appropriate email recipient (email addresses are maintained in vendor master). In case that there are no valid recipient, it will clear the variable for email recipient and will cause "RED" status for the output type and shows error log "No address exist".. It's correct and working that way before; but now it's becoming "GREEN" and picks the default email address (though I haven't done any changes). do I have to check the program where the actual processing happened? or is there just a configuration to be corrected?
    Edit: I was still not able to find the program where the output type is being processed. Please tell me if you know. I would really appreciate it. Thanks.
    Your quick reply would be greatly appreciated.
    Thanks,
    Eo
    Edited by: Eo Pacifico on Sep 17, 2009 5:24 AM
    Edited by: Eo Pacifico on Sep 17, 2009 5:26 AM

    Dear Rad,
    > Program RVADIL01,
    > Form - SD_INVOICE_LIST
    Thanks,
    Raja

  • Table for Sales Order - Output Type - Processing Check

    Hi all,
    We have around 300 Sales Order, where we need to check weather Sales Order Acknowledgement (Custom) Output Type is processed or not?
    With the help of condition record setup we beleive all the Sales Order have got the output type assigned, but we need to know, is there any way from any SAP table, we can check the output is processed or not.
    Also, let me know is there any way some table can we check, all the sales order have got the output type assigned?
    <Text removed by Moderator. Priority normalized.> Please help.
    Thanks
    RS

    You can use Table NAST.
    Field
    Field Desc
    Reference
    KAPPL
    Application
    Application type
    V1 - Sales
    V2 - Shipping
    V3 - Billing
    OBJKY
    Object key
    Sales Order - Header Output
    Sales Order + Item - Item Output
    KSCHL
    Message type
    Output Type
    PARNR
    Partner
    Customer Number
    PARVW
    Partner Role
    Partner Function - SP
    NACHA
    Transm. Medium
    MANUE
    Msg. manually
    DATVR
    Processing date
    UHRVR
    Processing time
    USNAM
    User name
    VSTAT
    Processing status
    LDEST
    Output Device
    TCODE
    Communication strategy
    OBJTYPE
    Object type
    BUS2032 - Sales Order
    LIKP\LIPS - Delivery-Header\Item
    VBRK\VBRP - Billing-Header\Item
    Thanks, JP

  • Smartform for GR Collective receipt Output parameter/Processing routine

    Dear Friends,
    We would like print GR Collective slip(WE03) using smart form MMGR3_A.
    I am not clear about the following information. Appreciate, some one can help in configuring this.
    Layout Module     :??
    SmartForm Name : MMGR3_A
    Program Name     : SAPFM07P_SMART
    Form Routine       : ??
    Regards
    Kumar

    Hi Usha
    Thanks for the response. I have configured the system as per your suggestion. But when I tried to view the output using MB90 transaction, it gives shortdump with following error. Secondly, it is not clear why SAP has not provided routine for WE03 (ENTRY_WE03)?
    Appreciate, if you could suggest some thing to overcome the problem.
    Short dump please refer to line 1750----
    The termination occurred in the ABAP program "SAPFM07P_SMART" in "ENTRY_WE01".
    The main program was "MM70AMEA ".
    The termination occurred in line 175 of the source code of the (Include)
    program "FM07PSMARTENT"
    of the source code of program "FM07PSMARTENT" (when calling the editor 1750).
    Processing was terminated because the exception "CX_SY_DYN_CALL_PARAM_MISSING"
    occurred in the
    procedure "ENTRY_WE01" "(FORM)" but was not handled locally, not declared in
    the
    RAISING clause of the procedure.
    The procedure is in the program "SAPFM07P_SMART ". Its source code starts in
    line 7
    of the (Include) program "FM07PSMARTENT ".
    Source code extract
    Caution: Program has changed
    Caution: At time of termination,  Active source code no longer available
    001450 ?
    001460 ? * All data read => call smart form
    001470 ? CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    001480 ?    EXPORTING
    001490 ?      formname                 = tnapr-sform                      "796219
    001500 ?    IMPORTING
    001510 ?      fm_name                  = l_fm_name
    001520 ?    EXCEPTIONS
    001530 ?      no_form                  = 1
    001540 ?      no_function_module       = 2
    001550 ?      OTHERS                   = 3.
    001570 ?   IF sy-subrc <> 0.
    001580 ?     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    001590 ?            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    001600 ?   ENDIF.
    001610 ? * fill options                                                   "897696
    001620 ?   l_options-tddest    = nast-ldest.
    001630 ?   l_options-tddataset = nast-dsnam.                              "897696
    001640 ?   l_options-tdsuffix1 = nast-dsuf1.                              "897696
    001650 ?   l_options-tdsuffix2 = nast-dsuf2.                              "897696
    001660 ?   l_options-tdimmed   = nast-dimme.                              "897696
    001670 ?   l_options-tddelete  = nast-delet.                              "897696
    001680 ?   l_options-tdcopies  = nast-anzal.                              "897696
    001690 ?   l_options-tdcover   = nast-tdocover.                           "897696
    001700 ?   if nast-vsztp = '4'.
    001710 ?     l_control-no_dialog = 'X'.
    001720 ?   endif.
    001730 ?   l_options-tdnewid = 'X'.
    001740 ? * now call the generated function module.
    001750<b>----
    > ?   CALL FUNCTION l_fm_name</b>001760 ?     EXPORTING
    001770 ?                mseg  = ls_mseg
    001780 ?                mkpf  = ls_mkpf
    001790 ?                am07m = ls_am07m
    001800 ?                t001w = ls_t001w
    001810 ?                ekko  = ls_ekko
    001820 ?                ekpo  = ls_ekpo
    001830 ?                t024  = ls_t024
    001840 ?                ladr  = ls_ladr
    001850 ?                t157e = l_t157e
    001860 ?                mabdr = ls_mabdr
    001870 ?                t156  = ls_t156
    001880 ?                t159p = ls_t159p
    001890 ?                t064b = ls_t064b
    001900 ?                t027b = ls_t027b
    001910 ?                t027d = ls_t027d
    001920 ?    control_parameters         = l_control
    001930 ? *   MAIL_APPL_OBJ              =
    001940 ? *   MAIL_RECIPIENT             =

  • NACE processing Routines

    Hello,
    We are working on unique requirement where we have to send Purchase order line item attachment to vendor whenever PO goes out to vendor via email from ECC system.
    For this we have developed a custom standalone program which currently if executed pick up documents on the PO and send it to vendor via email separately.
    Legal department did not approve the way we have designed to send the attachment to vendor in different email.
    We have question will there be possible to assign custom program in NACE --> output types --> Processing routines for output for Email (i.e. external send)?
    Please advise. Also is there any other options on sending attachments to vendor from ECC - MM?
    Thank you.
    Ritesh Raithatha

    Hello N Thombare,
    Thank you for your response. You are correct we have partially activated DMS as we are using SRM for creating PR's in ECC. Thus, attachments are flowing from SRM to ECC at PR and then PO level.
    Our ABAPer have successfully created standalone program which takes input of PO number and send out attachments but now how to incorporate that with actual PO output program?
    As you mentioned we have configuration in place for NACE with external send at NEU--> External Send --> Entry_NEU --> with ZMEDRUK Form.
    Could you please tell me how you guys did that?
    Just an FYI: Rewarded points to you for helpful answer.
    Thanks
    Ritesh

  • Changing print sequence of the output types

    Hi Friends,
    We are using Z program for issuing output .
    In this we are giving input values as Application (ex. V3) and output type (Ex Zx50) to take invoice printouts
    At present we are having three output types ZX43 , ZX44 AND ZX45.
    For this three output types program name and form name is different .
    To take invoice print we are executing this Z program with output types separtely.
    Our requirement is
    Creating new application ( ex V4 ) AND new outype type (ex ZX46) under this we have to bring this three output types ZX43 , ZX44 AND ZX45.
    By giving input as V4 and ZX46 it has to do the same work as it is done separtely
    while doing code please give me the suggestion or logic how to combine all these three output types in one
    Regards
    R.vijayakumar

    Hi,
    You can do this in the NACE configuration itself. we can call 5 program and forms for a particular output type.
    In the output type processing routine of nace transaction mention the program and form name
    Thanks
    Arul

  • Changing the print sequence of the output types

    Hi Friends,
    We are using Z program for issuing output .
    In this we are giving input values as Application (ex. V3) and output type (Ex Zx50) to take invoice printouts
    At present we are having three output types ZX43 , ZX44 AND ZX45.
    For this three output types program name and form name is different .
    To take invoice print we are executing this Z program with output types separtely.
    Our requirement is
    Creating new application ( ex V4 ) AND new outype type (ex ZX46) under this we have to bring this three output types ZX43 , ZX44 AND ZX45.
    By giving input as V4 and ZX46 it has to do the same work as it is done separtely
    while doing code  please give me the suggestion or logic how to combine all these three output types in one
    Regards
    R.vijayakumar

    Hi,
    You can do this in the NACE configuration itself. we can call 5 program and forms for a particular output type.
    In the output type processing routine of nace transaction mention the program and form name
    Thanks
    Arul

  • Enter Output Type Each Type while Printing Invoice

    Dear All,
    Have searched in the forum already for a proper answer but could not find one.
    The issue is, while printing the invoice, the system is not automatically determining the output type even though all the output determination configurations have been made.
    I have to manually enter the output type by entering into the billing document header data.
    Kindly let me know if I have missed on any configuration during output determination.
    Thanks and Regards
    Adithya

    I hope you did what mentioned you.
    If you have doubt, whether the output type is getting determined properly or not.
    Use Tcode VF02.
    If Header Output Type -
    select Goto option from Menubar - Then Header - Choose Output.
    Accordingly, If the output type is Item related then
    select Goto option from Menubar - Then Item - Choose Output.
    Then Change: Output screen in your billing doc(VF02), in menubar select Goto - then choose Determin. Analysis.
    In output determination procedure in Analysis Output screen, track your desire output type and its determination status.
    Check routine for requirement against output type in:
    1. Output determination procedure
    2. In access sequence for the output type, check routine against access/condition table.
    Finally, accordinly determine output condition record by using TCode VV31 for the desired output type.
    Further, check routine for requirement like 62 is assigned against output type in:
    1. Output determination procedure
    2. In access sequence for the output type, check routine against access/condition table.
    Also, have look on one my recently discussed SD thread:
    - Re: Output to be blocked for Billing documents, if not released to Accounting
    Regards
    JP

Maybe you are looking for

  • CAPTURE OF  EXCISE LINE ITEMS

    Hi We have a scenario in which excise has not been calculated in certain Sales order at each line itemlevel. There are many such sales orders.Is there any way in which we can get the details of all such sales order? One way whic i understand is to lo

  • Seeburger Adapter Error

    Hi Everyone, I am trying to send messages to a VAN using Seeburger. However I am facing the following error Message processing failed. Cause: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at s

  • Download Location For solution manager 4.0

    Hello,       I am planning to install NW2004s_SR1 portal. For installation of portal we need to generate a key from solution manager.       I am <b>new</b> to the installation of solution manger,<b>can some tell me the exact download path for the sof

  • Error when running reports

    hi I get this error when I am trying to run a report what does this mean REP-1212: Object 'Body' is not fully enclosed by its enclosing object ''. and too whe can I find explanation using the error id like (REP-1212). Thanks in advance Ramkumar

  • Installation Fail (Adobe CS6 Design and Web) : Internet Connection

    Hello, One of students asked me about one problem which was relevant to Internet Connection when he installed Adobe CS 6. To begin with, I should have a check at internet connection on his laptop. Accessing to Adobe website, Google and Youtube was fi