SlideShare une entreprise Scribd logo
1  sur  6
Télécharger pour lire hors ligne
How to…
                      Integrate an ABAP
               program in a process chain

                                                                    BUSINESS INFORMATION WAREHOUSE




                                          Applicable Releases: SAP BW 3.x
                                          June 2003
SAP (SAP America, Inc. and SAP AG) assumes no responsibility for errors or omissions in these materials.
These materials are provided “as is” without a warranty of any kind, either express or implied, including but not limited to, the
implied warranties of merchantability, fitness for a particular purpose, or non-infringement.
SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages
that may result from the use of these materials.
SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within
these materials. SAP has no control over the information that you may access through the use of hot links contained in these
materials and does not endorse your use of third party web pages nor provide any warranty whatsoever relating to third party
web pages.
mySAP BI “How-To” papers are intended to simplify the product implementation. While specific product features and
procedures typically are explained in a practical business context, it is not implied that those features and procedures are the
only approach in solving a specific business problem using mySAP BI. Should you wish to receive additional information,
clarification or support, please refer to SAP Professional Services (Consulting/Remote Consulting
HOW TO … INTEGRATE AN ABAP PROGRAM IN A PROCESS CHAIN




1 Business Scenario
You want to incorporate functionality in a process chain that is not provided by the delivered
process types. You can implement the needed functionality as an ABAP/4 program and do
not need a customer defined process type. For customer defined process types please refer
to the documentation of process chains.
This document describes the steps to incorporate an ABAP/4 program into a process chain.
The used example of deleting and recreating an existing secondary index of an ODS object
can be exchanged by any other example. The sample program does not claim to be
complete or correct.


2 The Step By Step Solution
The required functionality is implemented as an ABAP/4 program. The program is
incorporated in the process chain with the process type ‘ABAP program’ and the creation of
a respective variant for the program (if needed for the population of selection parameters for
the program).
The screen shots are taken from a BW 3.0B, Support Package 13, system.




2003 SAP AMERICA, INC. AND SAP AG                                                               1
HOW TO … INTEGRATE AN ABAP PROGRAM IN A PROCESS CHAIN


 1. Create an ABAP program

    Use transaction SE38 to
    implement your ABAP/4 program.
    Please see the Appendix for a
    sample source code of the sample
    program.
    If the program has selection
    parameters, you have to define a
    variant for the execution of the
    program.




 2. Creation of a variant
        a). Provide a name for the
        variant, and populate the
        parameter fields with the
        desired values.
        b). The attribute screen allows
        you to provide a description for
        the variant and to specify
        settings for the selection
        parameters of the program.




2003 SAP AMERICA, INC. AND SAP AG                      2
HOW TO … INTEGRATE AN ABAP PROGRAM IN A PROCESS CHAIN


 3. Definition of a process chain

    Press the respective icon in the
    Administrator Workbench ( ) or
    use the transaction RSPC. Create
    a new process chain, and provide
    a title and a description.



    NOTE: If you want to assign your
    process chain to a specific or new
    ‘display grouping’, you can do so
    by pressing the    icon.


 4. Assignment of a variant to the
    start process

    Every process chain needs a start
    process with a variant, which
    specifies the scheduling
    parameters of the process chain.
    Create either a new variant or re-
    use one of the already existing
    ones.




 5. Inclusion of the ABAP/4
    program

    After you have created the variant
    for the start process, include the
    ABAP/4 program as the next
    process type.
    You have to create a new variant
    for the process type or re-use an
    existing one.




2003 SAP AMERICA, INC. AND SAP AG                      3
HOW TO … INTEGRATE AN ABAP PROGRAM IN A PROCESS CHAIN


 6. Specification of program
    settings

    You specify the program to be run
    and the variant that the program
    should use (in case the program
    has selection parameters). The
    other settings are the same as for
    the background scheduling of any
    ABAP/4 program. For further
    information about those, please
    refer to the documentation of the
    ABAP/4 Workbench.




 7. Complete the process chain

    Complete the process chain as
    needed. The sample process
    chain shows the following
    processes:

    i.) Delete ODS object indexes
    ii.) Load data into ODS object
    iii.) Activate data of ODS object
    iv.) Recreate ODS object indexes
    (only if the activation of the data
    was successful)




