Creation of IBASE (TA IB51) with ABAP

Creation of IBASE (TA IB51) with ABAP
Posted: Sep 29, 2005 8:47 AM      Reply      E-mail this post 
Hello all,
i want to create an IBASE with Instances (Materials) with Abap.
It is possible to create the IBASE but not to create the instances. I have always an empty IBASE without materials.
Can anybody help me
Thanks a lot
Markus
Here is my coding:
type-pools ibin .
type-pools IBCO2.
data: ibib_handle type i.
data: E_IBASE_REC TYPE IBCO2_IBASE_REC.
data: I_IBIB1 LIKE IBIB1.
data: I_IBIBT1 LIKE IBIBT1.
data: matobject type ref to cl_ibase_r3_material.
data: i_PROCESS_REC TYPE IBXX_PROCESS_REC.
data: C_INSTANCE_TAB TYPE IBCO1_INST_TAB1.
data: c_inst_struct type ibco1_inst_rec1.
CALL FUNCTION 'IB_COM_NEW'
IMPORTING
E_IBCO_HANDLE = ibib_handle.
CALL FUNCTION 'IB_COM2_CREATE_IBASE'
EXPORTING
I_IBCO_HANDLE = ibib_handle
I_IBTYP = 'Y1'
IMPORTING
E_IBASE_REC = E_IBASE_REC
EXCEPTIONS
IB_HANDLE_NOT_DEFINED = 1
OTHERS = 2.
clear: i_ibib1, i_ibibt1.
move-corresponding e_ibase_rec-com to i_ibib1.
move-corresponding e_ibase_rec-conf to i_ibib1.
i_ibib1-ibase = e_ibase_rec-ibase.
i_ibib1-extid = 'externer Name'.
*i_ibib1-authg = 'E001'.
i_ibibt1-ibase = e_ibase_rec-ibase.
i_ibibt1-langu = sy-langu.
i_ibibt1-descr = 'Beschreibung'.
CALL FUNCTION 'IB_COM1_CHANGE_IBASE_ONLY'
EXPORTING
I_IBCO_HANDLE = ibib_handle
I_IBIB1 = i_ibib1
I_IBIBT1 = i_ibibt1
EXCEPTIONS
IB_HANDLE_NOT_DEFINED = 1
OTHERS = 2.
create object matobject exporting i_matnr = '000000000000602028'.
clear i_process_rec.
i_process_rec-activity = '1'.
i_process_rec-ind_valfr = 'X'.
i_process_rec-ind_valto = 'X'.
i_process_rec-ind_sortf = 'X'.
i_process_rec-ind_amount = 'X'.
i_process_rec-ind_unit = 'X'.
i_process_rec-ind_objtyp = 'X'.
i_process_rec-ind_objid = 'X'.
i_process_rec-ind_serno = 'X'.
i_process_rec-ind_plant = 'X'.
i_process_rec-ind_batch = 'X'.
i_process_rec-ind_revlv = 'X'.
i_process_rec-ind_deviceid = 'X'.
i_process_rec-ind_posno = 'X'.
refresh c_instance_tab.
c_inst_struct-val-valfr = '20050929080000'.
c_inst_struct-val-valto = '99991231235959'.
c_inst_struct-com-amount = 1.
c_inst_struct-com-unit = 'ST'.
c_inst_struct-objtyp = '0002'.
c_inst_struct-object = matobject.
INSERT c_inst_struct INTO TABLE c_instance_tab.
CALL FUNCTION 'IB_COM1_PROCESS_INSTANCE'
EXPORTING
I_IBCO_HANDLE = ibib_handle
I_IBASE = e_ibase_rec-ibase
i_moment = '20050929080000'
I_PROCESS_REC = i_process_rec
CHANGING
C_INSTANCE_TAB = c_instance_tab
EXCEPTIONS
IB_HANDLE_NOT_DEFINED = 1
IB_NO_ACTIVITY = 2
IB_NOTHING_PROCESSED = 3
IB_INCONSISTEND_DATA = 4
IB_INSTALL_NOT_ALLOWED = 5
OTHERS = 6.
CALL FUNCTION 'IB_COM_SAVE_AND_FREE'
EXPORTING
I_IBCO_HANDLE = ibib_handle
EXCEPTIONS
IB_HANDLE_NOT_DEFINED = 1
IB_NOT_SUCCESSFUL = 2
OTHERS = 3
write: e_ibase_rec-ibase.
commit work.

