Process Chain Abap conditions

Hi experts!
We currently have a situation where by we need to update an end to end loading status table. This loading status table is a customize table that contains our datastage extraction status as well as its corresponding process chain load status.
We thought of writing an ABAP program and put it in the beginning of the process chain to update this loading status table inorder to do so we need to know the current process chain that is triggered and indicate it has commenced. So the question is do you all know what is the FM or program that captures the process chain ID and its details and write it into the standard RSPC Log tables?
Do note that it should be able to handle simultaneous trigger of the process chain.

Hi,
Try this :
REPORT  ZPCNEW.
TABLES : RSPCLOGCHAIN.
DATA : IT_tab TYPE TABLE OF RSPCLOGCHAIN,
       WA_tab TYPE RSPCLOGCHAIN.
FIELD-SYMBOLS <fs> LIKE LINE OF it_tab.
PARAMETERS :LV_CHAIN type RSPCLOGCHAIN-CHAIN_ID.
select * from RSPCLOGCHAIN into table it_tab
where CHAIN_ID  = LV_CHAIN
and DATUM = sy-datum.
SORT it_tab DESCENDING BY DATUM ZEIT.
Read table it_tab INDEX 1 ASSIGNING <fs>.
IF sy-subrc = 0.
  if <fs>-ZEIT < sy-uzeit.
  Message e000(sabapdocu) with 'Error'.
  else.
  MESSAGE i162(00) WITH 'Successful'.
  endif.
else.
MESSAGE i162(00) WITH 'Successful'.
endif.
-Vikram

