How to create package?

Hi All,
I'm new to ABAP and want to create a package for BAPI.
While creating package in SE80, I't shows a message
"cannot select component".
The details i'm filling in the package window creation are as given below:
Package:                     <package name>
Short Description:         <Description>
Application Component:  BC-DWB
S/W Component:            HOME
Transport Layer:              SAP
Package Type:                Main Package
Plz Help. Thanks in Advance.

Hi
FOr package creation:
Go to TC Code :  SE21
Ex : for creating a package:
Package : ZBAPI
Choose  Create  option
Then its asking about following deatails
Package :  ZBAPI
Description: Give some descrion
Application Component: SD
Software Component: HOME
Transport Layer: SAP
Package TYPE: Not a main package
then save .
then continue.
By  this procedure successfully package will be created .
Then Go to  TC Code SWO1( for BAPI creation)
Object Type : ZBAPI1
choose Create
Then give the following values
Object Type:ZBAPI1
Object Name : ZBAPI1
Name::ZBAPI1
Description: Give some descrion
Program :zbapi_prog
Application:  *   (Crossed Application)
Then contiue.
Its give a pop up asking for package name.
Package :ZBAP I   ( In SE21,Previously created package name )
Then Save
A pop up comes
Press continue.
Then
Utilitties ->API methods ->Add method
Give ur function module name
Then continue.
Then a pop appears
press  " >"
press  ">"
then yes
A method will be created.
double click on that method
select ABAP tab
Choose  API function.
then
EDit->Change in release status->Object type->modeled.
EDit->Change in release status->Object type->implemented.
EDit->Change in release status->Object type->released.
EDit->Change in release status->Object type componenet ->modeled.
EDit->Change in release status->Object type componenet ->implemented.
EDit->Change in release status->Object type componenet ->released.
Two pop ups comes press yes .
Click on Generate Button
Successfully BAPI will be created
for check this go for TC code BAPI
choose alphabetic order
check ur bapi name is there or not.
For testing ur bapi
Go to SE21
place ur bapi name and press execute
give ur fields content and press execute
you will find some entries there.