Remark: We have SAP R3 Release 4.6c

Similar Messages

  • Creation of IBASE with the XIF adapter

    Hello,
    I am trying to create IBASES using the XIF adapter (LSMW). The actual creation of the IBASE is no problem, but creating an IBASE with a partner + address connection seems not to work. In HELP.SAP there are examples of IBASE craetion with components but not with partner relationships.
    What do I need to fill in the E102CRMXIF_IBASE_PARTNER structure, does anyone have any documentation on this subject?
    Thanks advance!
    Arjan.

    Hi Arjan,
    Do you have any documentation of this process 'Creation of IBASE with the XIF adapter'. Please post it.
    Thanks in advance.
    Sameer Ahamad

  • Totally helpless installing NetWeaver with ABAP

    Hi,
    I am trying to install SAP NetWeaver 2004 SneakPreview with ABAP for the last 2 days. But I am getting the error esage which is at the end of this topic:I did all the above and am at my wits end:
    1) Removed any exiting database instance.
    2) Installed jre 1.4.2.
    3) Removed the entries from the c:\windows\system32\drivers\etc\services for the specific ports they have mentioned.
    4) Added the microsoft loopback adapter.
    The error message is as follows and it is in the 11th phase of the 24 phases which is Database instance creation:
    ERROR 2006-07-23 15:12:00
    The dbmcli call for action DB_START failed. Check the logfile XCMDOUT.LOG.
    ERROR 2006-07-23 15:12:00
    The dbmcli call for action DB_START failed. Check the logfile XCMDOUT.LOG.
    ERROR 2006-07-23 15:12:00
    FCO-00011  The step sdb_instance_start with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_CreateDB|ind|ind|ind|ind|9|0|NW_ADA_DB|ind|ind|ind|ind|6|0|SdbPreInstanceDialogs|ind|ind|ind|ind|2|0|SdbInstanceDialogs|ind|ind|ind|ind|1|0|SDB_INSTANCE_CREATE|ind|ind|ind|ind|0|0|sdb_instance_start was executed with status ERROR .
    Any help would be appreciated since I have just given up and fail to understand why this message is coming up since I followed all the prerequisites for the last 2 days. Morover if someone has an email address I can even send a word document containing a snapshot when the error message appears.
    Thanks,
    Victor

    Hi...
    here it is
    <b>Full ABAP System Requirements</b>
    *Operating System: Windows XP Professional (Service Pack 1) or Windows Server 2003
    *NTFS-File systems
    *Internet Explorer 5.5 or higher or Firefox 1.0 or higher
    *At least 1 GB RAM
    *Intel Pentium III/1.1 GHz or higher (or compatible)
    *13 GB hard disk space recommended
    *High-resolution monitor (1024x768 or higher, 256 colors)
    If you have already installed SAP products on your computer, you must ensure that none of the systems are called "NSP".
    The file C:\WINNT\system32\drivers\etc\services (Windows 2000) or C:\Windows\system32\drivers\etc\services (Windows XP) must not include an entry for the ports 3201, 3601 and 50000 to 50030. A possible entry can be excluded by using the hash symbol (#).
    Regards,
    Vijay

  • Export and Import of Users with ABAP datasource to  target standalone EP.

    Hi Friends,
    My customer is having
    Source System:BS2
    ABAP+ JAVA --- usage type : BW, EP
    datasource -- ABAP
    now, they need datasource as LDAP
    so i have suggested as attached SOW
    1.Install New Instance BS3 with JAVA,EP,EP Core
    2.Patching BS3 to SP15 level
    3.Import PCD from BS2 to BS3
    4.Configure SSO between BS2 and BS3
    5.Configure Data source to LDAP
    6.Testing the Configurations
    7. Uninstall JAVA DATABASE from BS2
    Target System:
    Standalone JAVA-- only EP
    datasource -- LDAP configured
    I have completed all steps successfully from 1 to 5
    In source system, 45 users are there with ABAP datasource and ABAP roles...  Now how can i import those users with ABAP roles into target System ( Standalone  EP)
    Any Usermapping is required to configure.
    Please suggest me to workaround on this.
    Regards,
    Venkat.

    You have to do this manually. In theory you can make a specially formatted text file to create the users and assign their portal groups, but it is quicker to just add them using the useradmin tool. If you export a user from the Java useradmin tool you can see the format of the text file. I ahve written an ABAP in the past to do the text file creation, but I can't find it now

  • The timesheet creation failed, because of problems with the project I server or with data validation

    Hi,
    One of my user is facing issue in creating new time sheet,
    "The time sheet creation failed, because of problems with the project server or with data validations".
    This issue is coming to only few members out of 10000 members.
    Note: For the same user, can able to do in other machines. only the problem in his machine. Have ran the office diagnostics, but still the problem persists.
    Is any add-on's/any settings need to update in IE. Could any one please help me on how to fix this issue?
    Many thanks in advance.

    I would check the compatibility settings in IE etc, or try another browser (chrome, safari etc.)
    Ben Howard [MVP] | web |
    blog | book

  • Automatic creation of meter reading order with RR 01 after move in

    Hi Experts,
    I am working with DM module of SAP ISU. Currently I am facing a problem that after move-in a periodic order with RR 01 is created automatically by the system.
    Ex: Move in date is 01.01.2010. Monthly Portion is used with Schedule record 01.01.2010, 01.02.2010, 01.03.2010, 01.04.2010 and so on.
    If current system date is 20.07.2010 then Meter reading order is created automatically by the system for sch MRD 01.08.2010.
    Please let me know how to overcome this problem
    Thanks in advance.

    Thanks for your reply but I have cheked SPRO setting the suggested check box is already uncheked.
    I beleive the setting you have suggested is meant for default meter reading during move in but my problem is automatic creation of meter reading order with reason 01 during move in

  • SAP ECC 6.0 EHP4 installation with ABAP+JAVA stack

    Hi,
    I need to install SAP ECC6.0 EHP4 with ABAP+JAVA stack on windiws server 2008 with oracle.
    I have read that for this, we need to install ECC 6.0 EHP4 ready and then upgrade to EHP4 using ehpi installer.
    I have found the documents seperately for ABAP and JAVA stack and not for ABAP+JAVA.
    I need clarifications on these.
    1.Do we need to install ABAP and JAVA instances seperately with EHP4 and then upgrade(In that case I have to install both instances on single host)?
    2.Should we give seperate <SID> for both instances and create seperate databases?
    3.Hard disk requirement for this set up.(We have 150 GB including C drive)
    4.Steps to perform after installing ECC6.0 EHP4 ready
    5.Please send me the doc. if anyone has
    Anyhelp would be highly appreciated.
    Regards,
    Surya

    > 1.In the installation document for EHP4 ready for SAP ERP 6.0 ABAP.It is mentioned that this installation contains only basic EHP4 for ERP 6.0 and we need to install additional EHP4  functionality in the SAP ERP 6.0 -EHP4 ready system.
    > It states that atleast Support pacakge stack (SPS) 1 of SHP4 needs to be installed.So If I install this stack using EHPi installer in the post installation activities my SAP ERP 6.0 EHP4 will be in place?Please confirm.
    Yes..
    >
    > 2.Can I install SAP SR3 with dual stack and upgaradte it directly to EHP4 at a time?
    Yes you can do it.....as SAP still supports dual stack ERP systems to EHP4
    >
    > Any solutions or suggestions from others also welcome.
    Why do u want a dual stack ECC ystem?? any specific requirement???
    Regards,
    Nirmal.K
    Edited by: nirmal konchada on Feb 2, 2011 12:16 PM

  • How to run others applications with abap commands

    Is there a mothed that can use it to run an application with abap statement?
    for example: how to open a text file in program with abap command?
    thank you very much.

    CALL FUNCTION '<b>WS_EXECUTE'</b>
    EXPORTING
      DOCUMENT                 = ' '
      CD                       = ' '
       <b>COMMANDLINE</b>              = ''
      INFORM                   = ' '
      <b> PROGRAM                 </b> = 'NOTEPAD'
      STAT                     = ' '
      WINID                    = ' '
      OSMAC_SCRIPT             = ' '
      OSMAC_CREATOR            = ' '
      WIN16_EXT                = ' '
      EXEC_RC                  = ' '
    IMPORTING
      RBUFF                    =
    EXCEPTIONS
      FRONTEND_ERROR           = 1
      NO_BATCH                 = 2
      PROG_NOT_FOUND           = 3
      ILLEGAL_OPTION           = 4
      GUI_REFUSE_EXECUTE       = 5
      OTHERS                   = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Here...
    In the <b>CommandLine</b> you can give the path where the file is located like for Example
    C:\Test\Hello.txt.
    In the <b>Program</b> you need to give the application that you want to open that file.
    if helpful reward points...
    Regards,
    Vivekananda Varma Dandu

  • WebDynpro with ABAP or JAVA?

    Hi all,
    I am a veteran in ABAP. I wish to learn web dynpro. I never worked on JAVA. Can anybody advice me which programming language i should use to learn WebDynpro development. Also let me know which companies have webdynpro projects in India?
    Thanks in advance..

    Hi Buddy,
             Welcome to intresting world of Web Dynpro.
             As veteran ABAPer you should go for WebDynproABAP .
             Now why ?
    Point 1:
    In my view WebDynpro ABAP and Wd Java are not same.
    Basically WebDynpro ABAP and Java are two different webDynpro provided by NetWeaver Stack.
    Basic conceptual base of WD ABAP and WD Java is same.I mean to say concepts like Context binding , node , elements , Layout both support are same.
    But when you provide background functionality to your Web Screen then Java or ABAP come in to picture.Just take case , you want do some thing on click of some button then
    1) in case of java may you will call some ejb or you will may write some java code on click.
    2) but in case of WD ABAP you have to do same thing with ABAP classes . You will call some call or some method of some system defined class.
    Ulimately point I want make
    1) WD ABAP and WD java 's Base is same but you code in completely different way.
    2) Purpose for which SAP came with two different WDynpro is different. Java can be used for developing quite sophistcated Web services.
    Point 2:
    another help for you .Just go thr' following thread
    How much of oops ABAP is required for ABAP Webdynpro .
    Point 3:
    You can start with tutorials and all
    Web Dynpro for ABAP
    http://help.sap.com/saphelp_erp2005/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/frameset.htm
    best tutorials in wbdynpro for ABAP to start with :
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]

  • Deleting Data Package with Abap - error in Abap statement

    Hi,
    I am trying to delete data with abap but my logic is not working and it failed with error message Error in an abap/4 statement  when processing
    requirement
    - Delete data package when plant = INDIA
    - Delete data package when Area = 01 OR Group =  J001 in customer master data table.
    Logic
    Data: T_Data TYPE DATA_PACKAGE_STRUCTURE Occurs 0 WITH HEADER LINE.
    data: lt_BI0_PCUSTOMER LIKE /BI0/PCUSTOMER OCCURS 0 WITH HEADER LINE.
    LOOP AT DATA_PACKAGE.
    MOVE-CORRESPONDING DATA_PACKAGE TO T_DATA.
    Refresh lt_BI0_PCUSTOMER.
    select * from /BI0/PCUSTOMER into TABLE lt_BI0_PCUSTOMER
    WHERE CUSTOMER = T_DATA-SOLD_TO.
    Read table lt_BI0_PCUSTOMER WITH KEY CUSTOMER = T_DATA-SOLD_TO.
    IF sy-subrc EQ 0.
    LOOP AT lt_BI0_PCUSTOMER.
    IF lt_BI0_PCUSTOMER-AREA= '01' or
    lt_BI0_PCUSTOMER-GROUP = 'J001'.
    DELETE T_DATA.
    APPEND T_DATA.
    endif.
    ENDLOOP.
    ENDIF.
    ENDLOOP.
    DATA_PACKAGE[] = T_DATA[].
    * Delete data package when Plant EQ INDIA
    DELETE DATA_PACKAGE WHERE PLANT = 'INDIA'.
    thanks
    Edited by: Bhat Vaidya on Oct 19, 2010 8:41 AM
    Edited by: Thomas Zloch on Oct 19, 2010 9:55 AM

    Hi,
    DELETE DATA_PACKAGE WHERE PLANT = 'INDIA'.
    Above syntax for delete data from internal table
    For deleting the database table write statement as follows
    DELETE From DATA_PACKAGE WHERE PLANT = 'INDIA'
    Your are missing the from keyword from statement.
    What could i have understand, if it is your solution of Query.
    Exactly you want to delete data from database table or internal table ?

  • Call an URL with ABAP program (Method POST)

    Hi everyone,
      I need to call an URL for example "www.google.com?q=hello" with ABAP using POST method.
      Like the FM "Call_Browser", but my variable q=hello need to be passed with POST method.
    Any idea ?
    Thanks.

    here is one example I use from abap to call a web browser ITS solution with a project number, I guess you can adapt the it for your purpose?
          check <data>-pspid is not initial.
          concatenate gv_pfs_link
                      'zpfs2?~okcode=PROJ_SEL&zpspid=<###>&sel_action=X'
          into lv_url.
          replace '<###>' with <data>-pspid into lv_url.
          condense lv_url no-gaps.
          cl_gui_frontend_services=>execute(
            exporting document = lv_url ).

  • How to use web service with ABAP Web Dynpro

    Hi.
         do you know, how to web service with ABAP Web Dynpro?

    Hi,
    If you have a webservice ready with you then you can generate a proxy from SE80 and you can use that. You just have to create a port and assign to that generated proxy(CLASS) and you are good to go.
    Let me know if you need more information.
    Thank You,
    Gajendra.

  • How to READ/SAVE Transformantation / Conversion File in BPC with ABAP

    hi Experts
    I would like to READ/SAVE Transformantation / Conversion File in BPC with ABAP
    When I interface Transaction File From Other Cube,
    I want to run Interface test from ABAP using Transformantation / Conversion File before run DM.
    and, l want to Manage files with ABAP Program ,if need to modify Transformantation / Conversion File
    Thank you.

    Hi Young,
    In addition to the above suggestions, would like to inform you that, if your requirement can be met by running those files in BPC Excel itself, what is the point in running ABAP program for the same?
    It would be much more easier for you to run those files in BPC Excel itself and that is how BPC is designed.
    Hope this clarifies further.
    Rgds,
    Poonam

  • It's possible to sign a PDF file with ABAP????

    Hi all.
    I'm trying to sign PDF file with SAPCRYPTOLIB. I'm 4.7 sap version.
    It's possible to do this?????....
    My question is because I've done all steps to sign a pdf, without errors, and the pdf generated is not signed.
    Can anybody to say me if it's possible to sign a pdf file with ABAP???
    thanks a lot.
    ISmael

    Here: [SAP Interactive Forms by Adobe|SAP Interactive Forms by Adobe;
    Also, please read the forum rules of engagement, it explains to use the forums.

  • How to browse for a folder with ABAP WEB DYNPRO

    Hi,
    I want to browse for a folder in my local file system with ABAP
    WEB DYNPRO. I am looking for a functionality which the function module
    TMP_GUI_BROWSE_FOR_FOLDER gives.
    Regards,
    Vinay

    HI Karl
    Good evening, I am Maruti from London. I would like to paractise ABAP WebDynpro.I am not sure which Vesrion of SAP R/3 supports for ABAP WebDynpro applications. Can you please suggest me .
    Thank you
    Maruti
    [email protected]

Maybe you are looking for

  • Why are Bounce in Arrange and Environment not 1 & the same?

    Just wondering why (like in 8) Bouncing in the Arrange window and in the Environment are different? I noticed this again in 9, when doing stems, bouncing in the Environment (so I can solo different tracks more quickly) I was wondering why on earth LP

  • How to create a restore 10.6.8 starup on an external drive

    I would like to create a restore disk on an external HD for my OS 10.6.8 I have arrive that is partitioned; one being used with Time Machine for a backup, another for OS 10.8 as a startup. I'm just trying the 10.8 for a while to see if I like it, and

  • Multiple processing of the recon events

    Hello, my friends. I have a terrible issue and i hope, that you could help me to solve it. My system info is: Solaris OS 10 Weblogic 10.3 IDM 9.1.0.2 bp12 I perform trusted recon with SAP HRMS (it doesn't metter, becouse it happens every recon). Thus

  • Updating apps cannot connect to i tunes store

    ive had my i pad 2 since the release date and just latelly when prompted to update an app it tells me connot conect to itunes store, ive read alot online about different fixes, date, time ect? is this just a case of itunes being weird at the moment i

  • Missing podcasts and Vista

    I am having the same problem that others have experienced with iTunes in that podcasts that I have sucessfully downloaded subsequently disappear the next time I start iTunes. I have seen the solution for an XP system, but Vista saves the user info in