2003 SAP AMERICA, INC. AND SAP AG                      4
HOW TO … INTEGRATE AN ABAP PROGRAM IN A PROCESS CHAIN


 8. Activate and execute the
    process chain

    In order to execute the process
    chain, you have to activate it ,
    and afterwards schedule it . The
    scheduling triggers also an
    automatic activation of the process
    chain.




3 Appendix
Sample code for an ABAP/4 program to delete and recreate the indexes of an ODS object
from the database. It does not delete the indexes from the ODS object maintenance.

*&---------------------------------------------------------------------*
*& Report ZZAK_ODS_INDEX_DELETE                                        *
*&                                                                     *
*&---------------------------------------------------------------------*
*&                                                                     *
*&                                                                     *
*&---------------------------------------------------------------------*

REPORT   ZZAK_ODS_INDEX_DELETE                    .

PARAMETERS: P_ODS TYPE   RSDODSOBJECT,    "Name of the ODS Object
            p_mode.                       "Call mode of program


Case P_mode.
  when 'D'.
* Delete index of ODS Object
    CALL FUNCTION 'RSSM_PROCESS_ODS_DROP_INDEXES'
      EXPORTING
        I_ODS         = P_ODS.
  when 'C'.
* Recreate indexes of ODS Object
    CALL FUNCTION 'RSSM_PROCESS_ODS_CREA_INDEXES'
      EXPORTING
        I_ODS         = P_ODS.
endcase.




2003 SAP AMERICA, INC. AND SAP AG                                                      5

Contenu connexe

Tendances

Planning guide sap business suite 7 2013 landscape implementation
Planning guide sap business suite 7 2013  landscape implementationPlanning guide sap business suite 7 2013  landscape implementation
Planning guide sap business suite 7 2013 landscape implementation
Leonardo Parpal Roig
 

Tendances (15)

Sap system landscape best practice
Sap system landscape best practiceSap system landscape best practice
Sap system landscape best practice
 
SAP HANA SPS10- Predictive Analysis Library and Application Function Modeler
SAP HANA SPS10- Predictive Analysis Library and Application Function ModelerSAP HANA SPS10- Predictive Analysis Library and Application Function Modeler
SAP HANA SPS10- Predictive Analysis Library and Application Function Modeler
 
SAP HANA SPS10- SAP HANA Development Tools
SAP HANA SPS10- SAP HANA Development ToolsSAP HANA SPS10- SAP HANA Development Tools
SAP HANA SPS10- SAP HANA Development Tools
 
Calnf
CalnfCalnf
Calnf
 
Planning guide sap business suite 7 2013 landscape implementation
Planning guide sap business suite 7 2013  landscape implementationPlanning guide sap business suite 7 2013  landscape implementation
Planning guide sap business suite 7 2013 landscape implementation
 
SAP System copy
SAP System copySAP System copy
SAP System copy
 
What's New in SAP HANA SPS 11 Operations
What's New in SAP HANA SPS 11 OperationsWhat's New in SAP HANA SPS 11 Operations
What's New in SAP HANA SPS 11 Operations
 
Step by step lsmw tutorial
Step by step lsmw tutorialStep by step lsmw tutorial
Step by step lsmw tutorial
 
Maximizing SAP ABAP Performance
Maximizing SAP ABAP PerformanceMaximizing SAP ABAP Performance
Maximizing SAP ABAP Performance
 
Whats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database CapabilitiesWhats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database Capabilities
 
What's new in SAP HANA SPS 11 SQL/SQLScript
What's new in SAP HANA SPS 11 SQL/SQLScriptWhat's new in SAP HANA SPS 11 SQL/SQLScript
What's new in SAP HANA SPS 11 SQL/SQLScript
 
How to run v3 job
How to run v3 jobHow to run v3 job
How to run v3 job
 
SAP HANA SPS09 - Backup and Recovery
SAP HANA SPS09 - Backup and RecoverySAP HANA SPS09 - Backup and Recovery
SAP HANA SPS09 - Backup and Recovery
 
