ABAP Program for Processchain..

I have one processchain that is running my manually.
if processchain running means need a output like processchain running.if processchain not running/completed
i need a output like process completed.so finaly i need to develop abap program for my processchain.any one write program for my processchain?

Hi,
REPORT  ZPROCESSCHAINLOG.
TABLES rspclogchain.
DATA: gt_rspclogchain LIKE rspclogchain OCCURS 0,
      wa_rspclogchain LIKE rspclogchain.
DATA: gt_log LIKE rspc_s_msg OCCURS 0,
      wa_log LIKE rspc_s_msg,
      log type c.
SELECT * FROM rspclogchain
INTO CORRESPONDING FIELDS OF TABLE gt_rspclogchain
WHERE datum eq sy-datum
AND chain_id = YOUR PROCESSCHAINID.
IF sy-subrc = 0.
  SORT gt_rspclogchain BY datum DESCENDING
                           zeit DESCENDING.
  READ TABLE gt_rspclogchain
       INTO wa_rspclogchain INDEX 1.
  CALL FUNCTION 'RSPC_API_CHAIN_GET_LOG'
    EXPORTING
      i_chain = wa_rspclogchain-chain_id
      i_logid = wa_rspclogchain-log_id
    TABLES
      e_t_log = gt_log.
  IF sy-subrc = 0.
    LOOP AT gt_log INTO wa_log.
      if wa_log-msgv4 = 'Successfully completed'.
        log = 1 .
      endif.
    ENDLOOP.
    if log = 1.
      WRITE: / 'Processchain completed'.
    ELSE.
      WRITE :/ 'processchain is running'.
    endif.
  ELSEIF sy-subrc <> 0.
    WRITE :/ 'Not scheduled'.
  endif.
endif.
Best Regards,
Thangesh

