Script output through Idoc

Hi,
Can i send my script output through Idoc?
Thanks,
Sreenivas

Hi,
If u check in NACE selecting appl and output types tab
and processing routines u can find these
medium   
1 ---  printoutput
2 --- fax
6 --- EDI
A --- Distribution(ALE)   what does these last two mean for
i think it can be possible?
Please check this and make me clear.....
Also give rply how to justify that we cant send....
Thanks & Regards
Sreenivas

Similar Messages

  • Item text is not appearing in the print output through IDOC?

    Hello ,
    I am changing the PO through IDOC. When ever there is change in the quantity ,net price and delivery date  the print out put is generated autoamtically and changes are appearing the print output.
    when ever there is change in the item text of PO print output is not generatiing but item text is updated in the PO.
    If i change manually print out is generating for item text also but through IDOC print output is not generated . please help to slove this isuue.
    i am passing the value as :
        idoc_data-segnam = 'E1BPMEPOTEXT'.
        e1bpmepotext-po_item = Po line item number .
        e1bpmepotext-text_id = txtid.
        e1bpmepotext-text_form = textform.
        e1bpmepotext-text_line = line item text .
        idoc_data-sdata = e1bpmepotext.
        APPEND idoc_data.
        CLEAR idoc_data.
        CLEAR e1bpmepotext.
    please help me it is urgent
    Thanks
    Venkatesh

    Hi Venkatesh,
    Check the condition record in transaction NACE. Whether the print output field is present in the condition record.
    Regards,
    Gajendra.

  • Script output getting suppressed when trying to send email

    Hi,
    I am having an existing report,part of code is given below.
    *data processing.....
          itcpo-tdcovtitle =  z_text.             
          itcpo-tdgetotf   = 'X'.                 
          call function 'OPEN_FORM'               
             exporting                            
                  device             = 'PRINTER'  
                form               = 'LAYOUTSET'
             importing                             
                  result             = x_itcpp_sulph
             exceptions                            
                  canceled           = 1           
                  device             = 2           
                  form               = 3           
                  options            = 4           
                  unclosed           = 5           
                  others             = 6.          
    Data processing ....and writing to script output
      perform entry(zvadin11) using returncode xscreen if found.
         call function 'CLOSE_FORM'         
              importing                     
                    result   = x_itcpp_sulph
              tables                        
                    otfdata  = otf1         
              exceptions                    
                    unopened = 1            
                    others   = 2.    
    So the control will switch from existing report to another program namely zvadin11 and gives script output.
    Now,in my current program i am trying to send script output through Email,for which i am converting script output to OTF data.Then sending the data through mail,using function modules 'SX_OBJECT_CONVERT_OTF_PDF' and 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    I am able to send the data through PDF attachment as required.But i am unable to see Script output.If i comment the OTF related code from open_form and close_form,i am able to see the script output,but i am not getting data into OTF internal table.
    Can i get both the functionalities of seing the script output and also get OTF data for Email.
    Can any one help me?
    Thanks & Regards,
    Seshagiri.M.
    Intelligroup.

    Hi Seshagiri,
    Is yur code that sneds email before 'CLOSE_FORM'?
    Regards,
    Suresh Datti

  • Sending SAP Script output as a PDF attachment through mail

    Dear Guru,
    I am using SAP 4.0B version, DATABASE Oracle 8i, OS is sun solaris 7.5.
    I want to send SAP script output as a
    PDF attachement through mail.Please suggest a solution.
    Regards,
    Rajesh

    Hi Rajesh,
    In your print program, while calling OPEN_FORM, pass options-TDGETOTF = 'X'. This is used for returning print output in OTF format.
    Then in CLOSE_FORM, get the table OTFDATA returned from the function module. for example
    DATA: OTF_DATA LIKE ITCOO OCCURS 0 WITH HEADER LINE.
        CALL FUNCTION 'CLOSE_FORM'
          IMPORTING
            RESULT  = RESULT
          TABLES
            OTFDATA = OTF_DATA.
    now you can convert this OTF data to PDF using function module CONVERT_OTF
    Then send this data as attachment to a mail using function module SO_NEW_DOCUMENT_ATT_SEND_API1
    Regards,
    Komal.

  • Script output types

    Hai friends
    i am a new of the script, i dont know the script output type of sales order, purchase order, and some script output types.
    thanks & Regards
    kumar

    Hi,
    The output type is used to specify the type of output.
    For example, a printed form that you need for internal use or a form that you want to send to a customer or vendor (for example, an order confirmation). The output type can also be an internal electronic mail message that you want to send to staff in another department.
    For example u201CPrint outu201D can be classified as one output type of a billing document, i.e. when this output type is executed the billing document is printed. Similarly u201CFaxu201D can be an output type, i.e. when this output type is executed a fax of the billing document is sent
    All the output types for any document (e.g. billing document) will be stored in the table NAST and  mapping information is stored in table TNAPR .
    Output types are executed through the program RSNAST00 or through the transaction itself
    Thanks,
    Smita

  • Outbound output type & Idoc type for MIRO (Invoice Posting)

    Hi Gurus,
    I have requirement like , I want to send the outbound IDoc to a external system containg the invoice detials after Saving in MIRO.
    I am not able to find any output type & Idoc type for the same.
    By going through varios threads , I found that there tell there is no Idoc type & output type for sending Idocs after MIRO.
    Kindlt let me know, if it so, or how this req can be fullfiled by other ways.
    Thanks
    Amresh

    Hi,
    Create Custom Idoc type with required fields,custom output type and assign it to partner profiles.(If there is no std idoc type or output type)
    Use Funtion module MASTER_IDOC_DISTRIBUTE to generate Idocs while saving MIRO, for this you need to find exit or implement implicit enhancement while saving MIRO.
    Regards,
    Ashok.

  • Billing output to IDoc & reprocess the IDoc in same sys. to post FI entry

    I have a requirement to send the billing output to IDoc, read the same IDoc to post a FI entry but to another company code. Please suggest how can this be acheived, and is there any other alternative to acheive the above requirement.
    Thanks in advance.

    Hi Naga,
    I have to select the records in JDBC based on different conditions each time. For example I have to select based on company code '1000' and Employee claasification 'E1' and date range. After I post these records in SAP again I want to select other records for some other company code '2000' and different business area and different dates. Basically I want to extract data multiple times based on different conditions.
    -->
    Such requirements cant be handle through select query of the sender...but you can handle this in the message mapping area.....you can fire a select query in the database to pick up records in a batch of 10K (do not keep any condition on this except for sorting). After the records come into PI you can send the message to your target based on the unique combination of "Company code+ Employee clasification + date range" handling this in the message mapping.
    Another question is in the JDBC to IDOC scenario since the sender adapter is JDBC and the sender adapter polls depending on the duration of time ( say 60 secs ) in the adapter once after I extract the data based on a condition how do I control in such a way that the same data is not extracted again.
    You can use the N--> C logic
    The data records that you pick have a corresponding control table i assume. There should be a field STATUS where the initial status of record should be N.
    After you pick the records this status should be made C so that only those records present in the database with status = N are picked up.
    Mention the condition Status = N in the select query.
    Thanks
    Dhwani

  • How to post invoice through idoc?

    how to send invoice to customers through idoc? what is the message type and idoc type for invoice? please explain me step by step in sending and receiving invoice through idoc?
    regards,
    pavan reddy

    Hello Pavan
    You need to maintain the partner profile (transaction WE20) for the customer to whom you want to send invoices.
    Example: customer no. 1000
    1) Create new entry for partner type KU (= customer)
    2) Maintain outbound parameters: parter role = PY (payer), message type = INVOIC
    3) Maintain details for outbound: port (e.g. send to SAP-XI), transfer immediately (or collect), basic type = INVOIC02
    4) Maintain message control, e.g. V3 / ZRDE / SD09
    Open an invoice for customer 1000 and go to message output. Create a new message output ZRDE / Medium = 6 (EDI) / PY / 1000.
    This message can be sent either immediately or via a schedules job.
    However, if the sent invoice arrives at your customer depends on whether your customer is able to receive IDocs or is using an EDI subsystem. In this case the IDoc needs to be converted into an EDI message (e.g. EDIFACT or ANSI.X12).
    Regards
      Uwe

  • Script Output cuts my querry

    Hello SQL Developers,
    I have a script that has some bigger output per querry (exactly it generates an XML)
    When I run this script (F5) it only outputs the first about 200 chars per querry, then it cuts and starts with the next querry
    For example:
    Xml Output
    <?xml version="1.0" standalone="yes"?>
    <Customers>
    <Customer>
    <CustId>100<
    Xml Output
    <?xml version="1.0" standalone="yes"?>
    <Customers01234567890123456789>
    <Custom
    Starting every querry for its own (Ctrl+F5) shows in the result window the correct result of this single querry without cuting somethink of.
    I've tested it with the computer of a classmate. There it works fine without any cut in the Script Output window. Maybe that's because he didn't update
    SQL Developer for more then a year. Maybe it is a setting I didn't found yet. Please can somebody help me?
    Edited by: WillardBL on 10.10.2012 13:48

    Hi WillardBL,
    Quite a few years ago there was a bug involving slow performance and/or Java OutOfMemoryException when displaying MySQL BLOBs, probably due to some issue with the MySQL JDBC driver. The bug was addressed back in SQL Developer 1.2.26.09 and is...
    Bug 5904607 - MYSQL RUN SCRIPT PERFORMANCE FROM WORKSHEET NOT SATISFACTORY
    At that time, a 4000 character display column size limit was added to circumvent the problem. It still remains and has not received much attention -- perhaps since VARCHAR2 is also limited to 4000, at least through the Oracle 11g releases.
    In your specific case, you are not reaching the 4000 character limit. You can try the following in the worksheet:
    show longwhich should show a default value of 80 if you never overrode it in your connection login script (Tools | Preferences | Database). So just
    set long 4000and try running the script that outputs the XML again. Keep in mind that set long
    Sets maximum width (in bytes) for displaying LONG, CLOB, NCLOB and XMLType values; and for copying LONG values.
    Possibly Bug 5904607 needs revisiting, but I hope the approach described will be sufficient to get you past the current problem.
    Regards,
    Gary
    SQL Developer Team

  • Turn off Script Output like set termout off

    Version:
    Oracle SQL Developer 2.1.0.63
    Version 2.1.0.63
    Build MAIN-63.73
    Running on Windows XP SP2
    I have a DML script with 217439 rows( ~40meg filesize ). Of course it loads slowly and the IDE is consuming large amounts of memory. About halfway through the processing of this file it becomes painfully slow( very similar to Quest's SQL Navigator ) around the 100,00 record mark. It feels like a resource issue as a result of the script output constantly reporting/recording the 1 record inserted message.
    Is there a way to SET TERMOUT OFF; in SQL Developer so this output is ignored?

    Hi Squiggles,
    Set termout on works in 2.1.1 (I checked a beta release of 2.1 and set termout off was already implemented so it should be in 2.1).
    It has to be a sub script you are running - not just in the top level directory:
    so given pm.sql is:
    prompt promptme
    set termout on
    select 1 from dual;
    @/home/totierne/pm.sql
    gives
    1
    1
    promptme
    and
    set termout off
    select 1 from dual;
    @/home/totierne/pm.sql
    gives
    1
    1
    [ie no prompt me]
    I just did a quick check on the spool side - set term off just turns off the terminal - output still goes to the spool file - but that should not cause a huge slowdown (as long as the disk does not fill up) it is just appending to a file not keeping it in memory or displaying the entire chunk of data.
    -Turloch

  • Conky - script output and formatting?

    Hi, i made a small script that is outputting text to my conky, used like this:
    ${execi 3600 ~/scripts/horoscope.pl scorpio}
    The problem is that the text doesn't seem to be formatted (it goes off the edge of the conky).
    How can i get the output text to "fit" within my conky's width and not go off the screen?
    Here is the script:
    #!/usr/bin/env perl
    use strict;
    use warnings;
    use LWP::Simple;
    my $sign = $ARGV[0];
    my @signs = qw(
    aries taurus gemini cancer leo virgo
    libra scorpio sagittarius capricorn
    aquarius pisces
    sub horoscope($)
    our $data = get(
    'http://my.horoscope.com/astrology/free-daily-horoscope-' . $sign. '.html'
    if ($data =~ m/(.+)\ id=\"textline\">(.+)<\/div>(.+)/)
    our $msg = $2 ."\n";
    return $msg;
    } else
    return "Error retrieving horoscope.";
    package main;
    for my $val (@signs)
    if ($sign eq $val)
    print horoscope($val)

    That won't work, as i change conky often. I _don't want_ a script outputting "hard-formatted" text that will only fit one kind of conky unfortunately.
    If that was what i wanted to do i would have done it that way already...
    PS; i don't need to be told to read documentation. I wouldn't have bothered posting if i hadn't looked beforehand. It's rather annoying when you spend several hours searching through doc's, misc forums and tutorials trying to find a solution and when you post a thread about it someone asks you to RTFM.....

  • Open Sales orders through IDOC

    Hi
    We are trying to send the list of open sales orders of a customer in an IDOC to the customer. For example, if the customer has got 15 sales order to be delivered to him , he needs the details of all these 15 orders in an single IDOC
    Is there any IDOC message type available for this in SAP R/3 4.7 version  or is there a standard solution of sending these details through IDOC
    Regards
    Anandh

    Hi
    We are trying to send the list of open sales orders of a customer in an IDOC to the customer. For example, if the customer has got 15 sales order to be delivered to him , he needs the details of all these 15 orders in an single IDOC
    Is there any IDOC message type available for this in SAP R/3 4.7 version  or is there a standard solution of sending these details through IDOC
    Regards
    Anandh

  • Creation of Business Partner through IDOC

    Dear All,
    I have to create a business partner which happens through Idoc of message type DEBCOR. My problem is that though I am getting the IDOC message as incoming type which is also getting processed however the creation of BP is not happening. Since IDOC is also showing in green as successfully processed, I dont have any clue where to check it. Any idea as to what could be the possible problem ?
    best regds
    Subha

    IDocs and BAPIs sometimes behave differently than transactions. You might need to add a user exit specifically for IDoc processing. Otherwise send a message to SAP and have them look at it.

  • Creation of SO from PO through Idocs in Same client

    Hi frnds,
         Can we create SO from PO through IDOC's in the same client with different company codes.
    Ex: PO created in 100 client in company code AB00. i have to create SO in 100 client in company code AB01.
    Any suggestion on this is highly appreciated. Please provide the steps and idocs or let me know the other approach.

    for posting the IDOC to same system
    use this logic
    The steps to send and receive an IDoc in the same system are as follows:
    u2022     Create a Dummy Logical System.
         Goto T-Code SALE-> sending and Receiving Systems -> Logical Systems -> New entries. Enter SYSID_CLNT, but this one is Dummy so use the first two characters of the SYSID and prefix 'D' then underscore and then the Client number.
    E.g., If ERP_100 is the logical system of the R/3, then create ERD_100 as the dummy system.
    u2022     Create Port for the Original System, (ERP_100)
         Goto WE21 and select Transactional Port and press the Create button. Name the Port as "SAP" concatenated with the SYSID in our example it would be SAPERP Select the appropriate version and enter the RFC destination of the system that you are working on in this case it will be 'ERP'.
    u2022     Create Partner Profile in partner type LS:
         Receiver Side (Outbound to): In Partner type LS name ERD_100create the Outbound Parameters, give the Message type, Receiver Port same as the port we created in step 2. Enter the Basic type.
         Sender Side (Inbound from): In partner type LS name ERP_100 create the Inbound Parameters, give the appropriate message type and the process code.
    u2022     Now create the stand alone program to send the IDoc:
         The program will at some point calls the MASTER_IDOC_DISTRIBUTE function module. When you pass the EDIDC structure it will be populated as follows:
    i_edidc-mestyp = message type.
    i_edidc-idoctp = basic type.
    i_edidc-rcvprt = 'LS'.
    CONCATENATE 'SAP' sy-sysid INTO l_port.
    i_edidc-RCVPOR = l_port.
    i_edidc-rcvprn = 'ERD_000'.
    CONCATENATE sy-sysid '_' sy-mandt INTO l_sndprn.
    i_edidc-SNDPRN = l_sndprn.
    i_edidc-sndprt = 'LS'.
    i_edidc-sndpor = l_port.
    u2022     Observe that the Sender port and the receiver port is the same, this does the trick. The outbound Idoc is sent on the port SAPERP with the Sender as ERP_100 and receiver as ERD_100 and then the Inbound IDoc is also sent to the same port SAPERP with the Sender as ERP_100 and receiver as ERD_10.
    this is the method for creating logical system and setting
    and use the respective function module and mesg type for posting it.
    cheers
    s.janagar
    Edited by: Janagar Sundaramoorthy Nadar on Apr 29, 2009 6:32 AM

  • Printing ALV Report output through Function Modules

    Hi All,
    I want to print my ALV Grid output through function modules/statement (not through print option in menu).
    This is because, i am generating a PDF from spool when user clicks on a button. If any changes happened in the ALV output layout, they will be captured in spool through printing it.
    So can you please tell me how to print the ALV Output through FMs or sending the ALV output to spool.
    Thanks & Regards,
    Senthil.
    Edited by: senthil nathan on May 17, 2010 2:49 PM

    Hi Dev,
    Thanks for the reply.
    I want to print the ALV when the user clicks on a button in toolbar. Lets say the user has made some changes to the layout, (E.g hiding a field) and when i print that output it should use the changed layout, If i use the FM suggested by you, i cant acheive this.
    If you try to print this manually, the system uses the changed layout and not the original. Thats why i want to know FMs/statement to print.
    Regards,
    Senthil.

Maybe you are looking for

  • Flash conflict w/ IE 6

    Apparently there is a conflict between Flash Player and Windows Explorer 6.  If I open a site that uses flash player, obviously I am asked to download flash player.  Shortly after doing the download an error message pops up telling that Windows Explo

  • Pdf files in my iPad2 can't be restored in my new ipad Air's iBooks and iAnnotate

    pdf files in my iPad2 can't be restored in my new 128GB ipad Air's iBooks and iAnnotate

  • Mpeg streamclip jvc fcp

    HI all. I have a JVC everior. I have read all through the notes all over the internet, my problem though is this. I have transfered the files from the camcorder as they were recorded. When I watch them in mpeg streamclip before I even transcode them,

  • Computer Won't display video

    Ok so yesterday I went to put my computer into sleep mode, and when I did the power button started blinking orange. So I tried waking it up from sleep mode and it wouldn't wake up. I turned the computer off by pushing the power button and now when I

  • How can I edit my iweb published site when the domain file is empty?

    How can I edit my iweb site when the domain file opens up empty? I have the site backed up in mobile me, on my computer, and on an external hard drive. How can I transfer these files into iweb?