Limitation in BAPI Scheduling Agreement (SA) Create or Change

Similar documents
Create or Change Scheduling Agreement Using Standard SAP BAPI

Internationalization in WebDynpro ABAP Applications

POWL: Infoset Generation with Web Dynpro ABAP

Easy Lookup in Process Integration 7.1

Load Info Cube in SCM 5.0 (BI 7.0)

Creating, Configuring and Testing a Web Service Based on a Function Module

Graphical Mapping Technique in SAP NetWeaver Process Integration

How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP

Material Master Archiving in Simple Method

MDM Syndicator: Custom Items Tab

Integration of Web Dynpro for ABAP Application in Microsoft Share Point Portal

DB Connect with Delta Mechanism

How to Configure User Status in mysap SRM

This article explains the steps to create a Move-in letter using Print Workbench and SAPScripts.

Step by Step Procedure for DSO Creation

About ITAB Duplicate_Key (SAP lrsaods) Runtime Error

Using Radio Buttons in Web Template

BAPI Execution in offline Adobe Form

Open Text DocuLink Configuration - To Access Documents which are Archived using SAP

Table Row Popup in Web Dynpro Component

Extracting Missing Fields of Data Source Which Are Present In Their Extract Structure

Standalone BW System Refresh

Material Listing and Exclusion

MDM Import Manager - Taxonomy Data (Attribute Text Values) Part 3

Triggering the Process Chains at Particular Date using Events

SDN Community Contribution

Add /Remove Links on ESS Home Page in Business Package 1.5

Extraction of Hierarchy into Flat File from R/3 and Loading in BW System

How to Default Variant Created for Report Developed In Report Painter/Writer

How to Reference External JAR Files in Web Dynpro DC in SAP NW Portal 7.3

Purpose of Goods Receipt Message indicator in Purchase Orders

Data Flow During Different Update Mode in LO Cockpit

Xcelsius Tricks Part 5 Create a Loading Bar in SAP Crystal Dashboard and Presentation Design (Xcelsius 2008)

Linking Documents with Web Templates

Web Dynpro: Coloring Table Conditionally

Data Extraction & DS Enhancement in SAP BI Step by Step

Creation of Sets in SAP-ABAP, How to Read them INI SAP-ABAP Reports

Material Master Extension for New Plant

Errors while Sending Packages from OLTP to BI (One of Error at the Time of Data Loads through Process Chains)

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

Transfer Material Attributes (Material Type) from R/3 to SAP GRC Global Trade Services (GTS)

Solution to the Challenges in Pivoting

Financial Statement Version into PDF Reader

How to Create and Schedule Publications from Crystal Reports

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

Fetching User Details from the Portal and Displaying it in Web Dynpro with Authentication in the Portal

ABAP HR: Standard Info Type Enhancement

SMT (Service Mapping Tool)

A Step-by-Step Guide on IDoc-ALE between Two SAP Servers

Performance Management in Data Loading: an Overview

Process Chain Log Deletion

Step by Step Method for File Archival in BW

SUP: Personalization Keys and Synchronize Parameter

Universal Worklist - Delta Pull Configuration

Displaying SAP Transaction as Internet Application in Portal

Message Prioritization in Advanced Adapter Engine

Step-By-Step guide to Virtual InfoCube Implementation

Reporting Duplicate Entries

Web Dynpro ABAP: Dynamic Table

Creation of Key Figures with Higher Decimal Place Precision

Recreating BIA Indexes to Address the Growth of Fact Index Table

Download SAP Query Output to Local/ Network Folders in Background

How to use Boolean Operations in the Formula as Subsidiary for IF Condition

How to Display Result Row in One Line While Reporting On Multiproviderer

Step By Step: the Process of Selective Deletion from a DSO

Replacement Path: Explained with an Illustrated Example

Analysis Process Designer (APD) Step by Step Business Intelligence

Step By Step Procedure to Implement Soap to JDBC Scenario

Upload Image file from system in Web dynpro view

Adding Files as Attachments to SAP Interactive Forms in the Java Environment

SDN Community Contribution

Server Connectivity and Data Load from Non SAP System to BW

Totals in Adobe forms

Step by Step Guide on How to Use Cell Definition in BEx Query

How to Create View on Different Tables and Load Data through Generic Datasource based on that View

ABAP: Table Maintenance Events

SDN Community Contribution

Web Dynpro ABAP: Changing ALV Contents and Saving in Database

Validity Table in SAP BW/BI

Reading Enhanced DataSource fields for the Remote Cube

Changing the Source System Assignments in SAP BW Objects without Affecting the Data Modeling

Table Properties and Table Popin

