BAPI structure as TYPE?

In case of coding a RFC shall I have to always use BAPI structure as TYPE?  or I can use other things also. Please let me know.
Regards,
Subho

Hi
To the best of my knowledge you can use any dictionary type structures for more info take F1 help. or Take F1 help on
CALL FUNCTION key word.
go to SE84 and select the Radio Button of RFC and execute you can find many RFC function Modules, Check their Import Parameters
All the Imprort Parameters must be PASS BY VALUE only.
For more info you can search Forums or Web
Cheers
Ram

Similar Messages

  • Assign values to bapi structure dynamically

    Hi,
    I have to use the BAPI, BAPI_MATERIAL_SAVEDATA to extend the material to different plant specific views. I have to use the structure BAPI_MARC and other structures in order to do this. But the values to be passed to the structure BAPI_MARC are not fixed. These values will be maintained in a custom table against the structure name and field name for a particular plant.
    In the program I have to extract the structure name and field name for a corresponding plant from custom table and fill the corresponding value in BAPI structure BAPI_MARC.
    Now, internal table in the program is having these details.
    How can I fill the bapi structure BAPI_MARC based on this information.
    For example, if in custom table, value 0001 is maintained against the field PUR_GROUP, I have to fill the field PUR_GROUP in strcutre BAPI_MARC with 0001.
    Hope I am clear in explaining the problem. Please let me know how to aciheve this?
    Best Regards,
    Kumar.

    Hi,
    I have tried to implement that in a sample program first. Please have a look at the code below.
    DATA: BEGIN OF line,
            col1 TYPE i,
            col2 TYPE i,
            col3 TYPE i,
          END OF line.
    DATA comp(4) TYPE c VALUE 'COL3'.
    FIELD-SYMBOLS: <f1> TYPE ANY, <f3> TYPE ANY.
    ASSIGN line TO <f1>.
    ASSIGN COMPONENT comp OF STRUCTURE <f1> TO <f3>.
    IF <f3> IS ASSIGNED.
    ENDIF.
    I checked in the debugging mode and the value of <f3> in debugging mode is 0, but not line-col3.
    Best Regards,
    Kumar

  • Import XSD from BAPI structure

    Hi all,
    I have a problem when export XSD scchema from BAPI structure and use this schema to create a data type using import XSD schema. The error is following displayed:
    Schema to be handled does not contain a definition of type BAPI_SALESORDER_CREATEFROMDAT2.
    Any idea?????
    Thanks in advance,
              Michele Lazzarato

    Hi Stephan,
    I have created an Abap Proxy and the error message in English as follow:
    Message Interface prova   http://xtel.com/xi/Sales Order references RFC  
    Message BAPI_SALESORDER_CREAT EFROMDAT2   urn:sap-                       
    com:document:sap:rfc:functions    BAPI_SALESORDER_CREATEFROMDAT2.Response
    and the                                                                               
    Message no. SPRX000                                                                               
    Thanks,
                Michele.

  • Need for separate BAPI Structure for import parameters

    Hi All,
    I have a doubt regarding the logic behind declaring a separate BAPI structure for import paramters and use it.
    Let me explain you clearly,
    Whenever we pass an import parameter(like vendor number/sales order number) to an normal function module we declare it using either like/type referring to an existing dictionary structure field. but when the number of import parameters increase we may think of creating a single structure with all and use it for simplicity.
    But when it is the case with a BAPI, it is suggested that we create a structure even when we have single import parameter.
    for example.
    supposing that we create a normal function module to get the details of a given Vendor, then we declare the import parameter as below
    VENDORNO LIKE LFA1-LIFNR
    But <b>if we observe the BAPI_VENDOR_DISPLAY, We find that declaration for the same as
    VENDORNO like BAPIVENDOR_ID-VENDOR_NO,
    where BAPIVENDOR_ID is a separate BAPI sturcture created and assocaited only with Business object "Vendor".</b>
    I tried it by declaring as for a normal FM, even then it work fine.
    Now my question is,
    If SAP Suggests that we have a separate structure for all import parameters starting with name BAPI and use only those fields to reference with,
    what is the logic/reason behind asking so.
    I had created a BAPI with paramters referring to standard database fields like
    VENDORNO like LFA1-LIFNR and it is still working
    <b>I had also written interface programs using VB/ .NET to access the data from my own BAPI and standard BAPI's and both were working alike.</b>
    so anyone <b>please give me the reason/logic behind declaring a separate BAPI stuture for all the import parameters to be used in a method</b>.
    Thanks in advance,
    Lakshmi

    I would say that it really comes down to simplicity.   Think of it this way,  you are not an ABAPer, you must right a VB or a java program to call this BAPI from outside the system, you know nothing about R/3 or its data structures/tables.    Now that said,  think of what it would be like if all of the fields in the BAPI signature were like we find in the standard tables,  LIFNR, etc.  What is LIFNR, right?    Since we are ABAPers we know that it is Vendor, but for others,  they may not know.  This is why you will find the signature of a BAPI very descriptive, notice that all of the fields describe the field in english.  This is good for non-ABAPers.   To organize all of these fields that may be used in the BAPI interface,  it is good to put all of them in one defined structure,   that way they are all in one place, and can be referenced as such.    Again,  BAPIs are designed to be used by ABAPers and non-ABAPers, so simplicity is important.
    Regards,
    Rich Heilman

  • BAPI Structure ( very Urgent)

    Hi,
    BAPI Structure for Comments on Address Segment is E101BAPIAD_REM. I don’t know structure Please help me as soon as possible.

    Hi,
      this will help full to u.
    *structure for E101BAPIAD_REM *
    APPL_SNAME : Structure Name, No Business Significance
    internal data type : CHAR
    Internal length : 000030 characters
    Position in segment : 001, Offset : 0063. external length : 000030
    ADDR_VERS : International address version ID
    internal data type : CHAR
    Internal length : 000001 characters
    Position in segment : 002, Offset : 0093. external length : 000001
    LANGU : Language Key
    internal data type : LANG
    Internal length : 000001 characters
    Position in segment : 003, Offset : 0094. external length : 000001
    LANGU_ISO : Language according to ISO 639
    internal data type : CHAR
    Internal length : 000002 characters
    Position in segment : 004, Offset : 0095. external length : 000002
    ADR_NOTES : Address notes
    internal data type : CHAR
    Internal length : 000050 characters
    Position in segment : 005, Offset : 0097. external length : 000050
    ERRORFLAG : Flag: Record not processed
    internal data type : CHAR
    Internal length : 000001 characters
    Position in segment : 006, Offset : 0147. external length : 000001

  • DDIF Function Module for getting the description of a BAPI structure

    Hi,
    I need to find a function module that returns the description of a structure...well a BAPI structure, not that that makes any difference.
    The DDIF_ function modules I've tried will all return the descriptions of data elements in tables, but not structures.
    Thanks,
    Tristan

    Check FM : CACS_DBNAME2TABNAME

  • Problem in Transporting a BAPI structure

    How to transport the extended BAPI structure from D system to Q system.
    BAPI structure is extended by appending a new structure with two fields in Development system. I want to transport it to Q. But there is no transport request for this change. Since i have not done this change i dont know wat has to be done.
    Thank you in advance.
    Regards,
    Umasankar.

    Hi,
    You can use standard program RSWBO052 to change development class.
    In the  line : R3TR FUGR Function Group
    1)check the box
    3)insert the function gruop name
    4)Press F8 or Execute
    5) double click and change the class
    Regards,
    Sooness

  • Prob creating a new structured data type

    I am trying to create a new structured data type to see it in data type diagram. When i try to right click on structured data type in DATA TYPES, i cant see any option like new structured data type etc. But this is working for distinct as well collection data types but not for structured.
    By default, we are getting SDO_geometry structured data type for every model. We can change its name but cant create a new structured data type from there also.
    What should i do to create a structured data type in data modeler.

    The right click on Structured Types does not open a menu on my Data Modeler either.
    To create a Structured Type, click View on the main menu for the Data Modeler. Then click View Details -> Datatype.
    In the Browser (called Navigator in other Oracle products), right click Datatype Model -> Show. This will show the DataTypes diagrammer.
    Click on the New Structured Type button on the menu bar, then click anywhere on the DataTypes diagrammer, the Structured Type Properties window opens.
    Enter all the details in the Structured Type Properties window to create your data type. Click Ok when finished. Your object type will be represented by a "blue" box on the diagram.
    Jim Keese
    Edited by: user9367840 on Feb 10, 2012 8:30 AM

  • Can BAPI Structure be used to generate Proxy?

    Hi @ ,
    I want to generate the proxy for a BAPI that i have imported the BAPI already.I don't want to use RFC but proxy based upon the BAPI structure.
    REgards,

    Hi
    check this thread
    Re: BAPI or Proxies

  • Including structure in TYPES-- urgent

    hi
    this is an itab with header line
    data: begin of xdb_mchb occurs 0.
            include structure mchb.
    data:   vrfmg      like v01fdk-vrfmg.
    data:   cuobj      like inob-cuobj.
    data:   lifnr      like mkol-lifnr.
    data:   sobkz      like mkol-sobkz.
    data:   lobm_bprio like bfstock-lobm_bprio.
    data: end of xdb_mchb.
    and i want to define an explicit work area  so i have done it like this :
    types :       BEGIN OF ts_xdb_mchb ,
           <b>include structure mchb,</b>
            vrfmg      TYPE v01fdk-vrfmg,
            cuobj      TYPE inob-cuobj,
            lifnr      TYPE mkol-lifnr,
            sobkz      TYPE mkol-sobkz,
            lobm_bprio TYPE bfstock-lobm_bprio,
           END OF ts_xdb_mchb.
    but i m getting error. as ""," expected after "INCLUDE"."
    can we include structure in TYPES please let me know..
    thnx<b></b><b></b><b></b><b></b>

    Hi neha,
    After INCLUDE don't put " , " instead put " . "
    So that you can errors.
    It will work try.OK
    types : BEGIN OF ts_xdb_mchb ,
                 vrfmg TYPE v01fdk-vrfmg,
                 cuobj TYPE inob-cuobj,
                 lifnr TYPE mkol-lifnr,
                 sobkz TYPE mkol-sobkz,
                 lobm_bprio TYPE bfstock-lobm_bprio,
                 <b>include structure mchb.</b>
    END OF ts_xdb_mchb.
    If helps, reward.
    regards,
    V.Raghavender.

  • Datamodeler: Structure Data Type

    I am working on a design with many entities having common (audit-related) attributes applicable to all of them. I am thinking of defining a Structured Data Type which will be used in all of them. While it is easy to create new Distinct & Collection Data Types by right-clicking on their nodes, it appears there is a bug in creating a new Structured Data Type using the same method. Is there any workaround for this?
    Thanks,
    Chiedu

    Hi Chiedu,
    you need to make "Data Types" diagram visible in order to be able to create structured types - use Show from pop-up menu on "data types" node.
    Structured types are created only on diagram in current release.
    Best regards,
    Philip
    I see there is short description of Data types model in help.
    Edited by: Philip Stoyanov on Mar 12, 2009 6:02 AM

  • Upload IBase = IS-U: incorrect BAPI structure transferred

    Hi
    We are trying to integrate CRM 5.0 and ISu 4.72 System. Now when we are creating a Connection object in CRM. During replication in BDocs we are getting an error "Upload IBase => IS-U: incorrect BAPI structure transferred".
    I have feeling that it is related to parameter definition in MDT. But since I have never worked on this area, I don't know what should be the correct entry.
    Please help me in resolving this.
    Thanx in advance.
    Cheers
    Hits

    Hi Hitesh,
    Connection objects and points of delivery in CRM are stored as components in an IBase (Installed Base) of the category IU(technical objects for SAP IS-U).
    The following conditions apply for an IBase from the category IU.
           1.      The first component of an IBase is always a connection object.
           2.      An IBase only has one connection object.
           3.      0 .. n points of delivery can be allocated to a connection object.
           4.      Apart from the relationship between connection object ¬ point of delivery, there are no other relationships in the hierarchy.
    These conditions mean that the IBase contains a maximum of two hierarchy levels. The first level consists of a connection object, the second consists of 0 .. n points of delivery. IBases with a different structure are not valid IS-U IBases and cause errors during the upload.
    hope this will help you.

  • BAPI-structure: invalid change message while changing structure field lengh

    Hi Experts,
      I've one structure which is used in many BAPIs.
      I want to change the field lengh of one of the field in the structure.
      When I'm activating it,  it is giving me message BAPI-structure: invalid change.
    Can you help me on this issue ?
    Naimish.

    Look at [BAPI Programming Guide (CA-BFA)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf]
    If your BAPI is released, you wont be allowed to change the structure, so you should un-release the BAPI, BOR and FM before updating the structure parameter.
    Regards

  • Delete Bapi Structure of a SyncBo

    Hi, i need to delete a structure (040) of a SyncBo, i did this by the next code:
    SyncBo syncBo = getSyncBoInstance("Y01_ORD_TR", topSyncKey);
    SyncBoDescriptor sbd = syncBo.getSyncBoDescriptor();
    RowDescriptor trd = sbd.getRowDescriptor("040");
    Row row = syncBo.getRow(trd,syncKeyToDelete);
    syncBo.deleteRow(row);
    With this code appears in the merep_mon a "M" message for the TOP structure, and for the 040 structure a "D" message, but it doesn't call to the Bapi "Delete", what can i do to the Bapi Delete is executed ?
    Thanks.

    Hi,
    if you send M and D , then form client side it is okay I think.
    Why do you say the delete is not called? Is the information still on the device? What is the state of the BO? And have you inserted a LOG writer into the Backend BADI for delete - so you see what happens there? DEBUG of that remote stuff is nbot really possible or very tricky in MI - i know. But I think the problem is not the code you mentioned, because the m and the D method are the thing we expect.
    Either the GETDETAIL handler still gives that information down. What is the type of the BO? Perhaps you have an Add for that item with one of the next syncs, because the information is still on the MW?
    - please check the sync state of the item
    - what information is send down to the client for that item?
    - can you implement a logging for the delete and confirm that it is really not called (I think it is called)
    Hope this helps to get any further.
    Regards,
    Oliver

  • Changes in ECC50 BAPI Structures

    Hi,
    I am working in upgrade project (46C to ECC50), I would like to know what are the BAPIs changed like structures added to BAPI or deleted some of the fields or added some of the fields in the structures.
    Please let me know if any SAP tool or good way to find differences.
    Thanks,
    Kiran.

    Ernest,
    Choose Tools --> Options --> Compiler.
    In Data Service Retrieval combo box
    choose Donot cache data service get latest.
    Log off from your model.
    log on again and goto the context menu of your bapi.
    then choose Define data Service your import parameters should appear now.
    Regards,
    Ahmed Salah
    Please reward points if this is helpful

Maybe you are looking for