Calling ABAP Program from a Process Chain

I am calling an ABAP Program from Process Chain by adding a Process Type u201CABAP Programu201D,
My ABAP program writes lots of information using write statements.
I looked in Process Chain Log; I do not see output from Write statement. I am pretty sure my write statements were executed. I also looked in SM37 job log. I do not see any more information.
Where to see the output generated from ABAP.
Thanks.

Hi,
First find out where your ABAP program the data written.You need to write it into and spool then only you can see it.
Transaction SP01, you can use the FM 'GET_PRINT_PARAMETERS' in your abap program to write to spool.
Thanks,
Ravi

Similar Messages

  • Call ABAP program from a process chain

    Hi ,
    Can anyone tell me how do we call an ABAP program in R3 from a process chain in BW.
    Its real urgent please help.
    Thanks
    Ankit

    Hi,
    Create ABAP program in BI/BW system with name like ZFILL_CALL.
    Create RFC enabled function module(eg: ZRFCFM) in R/3 system, in this function module call your program which fills the ZTABLE from application server.
    Call RFC function module ZRFCFM from your program ZFILL_CALL in BW system.(u need to RFC connections to these systems).
    Create process of type "ABAP program" which u will find in General sevices in RSPC. Attach this process befor u r inpackage process chain.
    Hope it will work.
    Sree

  • Trigger an ABAP program through a Process Chain

    Hi,
    I have an ABAP program as part of my Process Chain that updates the BW Hierarchy OREGH. 
    However I can't get the program to execute through the chain, even the though chains goes all green. without any REDS anywhere along the chain. 
    When I check if the program has made the desired changes in the tables it hasn't.
    If I run the program using SE38 it works fine and in seconds.
    Is there a parameter setting I have to set in the process chain or within the program itself.Tthe program is active.
    Ive checked many of the  posts about this issue but couldn't find a someone experiencing a similar problem.
    Please Help
    Thanks
    Amir

    Remove that ABAP program from the Process Chain and activate. Leave RSPC screen.
    Re-enter to RSPC, and add that program by creating a new variant with following options:
    Call Mode : Synchronous
    Call From : Local
    Check and Activate process chain.

  • How to finish ABAP program in the process chains

    Hello All,
    we have one ABAP program in the process chains which was created in the BW system only.
    this program we are using in the synchronous mode. according to my understanding we can not capture the failure of the ABAP program when it is in the synchronous mode.
    but i found a way through one this forum topic to capture the failure of the program through asynchrous mode by calling a function module RSPC_ABAP_FINISH but it was with the R/3 program in BW.
    can we use the same function module for BW program also.
    kindly let me know what steps we need to follow for the BW program in the process chains to capture the failure status.
    Regards,
    Ala.

    Hi Ala,
    we created an own processtype, look at this HowTo: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/45d8a990-0201-0010-a290-f22083728179
    and than also an abap which can end red or green:
    PARAMETERS: red   RADIOBUTTON GROUP radi,
                green RADIOBUTTON GROUP radi.
    IF NOT green IS INITIAL.
      MESSAGE i162(00) WITH 'Status' 'Green'.
    ELSE.
      MESSAGE e162(00) WITH 'Status' 'Red'.
    ENDIF.
    with i-message process ends green, with e-message process ends red.
    /manfred

  • How to implement an abap program in a process chain

    Hi,
    I have an ABAP Program which uploads data into a table.
    Now I want to implement this abap program in a process chain.
    Please could anyone tell me how this can be done.
    Thanks & Regards,
    Sushanth H.S.

    Hi,
    A process chain is a background task for processing data into a BW instance .
    I want to know how to integrate an abap program into the process chain.
    Regards,
    Sushanth H.S.

  • ABAP Program in a Process Chain

    Hi!
    I create a program in ABAP/4. The program modify an attribute of a Z table I have previously created.
    I want to add that program in a process chain of BW which load a cube. The problem is that when I am in in the process chain, the program I have created doesn´t appear in the available programs to select and associate to the process chain.
    What I have to do to have the ABAP program available to select and associate to the process chain?
    Thanks in advance.

    Hello Nicolas, there are a few options you can try.
    1.  Instead of an ABAP program, would you think of incorporating your logic into a function module and then create a generic datasource in R/3 to extract the data from your Z table using the function module.  There is a function module in R/3 called <b>RSAX_BIW_GET_DATA_SIMPLE</b> that you can copy and use as a template for your function module.  Refer to the following blog:
    <a href="/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module:///people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    You can also search this forum for RSAX_BIW_GET_DATA_SIMPLE for other ideas.
    2.  If you really want to use your ABAP program in R/3, then your best solution would be to create a job in R/3 that is triggered by an event.  This job will have two steps in it.
    Step 1:  execute your ABAP program to fill your Z table
    Step 2:  execute program to notify process chain in BW that ABAP process is complete (sample source below)
    In your process chain in BW, your ABAP process should be set up to be
    Called From:  (RFC destination of your R/3 system)
    Scheduled Program:  Event (event name in R/3)
    You may get a help message about "Requirements for asynchronous processes".  This is an informational message telling you that if you call an ABAP program from a remote system, there is no way for BW to monitor it, so you will have to execute a function module (RSPC_ABAP_FINISH) in the R/3 system to inform the process chain when the ABAP program finishes.   You can create your own program in R/3 to use this function module:
    *& Report  Z_RSPC_END_PROCESS                                    *
    *  Trigger end of an ABAP process in BW process chain.
    REPORT  z_rspc_end_process.
    *"*"Lokale Schnittstelle: Detination BW
    *"  IMPORTING
    *"     VALUE(I_VARIANT) TYPE  RSPC_VARIANT
    *"  EXCEPTIONS
    *"      ALREADY_FINISHED
    PARAMETER: p_rfc LIKE rfcdes-rfcdest,
               p_var(30) TYPE c.
    CALL FUNCTION 'RSPC_ABAP_FINISH'
        DESTINATION p_rfc
         EXPORTING
           I_VARIANT              = p_var
         EXCEPTIONS
           ALREADY_FINISHED       = 1
           OTHERS                 = 2
        IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    This program in R/3 will inform your process chain in BW that the ABAP process is finished and BW will continue to next process in the process chain.
    Note:
    p_rfc would be the RFC destination of your BW system
    p_var would be the name of the ABAP process in your process chain
    Hope this helps.

  • Call ABAP program from a Feature - PE03

    We are in process of upgrading from 4.6 C to ECC 6.0.  One feature (CSTV1) will not activate because there is a limit on generated programs to under 10,000 ABAP statements.  SAP told me to call an ABAP program from the feature to reduce the number of ABAP statements in the generated program.  Has anyone created a feature that called an ABAP program?  I searched SAP help and I can't find any information about calling a ABAP program.
    Thanks in advance,
       Mark Ashabraner

    Hi Mark,
    You can try it this way.. Get the name of the ABAP Program generated by the feature from its attributes. it will be something like '1PAPA/FEAT020Z0106'...May be you can change this program ie  put a substantial chunk of this code in a subroutine in another program & call that with a PERFORM from this Program..
    ~Suresh

  • Call ABAP Program from outside SAP

    Hi all,
    How can I call an ABAP program from outside SAP, for example from a C++ executable, a .NET assembly or a JAVA package ? Are their "adapters" provided by SAP for this ?
    Angela

    Hi Angela,
    as mho already stated:
    For external connections to ABAP, the sap-proprietary "remote function call (RFC)" is a common way.
    SAP delivers an RFC-library for this, and for some development environments SAP even offers a connector on top of this library to make connectivity more easy (SAP Java Connector, SAP Business Connector, SAP Connector for Microsoft .Net). An RFC is always starting function modules in ABAP, not ABAP programs, and these function modules need the attribute "remote-enabled".
    (Remark: in the context of SAP NetWeaver Process Integration, SAP offers adapters for connectivity, also for ABAP systems.)
    For ABAP systems on basis code line 6.20 and above, the remote-enabled function modules can externally be used as web services.
    Information on RFC can be found in the SAP Help Portal http://www.help.sap.com, e.g. [RFC Call - Example Program|http://help.sap.com/saphelp_nw04/helpdata/en/3d/733760ccb411d2b4550060941936e3/frameset.htm]. A search in SDN provides links to the Help Portal as well.
    >
    Angela GALACY wrote:
    > For example, what if I develop an EJB inside NetWeaver, will I be able to access this from any J2EE client ?
    This part is beyond the ABAP question, and my guess is pretty simple: like on any other J2EE server.
    Regards, Boris

  • ABAP Program Termination in Process Chain

    Hello
    in my process chains i have one abap program and it is getting dump while loading.
    where can i check whether this program got terminated in this particular chain.
    as i have many chains i am not able to check in each and every chain.
    kindly let me know where to check the program termination in process chains.
    do i have any chance to set an automatic process for checking the termination of the program.
    regards,
    Ala.

    Hi Ala,
    If u know the process chain name, u can directly see log view of that process chain and right click on that failed ABAP program click "display mesaged". Now note down the error message and see that in st22.
    If u dont know the process chain name..
    In SM37 go to the job log for that pirticular job which is failed, it gives u tha program name and varient name.
    now goto SE38 and give that program name and variant then click on display.It gives u process chain name.
    Hope it helps.

  • Call ABAP program from Unix script passing dynamic filename

    Hi,
    Does anyone know if it is possible to call an ABAP program from a Unix script passing a dynamic filename to the ABAP program?
    We are receiving a file from an external company and on receipt of the file want to call an ABAP program passing the filename.  The filename is made up of File ID, Date and Time which we need to read in the ABAP program.  We usually use Events to trigger a program which is fine when the filename if static however since this filename will be dynamic we cannot do this.  In addition we cannot just rename the file to a static name in the Unix script as we need to know the value of the date and time from the file ID in the ABAP program.  I can change the ABAP program to check our /in directory for a Filename that starts with the fixed File ID however I thought there must be a better way of doing this.  We want the external company to put this information in a file header record but they don't want to change the file contents.  Any ideas would be appreciated.
    Thanks,
    Sinead.

    You could follow the following method
    1.Let the external file reside in the SAP application layer in a defined path e.g. /usr/sap/tmp/interface/working/
    2.Write an ABAP program which will include the following steps:-
       i) read all files in the file path using function module EPS_GET_DIRECTORY_LISTING
      ii) Read the data from files existing in the directory using OPEN_DATASET statement
    iii) After the files have been read move the files to another directory e.g. /usr/sap/tmp/interface/backup/ or you can delete the file.
    3.Schedule this program to be executed depending on the frequency of the external file being generated.

  • ABAP program fails  in process chain -'ABAP/4 processor: DBIF_NTAB_SQL_ER

    Hi Experts,
    I have an ABAP program in  process chain. It frequently fails in the chain .
    When i do repeat on it will run fine.
    Purpose of the program is to delete the content from open hub table.
    I can    'ABAP/4 processor: DBIF_NTAB_SQL_ERROR' .
    What could be the reason . How can i give permenant fix to it.
    Thanks in Advance

    Hi,
    It looks like database error, speak to your DBA/Basis to get it resolved.
    regards
    Vikash

  • How to extend the execution time of an ABAP Program using the Process chain

    Hello Sapians,
    Our Environment has got 600seconds = 10 mintues as the execution time.
    My ABAP Program is taking more than this 600 seconds, to show the result, I found this when I tried to execute in debug mode, it shows the result.
    If I execute in background also it shows the results succesfully.
    Only issue is when I execute this report in foreground it has been taking ages and goes on Time OUT Error.
    It has been decided that we can extend the execution time only for this report, and it will reset the time back to 10mintues once the report has been executed successfully or failed in between for any other reasons.
    And we can achieve this by using the process chains.
    Can any body help me please in this regard
    Thanks,

    Hi,,,,,,,,,,
    Besides Process Chain There is another way out for this........
    Resetting time counter of dialog process so that time-out does not
    happen. Use this fm within your program at appropriate locations to
    reset time counter.
    "CALL FUNCTION 'TH_REDISPATCH'."
    Thanks
    Saurabh

  • Abap program - end of process chain

    Hi,
    I have a requirement. At the end of each process chain, the ABAP program must trigger email.
    The process chains are having naming format of Z<Module name>. Ex: SD process chain will have ZSD, PS process chain will have ZPS etc.
    Now we are reading a table based on the module and identify the users, and to those users email should be sent.
    Now i am unable to identify the name of the process chain at run time from my ABAP program.
    Is there any way to identify the name of the process chain at runtime from ABAP program?
    Thanks.

    Hi,
    Your question is not clear can you please provide few more detail.
    for sending mail to users you can use "Varient" whatever you required. I am not sure what table you are using.
    Regards,
    satya.

  • Urgent: call ABAP program from BSP

    hi BSP experts,
    We just want to trigger an ABAP program to say "Hello World" in BSP and see the wording "Hello World" on web browser when running it from BSP.  One BSP expert Raj gave the answer by using the following in BSP:
    oninitialization:
    submit ('z_program_name') and return exporting list to memory.
      call function 'LIST_FROM_MEMORY'
           tables
                listobject = listobject.
      call function 'WWW_HTML_FROM_LISTOBJECT'
           exporting
                report_name = 'z_program_name'
           tables
                html        = html
                listobject  = listobject.
      clear output_str.
      loop at html into html_wa.
        concatenate output_str html_wa into output_str.
      endloop.
    layout code:
    <htmlb:content design="design2003">
    <htmlb:page title = " ">
    <htmlb:form>
    <%= output_str %>
    </htmlb:form>
    </htmlb:page>
    </htmlb:content>
    We put the above in our BSP and then activate them, but get the following error:
    Field "LISTOBJECT" is unknown. It's neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement."DATA" statement.
    And the error stopps here:
    submit ('z_program_name') and return exporting list to memory.
    call function 'LIST_FROM_MEMORY'
    tables
    listobject = listobject.
    Any idea? 
    We will give you reward points!

    hi Tanguy,
    Eventually, I have figured it out on how to make the code works by showing "Hello World!" on web browser. But actually we would like to run another ABAP program which open a new container on users' machines, download an Excel template stored on server to the opened container on users' machinese, and then dump SAP table data to the opened excel template. This program works very well through SAP GUI, but users would like to run it on web that we tried to run this program in BSP, but it doesn't work with your code! Any idea?
    Thanks alot!

  • How to trigger an ABAP program in a Process chain

    Hello Forum,
    1. In a process chain, if a program fails, how can we re-run it?
    2. If the process preceeding the ABAP program fails, how can we start the program?
    3. If an Infospoke fails in a process chain, how can we trigger that?
    Thank you,
    Its my pleasure to assign points,
    raj

    Hi,
    1. U have to first check whats the reason for the failure. check in the monitor screen details button, the error message will be displayed, check the error, correct it. and to proceed with further right click on the subsequent process use Repeat option , the loads will get continue.
    2. same here, if it fails check the reason, sometimes if two parallel process trying to access the same program Lock may occur, stop one process, once its done start the second process, use the transaction code SA38>select ur ABAP program, the corresponding variant->this is for running the ABAP program in the backgroud..if u want to run direct means Select the Process types Under the general services u find an ABAP program
    3. same here too u should find the reason why it fails, and rectify the error, and use the repaet option to proceed with further.