Open Hub Destination - Make use of Navigational Attributes

Deploying BusinessObjects Explorer on Top of a SAP BI Query

ecatt Part 6 System Data Container

How to Create and Execute Dynamic Operating System Scripts With XI

Using Rule Group in SAP-BI. Part - 1

Step by Step Guide for PI Server Start and Stop Procedure

Step by Step Guide How to Use BI Queries in Visual Composer

Printer Landscape Made Easy!!

Information Broadcasting Part 3 Scheduling the First Report

Methods of Selecting BOM Variant Parts in Variant Configuration

Exception Handling in Web Services exposed from an R/3 System

Currency Translation in SAP BI Step by step Guide

Setting up Connection between BW and R/3 for Data Load

Freely Programmed Help- Web Dynpro

Dynamically Enable / Disable Fields in Table Maintenance Generator

Database Statistics During ODS Activation

SAP BI BO Unit/Currency Logic for Unknown Units Case Study

Administrating ABAP+JAVA and SLD Problems of SAP PI 7.1

Transcription:

Limitation in BAPI Scheduling Agreement (SA) Create or Change Applies to: SAP ECC 6.0.For more information, visit the ABAP homepage. Summary The article describes the limitations in standard SAP BAPIs to create or change Scheduling Agreements with multiple line items, each of which having multiple conditions. Author: Saba Sayed Company: Larsen & Toubro Infotech Limited Created on: 07 th August 2009 Author Bio Saba Sayed is SAP certified NetWeaver ABAP Consultant, working in Larsen & Toubro Infotech Limited. She has more than three years of SAP experience and has worked extensively in ABAP, OO ABAP, Workflow, ALE / IDoc and SAP SRM. 2009 SAP AG 1

Table of Contents Business Requirement... 3 1. Issue... 3 2. Function Module... 3 3. Data... 3 4.1 Header... 3 4.2 Item... 4 4.3 Condition Validity:... 4 4.4 Conditions:... 5 4. Observation:... 6 5. Analysis:... 6 6. Output:... 7 7.1 Header Data:... 7 7.2 Item Data:... 7 7.3 Condition Data:... 8 7. Conclusion:... 8 Related Content... 9 Disclaimer and Liability Notice... 10 2009 SAP AG 2

Business Requirement Create or change Scheduling Agreement with multiple line items, each of which is having multiple conditions, using function module/bapi. 1. Issue Multiple SA conditions for multiple line items are not created at a time using BAPIs BAPI_SAG_CREATE / BAPI_SAG_CHANGE. 2. Function Module BAPI_SAG_CREATE enables you to create a scheduling agreement. The BAPI uses the technology behind the SA creation transaction (ME31L). BAPI_SAG_CHANGE enables you to change a scheduling agreement. The BAPI uses the technology behind the SA change transaction (ME32L). 3. Data 4.1 Header Set flag in HEADERX table. 2009 SAP AG 3

4.2 Item Item 00010 and 00020 Set respective flags for both the line items in ITEMX table. 4.3 Condition Validity: Set respective flags for both the line items in ITEM_COND_VALIDITYX table. 2009 SAP AG 4

4.4 Conditions: Item 00010: Item 00020: table. Set respective flags for both the line items and its respective conditions in ITEM_CONDITIONX 2009 SAP AG 5

4. Observation: At the time of SA creation/change, if multiple line item data along with its respective (multiple) conditions were passed to BAPI_SAG_CREATE, only PB00 condition was added to first line item. For the rest of the line items conditions were not added. 5. Analysis: On debugging the BAPI, to check the point where conditions data was added / created for the SA, it was observed that for multiple line items, the ID number [ID_KONH] was the same. See snapshot below: First two records for conditions are for the first record. Last two records for conditions are for the second record. Due to this, when code was checking the data consistency between corresponding, at that time due to same ID number, it was switching to Duplicate number error and exiting from conditions creation after executing first condition (PB00) for first line item. 2009 SAP AG 6

Exit from conditions creation at this point. 6. Output: Go to transaction ME33/ME33L to check SA. 7.1 Header Data: 7.2 Item Data: 2009 SAP AG 7

7.3 Condition Data: Item 00010: Only first condition of PB00 added to line item condition. Second condition for ZHC3 is not added. Item 00020: No conditions added to Item 00020. Net price is 0 in item level. 7. Conclusion: We can create one SA line item with multiple conditions at a time. 2009 SAP AG 8

Related Content http://help.sap.com/saphelp_erp60_sp/helpdata/en/75/ee1fa755c811d189900000e8322d00/frameset.htm For more information, visit the ABAP homepage. 2009 SAP AG 9

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2009 SAP AG 10