Skip to Content
avatar image
Former Member

ABAP with BAPI'S ?

Hello Friends,

I am basically a J2ee developer and very new to ABAP Programming language, and need to do some BAPI call through ABAP. I am having a following problem, and I am very thankful to some one who can help me out !

The problem is:

For example

DATA : MY_NUMBER LIKE BAPIRET2- NUMBER,

MY_TEXTFORMAT LIKE BAPITGA-TEXTFORMAT,

correct me if I am wronge, BAPIRET2- is an internal-table or structure and - NUMBER, is its attribute, ? if its true then,

1) Do we alwayas need for each BAPI to define its parameter and initilize with LIKE to the attribute of the internal database table ?

2) how do I come to know that, for which bapi which internal database table I have to use from SAP SYSTEM ?

I have already looked in many articals of BAPI, but did not help me much,

Thanks in advance

Haider Syed.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 21, 2004 at 09:45 AM

    Hi Syed,

    BAPI's are basically fucntion modules which have some import and export parameters. some of these parameters are optional and some are not. You will have to pass mandatory parameters and for that you will have to define variables.

    <correct me if I am wronge, BAPIRET2- is an internal-<table <or structure and - NUMBER, is its attribute, ? if <its <true then,

    yes you are right BAPIRET2 is an standard structure for passing messages. each BAPI returns a table of type BAPIRET2. NUMBER is a field for message number.

    <how do I come to know that, for which bapi which <internal database table I have to use from SAP SYSTEM ?

    you can check the function module related to BAPI and see what parameters it accepts.

    hope it helps,

    Komal.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Mikhail,

      Many many thanks for your reply 😊 it does help me alot,

      I am trying first with ABAP and then my second step is to try with SAP Jco, 😊,

      I will try as u have suggested, and if encounter any errors, I will let you know !!

      Many thanks,:)

      Haider Syed