Maybe you are looking for

  • Crystal Report Server Database Log File Growth Out Of Control?

    We are hosting Crystal Report Server 11.5 on Microsoft SQL Server 2005 Enterprise.  Our Crystal Report Server SQL 2005 database file size = 6,272 KB, and the log file that goes with the database has a size = 23,839,552. I have been reviewing the Appl

  • Against PR when created the PO,price is not picking from PR to PO?

    Hello Gurus, Against the PR,created the PO system is not picking the price from PR to PO ?

  • 2 quick questions.

    1. I have not updated my iTunes since I got it a year and a half ago. I want to know if I update it will all of my music be there still? I have over 600 songs and would hate to lose them. 2. A family member of mine just got the brand new nano. She pl

  • Graph Scale Range

    Hello Everyone, I have a problem in the Waveform Graph. Basically I have a Waveform Graph and on the graph I have a cursor. Now I should be able to move the cursor on the Plot , but the condition is that it should not go beyond the X Sacle range. For

  • Incorrect logical expression: Comparison / SELECT-OPTION can only be follow

    Hi, I'm new to ABAP, please help me with the below code. When i check the code i get the message "E:Incorrect logical expression: Comparison / SELECT-OPTION can only be followed by "AND", "OR" or ")". data: pphd(7) type p decimals 2,           ppha(7