How to run the BAPI after creation or Modification ?

HI Abapers,
How to run the BAPI after creation or Modification ? What is the step by step procedure to run the the BAPI?
Immediate reply is highely appriciable.
Regards,
Chow.

Hi
If you have done with BAPI creation correctly Run it similar to the fun mdule which we run in SE37 calling this BAPi in the program with CALL FUNCTION and passing the necessary parameters
see the sample bapi code how it is called in Program
data : w_resb_header like bapirkpfc.
data: begin of itab_resb occurs 0.
include structure bapiresbc.
data: end of itab_resb.
data: begin of itab_bapi_return occurs 0.
include structure bapireturn.
data: end of itab_bapi_return.
data : w_resb_no like bapirkpfc-res_no.
w_resb_header-plant = p_werks.
w_resb_header-res_date = sy-datum.
w_resb_header-created_by = sy-uname.
w_resb_header-cost_ctr = '0000010001'.
w_resb_header-move_type = '201'.
w_resb_header-gr_rcpt = w_room_time.
w_resb_header-part_acct = 'OR'.
*ITEM DATA
loop at i_details.
itab_resb-material = i_details-matnr.
itab_resb-plant = i_details-werks.
itab_resb-store_loc = i_details-lgort.
itab_resb-quantity = i_details-qty.
itab_resb-unit = i_details-meins.
append itab_resb.
clear itab_resb.
clear i_details.
endloop.
call function 'BAPI_RESERVATION_CREATE'
exporting
reservation_header = w_resb_header
NO_COMMIT =
MOVEMENT_AUTO =
importing
reservation = w_resb_no
tables
reservation_items = itab_resb
return = itab_bapi_return
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'
IMPORTING
RETURN =    .
wait up to 5 seconds.
w_resb_no contains your reservations numnber
Regards
Anji