Similar Messages

  • How to read a word in a abap program for syntax check

    program for finding keywords:
    into a given program name in selection screen.
    e.g Parameters Keyword in YXABC propgram.
    How to find a word in a abap program for syntax check

    Hi!
    Read table TNAPR for the program names.
    Then use the READ REPORT  statement for it and load the program into an internal table.
    Then loop at the table.
    Regards
    Tamá

  • ABAP program for wage type variant report

    Hi experts,
    plz any one sen me the ABAP program for to create wage type variant report plz.
    Thanks
    Rajesh.

    Requesting for code is against forum rules. Please read the rules of the forum before posting.

  • ABAP programing for off-cycle payment for bonus

    Hi Guru's
    I have to develop a ABAP program for Off-cycle payment bonus,
    I am new, any one can help me in this.

    Hai,
    Please refer to the given below link:
    back payment for off-cycle bonus

  • ABAP program for sending emails

    Hello SAP developers,
    I need ABAP program for sending emails to my internet adress in background - just some simple header with no body and no attachement. Recipient should be specified due the parameter etc... Does program like this exist or i have to create it? I am not familiar with ABAP. I am basis admin so I am little bit lost in this. I have tried program code from this page ->
    http://www.sapdevelopment.co.uk/reporting/email/email_mbody.htm
    But anyway it does not work - there is an exception "no message send". SCOT is configured, mails are working fine from transaction SBWP.
    Thanks in advace
    JM

    I have already solved my issue through CCMS agents and RZ20 central autoreaction (sms) in Solution Manager.
    Regards
    JM

  • ABAP program for BAPI and convert DB into XML

    ABAP program for BAPI and convert DB into XML
    Thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Refer the link -
    give an example of bapi coding?
    how can we transfer huge amount of data from database server to xml format
    Regards,
    Amit
    Reward all helpful replies.

  • Any abap program for copying transformation in bi 7.0

    Hi guys
    Could you please let us know is there any abap program to copy transformation in BI 7.0 as we used to have copying update rule in Bw 3.5 or is there any other way ! It is for same datasource , ODS but different source system...
    Advance thanks

    Hi,
      It is there in support packs. we use to have similar kind of problem but we applied and it works pretty neat.
    i think the support pack is sp17 or sp16.
    thanks
    syed

  • How to create a job thru ABAP program for calling a program with variant???

    Hello experts,
    can u give me step wise procedure to create jobs for  a program with a variant name thru ABAP???
    Also, can a transaction can be scheduled as a job to run in background with a variant name???
    Edited by: SAP USER on Jul 22, 2008 6:08 AM

    Hi,
    To create a job through ABAP program you can do the following.
    Go to Menu bar.
    In there, go to   SYTSTEM> SERVICES> JOBS--> DEFINE JOB.
    Then give the JOB NAME and CLASS in the screen that comes up.
    This is how we schedule a program.
    Now, to create a variant for a program -
    First activate your program in SE38. Then execute it .
    Now, click on SAVE button. It will open up  the variant creation screen. Give the details there like variant name and value for the fields. Save and come back.
    Hope this helps.
    Regards,
    Hari Kiran

  • Standard ABAP program for process chains

    Hi gurus,
      Is there any standard ABAP program to trigger process chains?
    I do not have authorization for RSPC_API_CHAIN_START. So is there any alternative function module or any standard ABAP program that I could use?
    Please help.

    Hi Apara,
      Did you try scheduling the chain via rspc1? If not then follow the steps as given below and see if it is successful
    1) Goto RSPC1.
    2) Enter your chain technical name.
    3) Go to display variant by right clicking the chain. Select the immediate option. save the settings.
    4) Come back to the process chain screen. Click on execute button. See if this succeeds.
    or in case if the chain has been already scheduled once:
    Just open the PC in RCPC1/RCPC
    right click on the start variant (i.e the first process in the PC)
    and select display scheduled jobs...
    this will show you the released jobs for this pC
    just selsct the check box in front of the released job and the select the menu option Job - > selct Repeat scheduling.
    selct immediate and remove the periodic tick mark and save which will run your process chain immediately.
    But i doubt if you will be able to schedule the process chain via a function module or a ABAP code without prior authorization. Maybe you can request some one from your team to run the chain for you until you get access.
    You will surely need to get access for running the chain without which it should not be possible to run the chain.
    Thanks
    Pawan

  • 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.

  • ABAP program for units of measurement transfer

    Is there any ABAP program that will transfer units of measurement from R/3 to BW (like RSA1>source sytems>right click on client>transfer global settings)?
    I need it for scheduling this operation.
    Thanks in advance.

    Hello Andrew Timoshenko,
    How r u ?
    I believe if u Switch On "Dubug ABAP" option and do the same u have mentioned u might get the ABAP Program behind that operation
    Best Regards....
    Sankar Kumar
    +91 98403 47141

  • ABAP-Programming for SAP BW u0096 User-Exits und BAdIs

    Hi experts,
    i am a novice und looking for informations about Badi and User-exits for BW .
    i want to learn how to programm extractors.
    Can you you help me by giving me some informations or documents or sap links where i can find informations?
    Cheers

    Dear Mr Herzog,
    Congratulations for the book: Abap Developement for SAP Netweaver BI: User exits and BadIs.
    We're trying to implement the suggestions on the chapter 5.1.1 Interface of function module EXIT_SAPLRSR0_001 (page 136), however, we're having problens with the abap sintax CALL_FUNCTION  l_d_name IF FOUND.
    The command IF FOUND is not accepted.
    It'll be very helpful to avoid issues on tranporting include zxrsru01.
    I appreciate any additional help on how to implement it.
    Best Rgs
    Eliseo Bouzan

  • Documentation in ABAP Programming for ECC 6.0

    Can Anybody tell me how to do documentation in ABAP Programming in SAP  ecc 6.0
    What are the options there ?
    Also please let me know if there is a concept called "C DOCS".
    Thanks
    Naresh

    HI,
    In se38 ..give ur program name.
    In menu Goto --> Documentation --> Change.
    and press save.
    Thanx
    bgan.

  • Error while exporting ABAP programs for transport

    Hi,
    In the process of exporting my abap programs so that they can be transported, I released my work request.
    However, during release, errors were encountered, and the status of the release was set to 'Release Started'.
    The error encountered was
    '[STOP ICON] ===> HALT: rscpi_init fails with rc = 1 (twconv. c:957) Please contact the SAP support.'
    Can anyone help? Thanks.

    check all the objects used  in ur report are in same package
    Edited by: BrightSide on May 14, 2008 3:53 PM

  • Abap programs for practce from sd

    Hi friends , I am new to this community.
      I have just finished my ABAP-COURSE.They taught me very simple codes
    containing few lines.
    I would like to build my programming skills and provide me some codes for practice as i would like to get a job.
    give me some examples of real time and guide me please.
    thank you ,

    Standard SAP SD Reports:=
    Statistic Group:
    Purpose – To capture data for Standard Reports, we require to activate Statistic Group as under:
    --> Item category (Configuration)
    --> Sales document type (Configuration)
    --> Customer (Maintain in Master data)
    --> Material (Maintain in Master data)
    When you generate statistics in the logistics information system, the system uses the combination of specified statistics groups to determine the appropriate update sequence. The update sequence in turn determines for exactly which fields the statistics are generated.
    Configuration:
    IMG --> Logistics Information System (LIS) --> Logistics Data Warehouse --> Updating --> Updating Control --> Settings: Sales --> Statistics Groups -->
    1. Maintain Statistics Groups for Customers
    2. Maintain Statistics Groups for Material
    3. Maintain Statistics Groups for Sales Documents
    4. Assign Statistics Groups for Each Sales Document Type
    5. Assign Statistics Groups for each Sales Document Item Type .....
    All Standard Reports which are available are as under:
    SAP Easy Access: Information Systems -> Logistics -> Sales and distribution ->
    1. Customer -> Incoming orders / Returns / Sales / Credit memos / Sales activities / Customer master / Conditions / Credit Master Sheet
    2. Material -> Incoming orders / Returns / Sales / Credit memos / Material master / ...
    3. Sales organization -> Sales organization / Sales office / Sales employee
    4. Shipping point -> Deliveries / Returns
    5. SD documents -> Orders / Deliveries / Billing documents ...
    & so on.
    Some of the Standard reports in SD are:
    Sales summary - VC/2
    Display Customer Hierarchy - VDH2
    Display Condition record report - V/I6
    Pricing Report - V/LD
    Create Net Price List - V_NL
    List customer material info - VD59
    List of sales order - VA05
    List of Billing documents - VF05
    Inquiries list - VA15
    Quotation List - VA25
    Incomplete Sales orders - V.02
    Backorders - V.15
    Outbound Delivery Monitor - VL06o
    Incomplete delivery - V_UC
    Customer Returns-Analysis - MC+A
    Customer Analysis- Sales - MC+E
    Customer Analysis- Cr. Memo - MC+I
    Deliveries-Due list - VL04
    Billing due list - VF04
    Incomplete Billing documents - MCV9
    Customer Analysis-Basic List - MCTA
    Material Analysis(SIS) - MCTC
    Sales org analysis - MCTE
    Sales org analysis-Invoiced sales - MC+2
    Material Analysis-Incoming orders - MC(E
    General- List of Outbound deliveries - VL06f
    Material Returns-Analysis - MC+M
    Material Analysis- Invoiced Sales - MC+Q
    Variant configuration Analysis - MC(B
    Sales org analysis-Incoming orders - MC(I
    Sales org analysis-Returns - MC+Y
    Sales office Analysis- Invoiced Sales - MC-E
    Sales office Analysis- Returns - MC-A
    Shipping point Analysis - MC(U
    Shipping point Analysis-Returns - MC-O
    Blocked orders - V.14
    Order Within time period - SD01
    Duplicate Sales orders in period - SDD1
    Display Delivery Changes - VL22

Maybe you are looking for

  • SSRS 2008 Line Chart Issue.

    We are facing an issue with SSRS 2008 charts. We have a report which shows dynamic number of series on a line chart. The data values may not exist for all series for the same x axis points. We expected SSRS to connect the missing points as average an

  • 2D Pixel Collision detection on XML tiled map

    Hello, I'm designing a game where the player can move through a city composed of 2D image tiles. Right now we have successfully got the pixel collision detection to work on a large single image consisting of an invisible mask image and a visible imag

  • Applicatio​n builder e run time

    To distribute my software created by application builder , I use "set up generator" program because I can use special colors, pictures and so on. Instead to run lvruntimeeng.msi (30Mb)separately, can I use only specific files (dll or something like t

  • Solaris 9 Sparc

    Has anyone downloaded the zipped ISO's for Solaris 9 Sparc? I completed all three downloads and created the CD's from the ISO's. The install disk works fine. I'm having trouble with disk 1, it seems to be corrupt. In fact the ISO claims to to be 564

  • 802.3ad (mode=4) bonding for RAC interconnects

    Is anyone using 802.3ad (mode=4) bonding for their RAC interconnects? We have five Dell R710 RAC nodes and we're trying to use the four onboard Broadcom NetXtreme II NICs in a 802.3ad bond with src-dst-mac load balancing. Since we have the hardware t