Introduction to ABAP
Introduction to ABAPIntroduction to ABAP
Introduction to ABAP
 
Ale qm
Ale qmAle qm
Ale qm
 

En vedette

703 новый год
703 новый год703 новый год
703 новый год
msikanov
 
мама, папа,я
мама, папа,ямама, папа,я
мама, папа,я
msikanov
 
Vibee-言葉のいらないパジャマタイムコミュニケーションツール-
Vibee-言葉のいらないパジャマタイムコミュニケーションツール-Vibee-言葉のいらないパジャマタイムコミュニケーションツール-
Vibee-言葉のいらないパジャマタイムコミュニケーションツール-
Takako Ohshima
 
мероприятие по творчеству михалкова
мероприятие по творчеству михалковамероприятие по творчеству михалкова
мероприятие по творчеству михалкова
msikanov
 
чебурашка
чебурашкачебурашка
чебурашка
msikanov
 
выпускной вечер
выпускной вечервыпускной вечер
выпускной вечер
msikanov
 
торжественная линейка2pptx
торжественная линейка2pptxторжественная линейка2pptx
торжественная линейка2pptx
msikanov
 
снежная королева
снежная королеваснежная королева
снежная королева
msikanov
 
неделя детской книги
неделя детской книгинеделя детской книги
неделя детской книги
msikanov
 
отчет о проведении недели
отчет о проведении неделиотчет о проведении недели
отчет о проведении недели
msikanov
 
три поросенка
три поросенкатри поросенка
три поросенка
msikanov
 
ปกใช้ หน่วยที่ 5 การขัดและเคลือบผิวไม้1
ปกใช้ หน่วยที่ 5 การขัดและเคลือบผิวไม้1ปกใช้ หน่วยที่ 5 การขัดและเคลือบผิวไม้1
ปกใช้ หน่วยที่ 5 การขัดและเคลือบผิวไม้1
อำนาจ ศรีทิม
 

En vedette (20)

Storyboard kpd 3026
Storyboard kpd 3026Storyboard kpd 3026
Storyboard kpd 3026
 
Dreamsphere Trade Copier
Dreamsphere Trade CopierDreamsphere Trade Copier
Dreamsphere Trade Copier
 
Del Marketing Genérico a Ofertas relevantes y Personalizadas
Del Marketing Genérico a Ofertas relevantes y PersonalizadasDel Marketing Genérico a Ofertas relevantes y Personalizadas
Del Marketing Genérico a Ofertas relevantes y Personalizadas
 
703 новый год
703 новый год703 новый год
703 новый год
 
мама, папа,я
мама, папа,ямама, папа,я
мама, папа,я
 
Vibee-言葉のいらないパジャマタイムコミュニケーションツール-
Vibee-言葉のいらないパジャマタイムコミュニケーションツール-Vibee-言葉のいらないパジャマタイムコミュニケーションツール-
Vibee-言葉のいらないパジャマタイムコミュニケーションツール-
 
мероприятие по творчеству михалкова
мероприятие по творчеству михалковамероприятие по творчеству михалкова
мероприятие по творчеству михалкова
 
Dr Bacchus Featured Magazines
Dr Bacchus Featured MagazinesDr Bacchus Featured Magazines
Dr Bacchus Featured Magazines
 
чебурашка
чебурашкачебурашка
чебурашка
 
выпускной вечер
выпускной вечервыпускной вечер
выпускной вечер
 
торжественная линейка2pptx
торжественная линейка2pptxторжественная линейка2pptx
торжественная линейка2pptx
 
New Technologies
New Technologies New Technologies
New Technologies
 
Desarrollo de la Industria Tecnológica en Argentina
Desarrollo de la Industria Tecnológica en ArgentinaDesarrollo de la Industria Tecnológica en Argentina
Desarrollo de la Industria Tecnológica en Argentina
 
Pekka karhunen fin
Pekka karhunen finPekka karhunen fin
Pekka karhunen fin
 
снежная королева
снежная королеваснежная королева
снежная королева
 
неделя детской книги
неделя детской книгинеделя детской книги
неделя детской книги
 