Similar Messages

  • How to run media file after Runtime.exc the real player?

    Hi
    How to run media file after Runtime.exc the real player application

    String command = "cmd /c start videotest.rm";
    Runtime.getRuntime().exec(command);

  • How to run the cocoa app directly after completion of downloading ?

    Hi ,
    How to run the cocoa app directly on mac after completion of downloading ? I have a .app at server , I want to run the .app automatically after download and the .app should not save at download directories .
    Thanks

    hi,
    There is no need to burn on Disk..instead run the runInstaller file fiom Disk1/install..please read the readme.txt file before installation..
    check the kernel parameter and Even set the DISPLAY before installtion,in order to get proper GUI
    Regards
    Fabian

  • How to run the VC application which is deployed

    Hi  All,
    I am new to the VC. I created one model, and i have added some data service and view. and i compiled and deployed. I am not able to find , how to run that deployed application.
    Can any body tell me how to run the deployed VC application.
    Regards
    Vijay

    Hi Vijay,
    go after you have deployed to Deploy on the right side of the VC. There you have to see "see source code" and "Run name of your application". Put your mouse at run and the application will start.
    Another way ist to put the Button "Deploy Model " (it is the picture with the running man) in the 2second menu line. If you do this, the modell will start automatically, if it has no errors.
    Regards
    Thomas

  • How to run the payroll

    Hi SAP Gurus,
    Can any body help me out how to run the payroll , i created Payroll area, ABKRS, Control record, after this what should i do, how to run the confgration , i configared, pls let me know
    Thanks
    Manju20099

    Hi,
    Please find the below link :
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/bb/db0b1a4a3011d189490000e8323c4f/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/DE/30/2f7d0e87915347ac458ca58b4702ce/frameset.htm
    Regards
    Sreedhar Reddy

  • How to run the V3 job?

    Hi,
       Please let me to know how to run the pending V3 jobs.
    Scenario : Inventory controlling extraction
    Regards
    Santhosh kumar N

    Hi,
    In LBWE --> 03:Inventory -->click on Job Control, and click on Start Date, and give your parameters i,e, date and time and also give Periodic values, i.e. ever day or after some hours like that and then Click on Print param then Click Schedule Job. Then check the status in SM37.
    After suceess then check in RSA7. And load data in BW.
    Note: For every day delta loads, you need fix Periodic values, because every day you need not to go LBWE and run manually Immediate option. And also loads will happen in night only. So schedule it and also set Processc hain in BW for Loads.
    Thanks
    Reddy

  • How can run the report SAP_INFOCUBE_DESIGN?

    hI gURUS
    To know about the DIM Table size
    How can run the report SAP_INFOCUBE_DESIGN?
    Thanks
    Cheers
    Durai

    Function (se37):
    RSDEW_INFOCUBE_DESIGNS
    Try to see/run this function in order
    to get statistic about one InfoCube
    How to determine the size of DIM?
    From this Function u can determine
    how many rows in DIM u have.
    After this u can determine size of DIM table:
    ROWS * (How many Bytes are in one row) = Size of table.
    In order to determine how many Bytes are in one row,
    u can see transaction se11 -> Database table -> Tabkle name of DIM -> Display -> Fields -> just add the length*Bytes for all fields in this table.
    BR

  • How to run statement b after ensuring statement a is finished?

    statement a
    statement b
    How to run statement b after ensuring statement a is finished?

    s021126 wrote:
    The program start the timer when the connection is not finished.Then connect() returns before it connected.
    Since Ranking is not a class from the JDK, we can't tell you what it does.
    How can I do?Check with whoever gave you the Ranking class.

  • How to run the form that is only installed on a PC and not using a server?

    Hi
    I am new to Oracle and have taken the forms class. But I do not understand how to run the form from my PC using XP windows. (Do not have access to a server).
    I have started the OC4J, made sure the listener was started, compiled the form and then when I run it, it automatically goes to the HTTP:
    ERROR: res://ieframe.dll/acr_depnx_error.htm#,http://kevin:8889/forms/frmservle
    I connected to the database correctly. I can process a report and it does nor try to access the internet. My only issue is running the form. I verified it compiled.
    Sorry for a basic question. Could someone please help, I tried reviewing other questions, but not sure if they are connecting to a server or not.
    I see webutil but is it required if I don't have a server? Thank you in advance.

    Regardless of the version, it appears that you may not have configured the Builder. Do the following:
    1. Open the Builder
    2. From the menu, select Edit > Preferences > Runtime
    3. In the box labeled "Application Server URL:", enter a local URL needed to run a form OR click the button labeled "Reset to Default". If you decide to manually enter a value, it would looks something like this:
    http://localhost:8889/forms/frmservlet
    4. In the field labeled "Web Browser Location:", enter the path and executable to your preferred browser. So for example if IE is your browser of choice the entry would most likely look like this:
    C:\Program Files\Internet Explorer\IEXPLORE.EXE
    5. Click on OK and retest.
    By the way, you can manually enter a URL in the browser. Clicking the RunForm button from the Builder is strictly optional. To run the "test" form directly from the browser enter the following into the browser's address field:
    http://localhost:8889/forms/frmservlet?form=test
    More information about Forms can be found on OTN:
    http://www.oracle.com/technology/products/forms/index.html

  • How to run the ejb project in j2ee server

    How to run the EJB project.
    I give like
    java conveterClient converterClient.jar
    here conveterClient is class file name and converterClient.jar is deployed file
    like wise i give some exception is come
    give some help pls friends

    Navigate to the "DBOrders" module in the catalog, right click on the "ORDERS" database below and click "Export Schema Stucture". That will produce a file containing the DML needed to create the database

  • HOw to run the Applet in dos mode

    how to run the applet in Command Prompt(DOS).
    I have save this in directory D/vijay/javap/A.java and my JDK is in C drive.
    Plz send me reply as soon as possible.
    My code is :-
    import java.applet.*;
    import java.awt.*;
    public class A extends Applet
    private int w, h;
    public void init( )
         w = 45;
         h = 50;
    public void paint(Graphics g)
         g.drawRect(w, h, 20, 80);
    }

    import java.applet.*;
    import java.awt.*;
    public class A extends Applet
    private int w, h;
    public void init( )
    w = 45;
    h = 50;
    public void paint(Graphics g)
    g.drawRect(w, h, 20, 80);
    <applet class="A" height="200" width="200" code="A.class">
    </applet>
    */And in command prompt
    javac A.java
    appletviewer A.java
    Message was edited by:
    passion_for_java

  • How to run the programes in NetBeans

    any body know how to run the java progarm in NetBeans.
    can u please guide me?
    Advance in thanks

    thanks for ur reply.
    this is my code.
    public class sample11 {
    /** Creates a new instance of sample11 */
    public sample11() {
    public static void main(String args[])
    System.out.println("nithya");
    i did watever u told. but i don't have o/p. wat can i do? how to it display the o/p?

  • How to run the query in  screen painter

    i am using the patch 36 in business one so pls give information  about 
       how to run the query in  screen painter 
    regard
      sandip adhav

    Hope u have reached Screen painter interface,
    1. Click 'Add Grid' from tool bar.
    2. Go to 'Collections' tab in 'Properties' window.
    3. Choose 'Data Tables' from the Drop down list.
    4. Click 'New' found at the bottom of the Properties Window(same window)
    5. U'll find the place to insert ur query.
    6. U can rename the table name from 'DT_0'
    7. Choose type as 'Query'
    8. Clear content from box 'Query'
    9. Enter ur query there. Dont forget to Click 'SET'
    10. Go to Preview option from tool bar.
    now ur query will be displayed as table format.
    Note: First try with simple query b4 going for linking option.
    Regards,
    Dhana.

  • How to run the smsserver in xp

    hi friends,
    May i know, how to run the smsserver in windows xp...

    What smsserver?
    Please ask detailed questions.

  • How to run the Invoices in different groups within the batch in AP

    Need to know that how to run the Invoices in different groups within the batch. This will be of very helpful when we deal with lot of lines under one batch. (e.g) like somewhere we issued a Corporate Card to all the employees Via Bank Of America. Every Month they will send the complete details of all the employees who ever swiped the corporate provided BOA. Accordding to Natco all those lines should be loaded as One Invoice so that a Single Payment can be provided to BOA and it will also makes their life easier. This standard program sometimes it works normal sometimes it will run like a TORTOISE. So thats why in the manual they suggested to use GROUP ID to split the Invoice Load.
    So plz tell me how we can run it
    plz give me the solution
    thanks

    can you give me some material or document on that so that i can read actuaaly i need to make doc on it..

Maybe you are looking for

  • Can no longer edit text in my table on pages

    I just finished a mammoth report in Pages for which I used a table format for all the verbiage. I am now going back to edit some of the text in the table but when you click on the cell where the existing text is, it goes "white", and you can't edit w

  • How can you download premier pro when the icon doesn't exist in cloud?[was:pr]

    how can you download premier pro when the iucon doesent exist in cloud???

  • Mail doesn't send half the time

    My SMTP server is TalkTalk ( UK) and when I send mail it works fine... half the time. The other half I get the 'sending' wheel spinning. nothing in my activity window, and eventually the following alert: <Cannot send message using the server smtp.tal

  • Filter Render Clouds won't use BG, FG colors

    Hi. I'm having trouble getting the Render > Clouds filter to use the bright and dark colors I've specified for the background and foreground colors. Every time I apply the filter on an empty layer I get a gray scale graphic. Would someone please tell

  • File.exists() - new filename

    Hi all, I'm looking for a method which creates a new fileName, if a file in a Directory already exists. if the oldfileName is "file1.txt" the new Filename should be "file2.txt" String newFilename = ""; if (file.exists()) newFilename  = createNewFilen