Similar Messages

  • How to create package and import from jar file?

    Hi all,
    I am writing a software and I am not sure how to create a package for the classes.
    Say I have two classes in the same directory as follows:
    testA.java
    ==========
    package AB;
    public class testA
    public static void main(String[] args){
         testB myB = new testB();
         System.out.println("A test");
    testB.java
    ===========
    package AB;
    public class testB
    public testB(){
         System.out.println("B constructor");
    both file compile without the package heading;
    both file compile using: javac -classpath .\ *.java
    Question 1:
    I cannot run testA by: java -classpath .\ testA
    I think it is a syntax error. What is the correct one?
    If I run testA by: java testA
    The only output I get is: A test
    But I am expecting: B constructor /n A test
    What went wrong?
    Question 2:
    I need to use APIs of another software. I have downloaded a .jar file (xxx.jar) with all the classes in it. And I have put "import xxx.*;" in my source file. But the compiler complains about the importing. What is the right way to copmile it?
    I have read a couple of tutorials but they don't answer my question.
    (I am using windows2000 and don't have the classpath variable.)
    Hope some one can help.
    Thanks a lot

    Try moving testA out of the package and importing 'AB.*;'
    If you have:
    ./testA.class
    ./AB/testb.class
    Then to execute testA from ./ type: java -cp . testA

  • How to create package class ..

    Dear firend,
    I have created the packge file under /home/in/package/Time1.java
    Time1.java:
    package in.package;
    public class Time1 {
    public static String name="Package Testing";
    public void assign_name(String val) {
    name=val;
    public String get_name() {
    return name;
    public static void main(String args[]) {
    Time1 obj=new Time1();
    obj.assign_name("Testing");
    System.out.println(obj.get_name());
    Then I have tried to access this package file from home directory.
    package_test.java
    import co.in.bksys.packaging.Time1;
    *public class package_test {*
    * public static void main(String args[]) {*
    //in.package.Time1 time_test=new in.package.Time1();
    Time1 time_test=new Time1();
    * time_test.assign_name("Leslie Samuel");*
    * String my_name=time_test.get_name();*
    * System.out.println(my_name);*
    I have compiled this file from the home direcory.
    *$ javac -classpath in/package/ package_test.java*
    It was displayed this below error:
    =========================
    * package_test.java:1: package in.package does not exist*
    import in.package.Time1;
    * ^*
    package_test.java:8: cannot access Time1
    bad class file: in/package/Time1.java
    file does not contain class Time1
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    * Time1 time_test=new Time1();*
    * ^*
    *2 errors*
    but if i used this below line in the package_test.java file insted of using this Time1 time_test=new Time1(); .
    It will work perfectly.
    in.package.Time1 time_test=new in.package.Time1();
    I know that its expecting some format of class file like , in.package.Time1.class inside the in/package/ directory.
    It wasn't there so displayed this error.
    How to create this knid of class file to appropriate directory ?
    How to make my program execute without giving full package name like , in.package.Time1 time_test=new in.package.Time1();  ?
    Thank you.

    Package is a reserved word in Java. Name your package something else.
    - Saish

  • How to create Package( development class) and how to assign the program

    Hi,
    Can any body give me the steps to create the package (developement class) and also please give me the steps to assign the local object ( program) to that development class.
    thanks in advance
    KP

    Hi,
       This document will help you to create package and move local package name to your package.
    Package  Creation:
    1.T-code=SE80.
    2. give the option 'PACKAGE' in text field, give 'PACKAGE NAME' then enter.
    3. The next screen will open in that screen you shoul give short text and Software Component-'HOME'.  then enter.
    4. Next screen will open here you should give create request then next page will open
    5.In the next page give short description this is your package identification,then click 'SAVE ' button now one  unique number will open then give 'YES' button, now your package is created.
    HOW TO MOVE LOCAL PACKAGE DATA TO YOUR PACKAGE
    1.IN  the same screen you should give program option, then open your local program ,
    2.'WRITE  CLICK YOUR PROGRAM NAME', then give 'COPY' option
    3.Next window will open here you should give 'TARGET PROGRAM NAME'.
    4. THEN you should give you 'PACKAGE NAME'.
    now you can store local package program's to your package.
    IF HELPFULL GIVE REWARD POINTS

  • How to create "package name" for transport request

    Hi experts
    I am trying to create transport request for infopackage/data source/dtp etc...
    but system is asking package name in object directory entery.
    Could you pl. share the information step by step, how to create the "package name"
    Thanks in advance and you can get valuble points pl.
    Chandu

    Hi,
    Go to transaction SE21 and give the package name as ZAPO or any thing starts with Z.
    click on create button.
    give a short description
    in the Package properties block- allowed object types list box - select No restrictions.
    in the transport attributes block- specify the transport layer
    give software component as HOME
    select the check box for changes recorded.
    save the package.
    or
    Go to SE80
    select package from the list box
    give your package name and hit enter button
    the popup asks you for input.
    give the appropriate values and press create button.
    Note: You should be registered as a developer in the system where you are creating the package.
    Hope this solves your problem, Good luck
    Srini

  • How to create packages ?

    Hello !
    I'm trying to create one package with a source file containing all the hierarchy of classes and their dependencies.
    For example there is class Human, and class Asians, Europeans, Africans, etc... etc... all those classes extends Human.
    Do you think it's possible to create a package called edu.this.that.me that allows any other source code to import this package and can you tell me how to do that ?
    I read books concerning java programming (beginner) and there was no points underlining the fact that for each package we MUST have ONLY ONE class in the source file. I'm a c++ programmer (Microsoft, Borland, GNU, etc...) and I'm a little lost with those concepts of packages (it's easy with #include, import from dll, etc...).
    Just one more question: can we say that Interfaces could be considered as the so called 'virtual heritage' in c++ ??
    It is the same concept: we define a super-class that only contains descriptions of what we are supposed to do with, and following the heritage, each sub-classes must implements those (also called interfaces) virtual methods.
    Thank you for your help...
    Dimitri

    As far as packages, you can start here:
    http://java.sun.com/docs/books/tutorial/java/interpack/packages.html
    I don't know C++.

  • How to create package name  what is the transaction code for creation

    Hi,
    I want to create the package and also put that package in my program, how to put the package already saved program.

    Hello Rajyalakshmi
    You do not put a package to or into a program but <b>ASSIGN </b>a report to a package. To reassign a report to a new package (e.g. from $TMP to z-package) call transaction SE80 and right-click on the report name in the tree display. Choose the following function in the context menu:
    Other Functions -> Change Package Assignment
    Regards
      Uwe

  • How to create package access MXML component?

    Hi
    In ActionScript we can create an internal class which can be referenced by the classes in the same package.
    How can we create the MXML component which can be referenced by the others in the same package?

    Packager Links https://forums.adobe.com/thread/1586021

  • Creating Packages and Prefix in ABAP proxies

    HI,
    How to create Packages in ABAP .. while using custmized packages ZTAFE its giving the below error..
    Package ZTAFE has no use access to package
    interface SAI_TOOLS
    regards,
    Kishore

    Hi ,
    inculde the interface SAI_TOOLS under Use Access..
    check this doc creating a package....
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6066fbe8-edc4-2910-9584-a9601649747d
    hope this helps...

  • How to create a package in ECC 6.0.

    Hi,
    Can you tell me how to create a package in ECC 6.0 system?
    Thanks in advance,
    Regards,
    Arnab.

    Hi,
    Thank you for your replies.
    Can you tell me the difference and uses of the two types of package I can create from SE21.
    i.e. : Package and package interface. any sap link would also be helpful. I need to know where i can use what and what would be helpful for my case.
    Regards,
    Arnab.

  • How to create "Business Components Package" in the Jdeveloper ?

    Hi,
    I installed and set up "Patch 7523554 10G Jdeveloper With OA Extension ARU for R12 RUP6"
    I have ran out the test_fwktutorial.jsp and test_fwklabsolutions.jsp.
    All links work properly on these pages.
    I created HelloWorld page from "Oracle Application Framework Toolbox Tutorials".
    Its works properly too.
    Then I started to create "Search Page".
    I created "Business Component project" in the toolbox.jws.
    I was trying to perform step 2.1 "Create the BC4J Package for Client (UI) Objects".
    But I didn't find "Business Components Package" in the context menu.
    Could you give me advice how can I create package of this kind ?
    Thanks.

    I created "OA Workspace" and simultaneously with it created "Business Components Package" <yourname>.oracle.apps.ak.employee.
    After this it i necessary to creates one more "Business Components Package" <yourname>.oracle.apps.ak.schema.server
    I failed to create Package of this kind.
    In the "BC4J Tutorial" It seems to me I found similr actions.
    I suppose I may perform next step:
    Figure 6-3 http://download.oracle.com/docs/html/A97671_01/wtgbc4j.htm#BABIAIEI
    Figure 6-4 http://download.oracle.com/docs/html/A97671_01/wtgbc4j.htm#BABJIIII
    But I failed to pass these steps.
    Could you tell me, please, how to do this?
    Thanks.

  • How to create the package.

    Hi ,
    How to create the package.
    Thanks

    Hi Mahaboob,
    Goto SE80 Transaction
    Select Package and below give the package name and click on enter.
    then u get a pop up asking to create package. Click yes. then u get a pop up  Package Builder: Create package
    Give the description and the Application component and click on create.
    Best regards,
    raam

  • How to create development class (package)

    Hi
    Can anybody help me out in creating development class (package) to store ABAP programs.
    Thanks in advance
    Raghav

    Hi
    go with abap dictionary->select database table->provide the table for dev classs eg. V_TDEVC-> go for display option-> select utilities->select contents option-> select create dev class,
    provide the name and short text,software component->create req.no.
    with this dev class will be created
    or
    Use the transaction SE80.
    1. Select "Package" from the list box.
    2. Enter "ZEST" in the below text box
    3. Press "Enter".
    4. It will ask you whether to create.
    5. Sy "Yes".
    6. Give Short Description
    7. Click Save button.
    check this
    How to create development class
    If u find it useful plz reward the points
    charitha
    Message was edited by:
            charitha kolla

  • How to create a package and add a file?

    Hi all,
    I am new to Java and very much much confussed with how to create a package and then include some files any help will be very thankfull.
    Thanks for your help
    kka.

    Steps for creating a package in java are as follows:
    Choose a base directory for your classes. For example, you might choose c:\java\packages. Type the following command:
    set CLASSPATH=%CLASSPATH%;c:\java\packages
    Create subdirectories for each chapter or section, if you don't already have them.
    For each of the classes in the subdirectories, add the following line to the very top of each file:
    package directory-name;
    where directory-name is the name of the subdirectory the class file is located in.
    In other directories you may have class files that need to access one of the classes in another directory (package). To do this, write one of the following at the top of the class that needs the other class:
    import subdir.*;
    or
    import subdir.classname;
    Use the class by name in the new class file.
    Note that you can create sub-packages by creating subdirectories of the original subdirectories, and inserting package statements at the top of the java files in those directories.
    Hope this helps!

  • How to create an instance of a protected class outside the enclosing packag

    Hi all,
    I have a piece of code like this:
    package test;
    public class A {
    protected class B { }
    How to create an instance of B outside the package test ? Could you please give me an example ?
    Thanks
    Ha Chau

    Thank WirajR for your reply, but in your solution,
    you have to create an instance of B inside class A
    and pass it outside. I would like to know whetherwe
    can create an instance of class B outside thepackage
    test. That means I want the instance creation
    expression of B appears outside the package test.Can
    we do that?
    If you want to use a class this way then it shouldn't
    be marked protected. I can't see why you don't
    just declare it public if that's what it is.
    Wouldn't be much point to haveing a protected
    modifier if it had no effect, would there?I think there is use for it if you use an interface to filter out the parts you want to give public access to, and keep the part you want to keep protected, protected

Maybe you are looking for