Similar Messages

  • CONVT_NO_NUMBER Dump error in Process Chain Abap Program

    Hi Experts,
    The daily running process chain is failed at ABAP program with the error CONVT_NO_NUMBER.
    The reason for the exception is:                                       
    The program attempted to interpret the value "40-799" as a number, but 
    since the value contravenes the rules for correct number formats,   
    this was not possible.
    I am not familiar with ABAP.
    Please suggest me how to proceed..
    Thanks
    <BMP>

    Hi,
    In ST22
    Short text                                  
        Unable to interpret "40-799" as a number.
    Error analysis                                                                     
        An exception occurred that is explained in detail below.                       
        The exception, which is assigned to class 'CX_SY_CONVERSION_NO_NUMBER', was not
         caught in                                                                     
        procedure "FM_DIR_LIST" "(FORM)", nor was it propagated by a RAISING clause.   
        Since the caller of the procedure could not have anticipated that the          
        exception would occur, the current program is terminated.                      
        The reason for the exception is:                                               
        The program attempted to interpret the value "40-799" as a number, but         
        since the value contravenes the rules for correct number formats,              
        this was not possible.   
    I am trying post the code but SDN is not accepting more than 15000Char's
    So can i get ur (mail) details
    So that i can send u the exact code...
    Thanks,
    BMP

  • 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

  • Call ABAP Program in Process Chain

    Dear BW Gurus,
    I need to call an Process chain which includes ABAP Program.
    The ABAP Program doesn't have the variants but it accepts the inputs from the user and sets into a YXXXX table.
    I am not getting how to proceed in this regard.
    Kindly guide.
    Best Regards,
    Harsh

    hi,
    chk these links below.. they contain the resolution for your query
    Call ABAP Program in Process Chain
    ABAP in Process Chains
    Also chk this relase which ia an entire guiding one to ABAP Program in Process Chain
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7

  • Program Variant in Process Chain

    Hi All,
    I have to execute a program in a Process Chain. I have included a process variant to execute the program. Now, this program bring us to a screen, where we need to click on the execute button to run that program. I need to add a program variant for this i guess. Can any one give me the procedure how to do this?
    Points will be awarded.
    Thanks in advance,
    Anjum.

    The program that you have written should run in background.
    We use Variants for ABAP programs to be run in the Process Chain
    - Create an ABAP variant
    - Choose call mode "Synchronous", Called from "Local". Thats mostly the default we use. choose according to your requirement.
    - Choose "Program". Choose the program name & the variant n ame. Its better if you create the variant while testing the program in sa38. Later you can use the same variant in the Process Chain ABAp variant OR can create a new one. Set appropriate values.
    Please note that if in SA38, your program ran successfully with the variant, it should run here as well.
    That should do.
    Regards
    Anujit Ghosh
    Edited by: Anujit Ghosh on Jun 17, 2008 12:36 PM
    To create the program variant, first enter a name of your choice in the program variant field. Click Edit.
    - Choose Create New
    - Choose "Values". Click Change. In teh next screen, enter all the required parameters. Choose if its a SAP standard prog, or modified program.
    - Check the attributes as well. It will usually choose selection screen 1000 as default. Let it be.

  • Send process chain in error by abap

    Hi all,
    I want to send in error my process chain by abap code, because i've a routine in transfer structure and on the particular conditions this code must stop the load.
    How to send in error my process chain by abap?
    The following code send in error the infopackage but not the routine in trasfer roule.
    l_s_errorlog-msgid = 'Z_my_message_class'.
    l_s_errorlog-msgty = 'E'.
    l_s_errorlog-msgno = '001'.
    APPEND l_s_errorlog TO g_t_errorlog.
    thanks,
    Alessandro

    Alessandro
    Check this link. It may give some info.
    Thnaks
    Sat
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/ee14e25d-0501-0010-11ad-8eb2861a7ec0 [original link is broken]

  • Status of Abap program in process chain

    Hi,
    Is there a way to create process chain of type abap program that determine what the status of the process? In other words, to decide what the status color of the process (red/ green) according to some conditions in the code?
    Thanks,
    Mohamad

    Hi,
    look at this how to
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/509f3ae6-e36e-2910-48a8-ab43dc167dd9
    also:
    1.create a custom defined abap process type which ends correct or invalid
    2. create an abap whith 'E' message command (ends incorrect/red) or 'I' message tpye (ends correct/green)
    /manfred

  • Triggering BW Process Chain based on multiple conditions/events

    Hi all,
    We are facing a situation where we need to execute a BW process chain only if another process chain and two different R/3 jobs are completed.
    Could anyone give any inputs as to how to include multiple start conditions for a BW process chain.
    Thanks,
    Sarath

    we did the following for the same challenge :
    create a z table with a description field and a date field.
    eg
    job_1 20100829
    job_2 20100829
    job_3 20100829
    create one program that reads this table and inserts for every job an entry.
    if you already have two other entries in the table, this means the other two jobs have also finished to you can trigger the chain (check the forum on how to trigger a chain using abap).
    if you don't have the entries in the table insert the entry for this job.
    create one event (event_1) to trigger this program.
    at the end of the R/3 job/process chain raise event_1 in BW.

  • Process Chain with IF condition

    Hi all,
    It's possibile put in a process chain an IF condition??
    This is my problem:
    I have a process chain that execute  all process even if the result is GREEN or RED.
    At the end of the chain I have to Make a chois, IF one of the previous step is RED the proces chain have to do something IF all  previous step are GREEN  the proces chain have to do something else.
    I hope I have explained my problem well.
    Thank you very much,
    ax.

    Yes something like this,
    I have 5 IP
    IP1 -> IP2 -> IP3 -> IP4 -> IP5
    At the end of PC IF one of IP1 to IP5 is red the PC execute an ABAP program ELSE the PC execute an different ABAP  program.
    Now when i use a Decision Between Multiple Alternatives i have to specify a formula into the variant, right? but how can do this??
    meyby i explain not well my problem :-D
    Thx,
    ax

  • ABAP Program for set local process chain failed

    I would like to execute ABAP Program in local process chain. If the condition is in the pre-defined bussiness rule, local process chain is set to fail.
    Currently I use ABAP and Raise Message Error = Message Type E for cancel program. After program is cancelled, local process chain don't know its status, wait for job SAP_CCMS_MONI_BATCH_DP  to determine status of process chain and then further execute subsequent process.
    I 'm not sure that our solution is right or not about set process chain to fail via ABAP. Please suggest us if there are other solution to set process chain as failed.

    Hi.
    Plz see my answer to similar question in [this thread|Re: Manage a message at the end of process chain on Web planning Application].
    Regards.

  • Conditioning Process Chain : weekly PC after a daily one

    Hi
    I am wondering the best way to implement a Metachain. I have daily process chain that should include a extra step (local proc chain) to be run on weekly bases.
    I just dont know how to implement this situation....
    If I use weekly in Start condition and put this local chain within the daily main one  I dont know if would work or be the correct way to do it...
    Once is defined as local I understand a chain has to be set as "Start using metachain " selection so no way to control it. yes?
    appreciate your prompt replies!!!

    Geo
    I see my mistake i always consider to have only 1 initial SALES (daily) and from there ABAP ....
    So lets say it would be:
    Meta 1(event daily)  = Meta Sales + Meta Forecasting &
    Meta 2 (event weekly) = Meta Sales + Prop Factors PC + Meta Forecasting
    But still face 2 problems:
    a) when I define meta 1 for Sales & Forecasting and then second meta using same process chains for SALES and FORECASTING in meta 2 it tells me that they are repetitive and should choose only one place and delete them from 1 of them ???
    b) Meta sales should be activated by another event as they are 5 sales uploads types...
    Appreciate your lasts comments!! thank you all!

  • Email Alert for Process Chain for ABAP Process Type

    Hi BW Experts,
                             I created a process chain based on ABAP Process Type ( for Broadcasting rsrd_broadcast_starter). I want to add alert message for each ABAP process if it is failed. But I cant see any option showing Successfull or Error or Always when I select create message option on the process type. How ever I can see for other process chain which is loading data (Process Type is Info Package ) from SAP into BW.
                             Please some one tell me why it is not showing alert message for ABAP Process Type.
    Thanks
    Ganesh Reddy.
    Edited by: Ganesh Reddy on Jul 13, 2009 10:16 PM

    I dont have the exact answer for your question, But as a work around i can suggest you that.
    If these ABAP programs are included in a chain and this local chain is a part of meta chain then you can create a message on the local chain.By right clicking on the local chain >Create Message>Success
                                                                                    --->Failure
    >Always
    Hope this resolves the problem tempervorly.I will get back to you once i have
    Or the permanent solution is
    Its big and also easy method to perform, by this you will be able to get all the options for a ABAP Program also.If you have any questions please let me know.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/creating%20an%20abap%20process%20type%20for%20process%20chains%20in%20bi.pdf

  • GETWA_NOT_ASSIGNED error while running abap prog in process chain

    Hi.
    I am getting a runtime error GETWA_NOT_ASSIGNED while running an ABAP program in process chain.
    But when i execute pro in SE38 , it's not giving any error.
    Please any one can suggets what will be error.

    Hi,
      i also used to get error for a program executed through process chain but when it is executed in se38 it used to work... that is because my program try to access a application server folder and reads the file from there... the authorisation to this is not proper through process chain ..... once authorisation to the folder was given properly .. i am able to run...
      Such things can happen in your case also... Try to analyse the dump in st22.... what happened ...
    Regards
    vamsi

  • 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

  • Process Type ABAP does not work properly via process chain

    Dear SDNers
    I am running a process chain and it contains process type ABAP program. ABAP program was running correctly till now via this process chain. ABAP program process type generally takes approximately 2 hours to run. But now, this process type for ABAP program just run for less than 1 minute and finishes successfully. The issue is that ABAP program does not run at all.
    I ran the ABAP program in background and it took approximately 2 hours to run. ABAP Program is local means in our BW system and does not involve Remote Function call. We have BI7.0 system
    Has some one came across this type of issue?
    Best Regards
    Pradip

    Has the aleremote user or which ever user you have defined for background scheduling changed permissions recently?
    What happens if you create an adhoc chain and include this ABAP variant, does it run then?
    What does the log say in SM37 when run via process chain?
    Cheers
    Craig

Maybe you are looking for

  • Source directory of file adapter

    Hi. I want to use windows share directory as source directory of sender files adapter. So we need set the path UNC name. for example. <hostname>\d:\sourcedirectoy Does this setting is supported? And are there any problem? regards,

  • I can't install QuickTime

    A whille ago I uninstalled QuickTime because I didn't think i needed it, but then I learned that I need QuickTime to run Itunes. When I try to install QuickTime again, it goes through the installation but towards the end it has an error. It says ther

  • Downgrade enterprise edition to Standard Edition One

    I downloaded database 11g for solaris intending to install standard edition one. During the install I did not see any options for the edition, and installed enterprise edition. I then deinstalled enterprise edition options but the database banner is

  • I can't download games

    When I try to download a new game it says it can't connect to a secure network. It connect to my house network no problem for everything else. I can  search games but when I try to download any game it won't let me. Our home network is not password p

  • Safari scaling issue on orientation

    Hi I am facing an issue where on changing the orientation of the web app in iPad, the screen gt zoomed in. I had googled abt the issue and had fond it as an issue from Apple safari end. Please help if somebody have a solution for the same.