отчет о проведении недели
отчет о проведении неделиотчет о проведении недели
отчет о проведении недели
 
012.safetymanagement v3
012.safetymanagement v3012.safetymanagement v3
012.safetymanagement v3
 
три поросенка
три поросенкатри поросенка
три поросенка
 
ปกใช้ หน่วยที่ 5 การขัดและเคลือบผิวไม้1
ปกใช้ หน่วยที่ 5 การขัดและเคลือบผิวไม้1ปกใช้ หน่วยที่ 5 การขัดและเคลือบผิวไม้1
ปกใช้ หน่วยที่ 5 การขัดและเคลือบผิวไม้1
 

Similaire à sap

Variables in sap bi
Variables in sap biVariables in sap bi
Variables in sap bi
shabari76
 
Troubleshooting Your ABAP Programs Using Coverage Analyzer
Troubleshooting Your ABAP Programs Using Coverage AnalyzerTroubleshooting Your ABAP Programs Using Coverage Analyzer
Troubleshooting Your ABAP Programs Using Coverage Analyzer
zahack
 
SAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdfSAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdf
KoushikGuna
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflows
Hicham Khallouki
 
Rda step by step
Rda   step by stepRda   step by step
Rda step by step
Phani Kumar
 
Enhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAPEnhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAP
Aabid Khan
 

Similaire à sap (20)

Co pa extraction
Co pa extractionCo pa extraction
Co pa extraction
 
Copy b wsimple
Copy b wsimpleCopy b wsimple
Copy b wsimple
 
Usgage of ABAP in BI
Usgage of ABAP in BIUsgage of ABAP in BI
Usgage of ABAP in BI
 
Badi
BadiBadi
Badi
 
Programming Interface & SAP BDC
Programming Interface & SAP BDCProgramming Interface & SAP BDC
Programming Interface & SAP BDC
 
Variables in sap bi
Variables in sap biVariables in sap bi
Variables in sap bi
 
Troubleshooting Your ABAP Programs Using Coverage Analyzer
Troubleshooting Your ABAP Programs Using Coverage AnalyzerTroubleshooting Your ABAP Programs Using Coverage Analyzer
Troubleshooting Your ABAP Programs Using Coverage Analyzer
 
Asset accounting
Asset accountingAsset accounting
Asset accounting
 
SAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdfSAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdf
 
J11_S4CLD2208_BPD_EN_US.docx
J11_S4CLD2208_BPD_EN_US.docxJ11_S4CLD2208_BPD_EN_US.docx
J11_S4CLD2208_BPD_EN_US.docx
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflows
 
Functional module
Functional moduleFunctional module
Functional module
 
_Using Selective Deletion in Process Chains.pdf
_Using Selective Deletion in Process Chains.pdf_Using Selective Deletion in Process Chains.pdf
_Using Selective Deletion in Process Chains.pdf
 
Rda step by step
Rda   step by stepRda   step by step
Rda step by step
 
Cellediting bex
Cellediting bexCellediting bex
Cellediting bex
 
Enhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAPEnhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAP
 
Sap srm
Sap srm Sap srm
Sap srm
 
Srm 6.0
Srm 6.0Srm 6.0
Srm 6.0
 
SAP Overview and Architecture
SAP Overview and ArchitectureSAP Overview and Architecture
SAP Overview and Architecture
 
SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewer
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Dernier (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

sap

  • 1. How to… Integrate an ABAP program in a process chain BUSINESS INFORMATION WAREHOUSE Applicable Releases: SAP BW 3.x June 2003 SAP (SAP America, Inc. and SAP AG) assumes no responsibility for errors or omissions in these materials. These materials are provided “as is” without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within these materials. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third party web pages nor provide any warranty whatsoever relating to third party web pages. mySAP BI “How-To” papers are intended to simplify the product implementation. While specific product features and procedures typically are explained in a practical business context, it is not implied that those features and procedures are the only approach in solving a specific business problem using mySAP BI. Should you wish to receive additional information, clarification or support, please refer to SAP Professional Services (Consulting/Remote Consulting
  • 2. HOW TO … INTEGRATE AN ABAP PROGRAM IN A PROCESS CHAIN 1 Business Scenario You want to incorporate functionality in a process chain that is not provided by the delivered process types. You can implement the needed functionality as an ABAP/4 program and do not need a customer defined process type. For customer defined process types please refer to the documentation of process chains. This document describes the steps to incorporate an ABAP/4 program into a process chain. The used example of deleting and recreating an existing secondary index of an ODS object can be exchanged by any other example. The sample program does not claim to be complete or correct. 2 The Step By Step Solution The required functionality is implemented as an ABAP/4 program. The program is incorporated in the process chain with the process type ‘ABAP program’ and the creation of a respective variant for the program (if needed for the population of selection parameters for the program). The screen shots are taken from a BW 3.0B, Support Package 13, system. 2003 SAP AMERICA, INC. AND SAP AG 1
  • 3. HOW TO … INTEGRATE AN ABAP PROGRAM IN A PROCESS CHAIN 1. Create an ABAP program Use transaction SE38 to implement your ABAP/4 program. Please see the Appendix for a sample source code of the sample program. If the program has selection parameters, you have to define a variant for the execution of the program. 2. Creation of a variant a). Provide a name for the variant, and populate the parameter fields with the desired values. b). The attribute screen allows you to provide a description for the variant and to specify settings for the selection parameters of the program. 2003 SAP AMERICA, INC. AND SAP AG 2
  • 4. HOW TO … INTEGRATE AN ABAP PROGRAM IN A PROCESS CHAIN 3. Definition of a process chain Press the respective icon in the Administrator Workbench ( ) or use the transaction RSPC. Create a new process chain, and provide a title and a description. NOTE: If you want to assign your process chain to a specific or new ‘display grouping’, you can do so by pressing the icon. 4. Assignment of a variant to the start process Every process chain needs a start process with a variant, which specifies the scheduling parameters of the process chain. Create either a new variant or re- use one of the already existing ones. 5. Inclusion of the ABAP/4 program After you have created the variant for the start process, include the ABAP/4 program as the next process type. You have to create a new variant for the process type or re-use an existing one. 2003 SAP AMERICA, INC. AND SAP AG 3
  • 5. HOW TO … INTEGRATE AN ABAP PROGRAM IN A PROCESS CHAIN 6. Specification of program settings You specify the program to be run and the variant that the program should use (in case the program has selection parameters). The other settings are the same as for the background scheduling of any ABAP/4 program. For further information about those, please refer to the documentation of the ABAP/4 Workbench. 7. Complete the process chain Complete the process chain as needed. The sample process chain shows the following processes: i.) Delete ODS object indexes ii.) Load data into ODS object iii.) Activate data of ODS object iv.) Recreate ODS object indexes (only if the activation of the data was successful) 2003 SAP AMERICA, INC. AND SAP AG 4
  • 6. HOW TO … INTEGRATE AN ABAP PROGRAM IN A PROCESS CHAIN 8. Activate and execute the process chain In order to execute the process chain, you have to activate it , and afterwards schedule it . The scheduling triggers also an automatic activation of the process chain. 3 Appendix Sample code for an ABAP/4 program to delete and recreate the indexes of an ODS object from the database. It does not delete the indexes from the ODS object maintenance. *&---------------------------------------------------------------------* *& Report ZZAK_ODS_INDEX_DELETE * *& * *&---------------------------------------------------------------------* *& * *& * *&---------------------------------------------------------------------* REPORT ZZAK_ODS_INDEX_DELETE . PARAMETERS: P_ODS TYPE RSDODSOBJECT, "Name of the ODS Object p_mode. "Call mode of program Case P_mode. when 'D'. * Delete index of ODS Object CALL FUNCTION 'RSSM_PROCESS_ODS_DROP_INDEXES' EXPORTING I_ODS = P_ODS. when 'C'. * Recreate indexes of ODS Object CALL FUNCTION 'RSSM_PROCESS_ODS_CREA_INDEXES' EXPORTING I_ODS = P_ODS. endcase. 2003 SAP AMERICA, INC. AND SAP AG 5