Free SAP Training & Tutorial A Free SAP Functional And Technical Tutorial And Training For ABAP, SAP QUERY, ALV, SMARTFORMS, SD, PP, MM, QM, FICO
31.08.2010 | Author: | Posted in BAPI 

This BAPI function is used to call the transcation code MM02 to edit material.
First it will check whether or not the material exist in MAW1, if it does exist then it will call transaction MM02 but if it didn’t exist then it will call transaction MM24.

In this ABAP sample code, there’s an option where you can skip the first screen, if you check it then you will be prompted with a select views data.

Report Z_MATERIAL_EDIT.

Parameters: p_matnr like BAPIMATALL-MATERIAL,
p_fscrn like BAPIMATALL-SKIP_1ST_SCREEN.

Data: d_ret like BAPIRET1.

CALL FUNCTION ‘BAPI_MATERIAL_EDIT’
EXPORTING
MATERIAL             = p_matnr
SKIP_1ST_SCREEN       = p_fscrn
IMPORTING
RETURN                = d_ret
.
if sy-subrc = 0.

endif.

Run the program (F8), enter the material number and check the first screen checkbox if you want to skip the first screen.

31082010-editmaterial-01

Now you will see the transaction MM02 is executed with the select views data appeared (Skipping the first screen).

31082010-editmaterial-02

Popularity: 1% [?]

 


 
 

Related Tutorial " BAPI" 

  •  
     
    Recent Tutorials
    Create Table Maintenance Display In SAP Create table display to maintain tables values using SM30
    Create Table Maintenance Generator In SAP Maintaining SAP Transparent table values using maintenance generator
    Table Relationship In SAP Learn How To Find Tables Relationships in SAP
    Convert Number To words Using ABAP Find out how to convert numbers into words Using ABAP
    How To Maintain Long Text Object in SAP Maintain long text object in SAP
    How To Know What TCODE Used In ABAP Program Find TCODE For your ABAP Program Report
    How does CRM Work? Learn how CRM system works to run your business
    Why SAP CRM is the Best Choice? The reasons why CRM application is the best choice
    Difference Between CRM System and CRM Strategy What's the difference between CRM system and its strategy
    CRM for a Better Customer Service Learn how CRM could make your customer service much better
    Costs of Implementing CRM Software Learn the how much cost you need to prepare when implementing CRM
     
    Popular Tutorials
  • (none)
  •  
    Categories
    ABAP   Basis & Configuration  
    ALV SAP BW (Business Warehouse)
    BAPI   SAP Interview Questions
    SAP Tables   SAP Overview
    Transaction Codes FI SAP Query
      MM SAP Script  
      PP SAP Tutorial FI Module
      QM   MM Module
      SD   PM Module
    SAP Functional MM   PP Module
      SD   QM Module
    White Papers     SD Module
    Uncategorized   SmartForms  
      User-Exits  
     
     

     

    Home | About | Contribute | Privacy

    Copyright 2011 freesaptutorial.com.

    Free SAP Tutorial is not associated with SAP AG in Germany or in any other country.

    SAP is a registered trade mark of SAP AG.