Structure used in BAPI with prdefined field

Hi All,
Is it ok to use predefined field in a structure used in BAPI? Will there be any limitation? Any advantage if we use data elements and domains.
Regards,
Seema

Hi,
Using predefined fileds in a structure should not be a problem. The only think you should consider is if there is a possibility that the component owner to which this structure belongs may change this structure. So if you are sure that there will be no such risk, then go ahead.
Domains cannot be directly used within a program/FM/BAPI. Domains can only be associated with Data elements that can be used in BAPI. It is always safe to use DATA ELEMENTS as generally changes to them are avoided as they have huge dependencies.
I hope this clarifies your query.
Best Regards,
Saurabh

Similar Messages

  • Using app.openDoc with LC field as path

    Using LC ES2, Acrobat X.
    I was hoping someone might be able to point me in the right direction.  Synopsis:  I have a LC form that I use to import parent/child XML data. This form is a report, but it is basically a summary of a group of PDFs that I send off to my clients (on CD).  Each child record has a field containing the name of its corresponding PDF file.  I have been trying my best to make a link that will open the child file in a new Acrobat window.  I've used app.openDoc, but cannot seem to pass my field into the cPath. I've even tried using the "address" of the field containing the path. Example:
    app.openDoc({cPath:TextField1.rawvalue,oDoc: this});
    I've tried the device independent paths as well as just "filename.pdf", where both source and targets were in the same folder.
    I thought one of my attempts was going to work, but I got the "NotAllowedError: Security settings prevent access to this property or method." message in the debugger.
    This brings me to disclosed=true.  Is is still the case that all of the target PDFs that I am linking to need to have this property set?  Or, am I missing something alltogether here?

    Sorry, I marked it as bold text but unfortunately it happens to be unformatted
    It's the app.openDoc within my function checlIfFileExists:
    try {
            if( n == 0) {
               var checkDoc = app.openDoc({cPath :  "../GAG-out/"+filename+"-001.pdf"});
            } else  { 
               var checkDoc = app.openDoc({cPath :  "../GAG-out/"+filename+"-001_"+n+".pdf"});
             checkDoc.closeDoc();
            existingDoc = true;
         } catch (e) {  
             app.alert("Processing  error: "+e)

  • Generic delta   using function module with two fields  AEDAT AND ERDAT

    Hi,
        i have scenario that i have to create a generic data source  having delta using funcation module and the delta speci fields are AEDAT AND ERDAT . Is there possibility with out using these two fields ( i mean AEDAT AND ERDAT)  in the extract structure can i create the data source . and provide sample code for me . it is very urgent.
    waiting for the reply,
    sri.c

    Hi Sri,
    here some coding, I hope this helps!
    first, get the delta-field
          LOOP AT s_s_if-t_select INTO l_s_select.
            CASE l_s_select-fieldnm.
              WHEN 'ZDATE'.
                MOVE-CORRESPONDING l_s_select TO r_date.
                IF r_date-high IS INITIAL OR r_date-high = space.
                  r_date-high = '9991231'.
                ENDIF.
                APPEND r_date.
            ENDCASE.
          ENDLOOP.
    Cursor öffnen
          OPEN CURSOR WITH HOLD s_cursor FOR
          SELECT * FROM
          WHERE  ....
          AND    erdat in r_date
          AND    aedat IN r_date.
          FETCH NEXT CURSOR s_cursor INTO CORRESPONDING FIELDS OF table e_t_data package size s_s_if-maxsize.
    regards
    Siggi
    PS: Note that this coding only works for a very straight forward extraction.
    Message was edited by: Siegfried Szameitat

  • Using ME21N/ME22N with own Fields from MARA

    Hallo,
    i need help to insert some fields from MARA in
    the Tcode ME21/2N. For example MARA-GROES or MARA-ZEINR
    in the Item-List.
    Can i use the exit MM06E005, and has anybody a
    Codeexample?
    Thanks for help
    Dieter
    We have a new Problem. We have to store the new Fields
    in the EKPO. I use EXIT_SAPMM06E_013 with xekpo-ZZEINR
    but it doesn't work correct.
    Has anyone an idea?
    Thanks
    Regards Dieter
    Message was edited by: Dieter Gröhn

    Hi Dieter,
    1. Insert new field ZZ_ZEINR with component type<b> DZEINR</b> in structure CI_EKPODB via SE11. Save and activated once done.
    2. Go to <b>SE51</b> (Screen Painter), enter program <b>SAPLXM06</b> and screen number <b>0111</b> and click on change and select maintain in original language.
    3. Click on <b>Layout</b> button and create text field and input/output field for EKPO_CI-ZZ_ZEINR. Save and activated.
    4. Go to SE37 and enter function module <b> EXIT_SAPMM06E_016</b> and click on include <b>ZXM06U41</b>. In here you can code something like this. Save and activated once done.
    CLEAR: EKPO_CI-ZZ_ZEINR.
    SELECT SINGLE *
    FROM MARA
    WHERE MATNR = I_EKPO-MATNR.
    IF SY-SUBRC = 0.
      EKPO_CI-ZZ_ZEINR = MARA-ZEINR.
    ENDIF.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Using Oracle Text with CLOB field containing multiple languages

    I'm using Oracle 10g (NLS_CHARACTERSET is set to. AL32UTF8) and have a table with a CLOB field which is storing text written in either English and/or Simplified Chinese.
    The following index has been created on this field:
    CREATE INDEX text_index
    ON text_table(text_field)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('FILTER CTXSYS.INSO_FILTER');
    I'm having issues in returning text which matches the Chinese text using the CONTAINS operator. For some reason the following query is returning rows which do not contain any Chinese text:
    SELECT *
    FROM text_table
    WHERE contains(text_field,'炫%') > 1;
    A newsgroup user advised me to produce an explain plan using ctx_query.explain.
    I created 2 explain plans, one which was searching the index for 'A%' and the other searching for the Simplified Chinese character '炫%'. The results for the first test were as expected whereby the values contained within the OBJECT_NAME field all began with the letter 'A'.
    The second test however produced somewhat unexpected results. The OBJECT_NAME field this time contained various words, both English and Simplified Chinese. I could be wrong but it appeared to store every individual word in the CLOB field. Both tests produced different EQUIVALENCE rows, the first test was:
    OPTIONS = Null
    OBJECT_NAME = A%
    Whereas the second test produced:
    OPTIONS = (?)
    OBJECT_NAME = %
    Am I right in thinking the Simplified Chinese character is for some reason being converted to a '?' character?
    Any help on this will be much appreciated.

    As you're not specifying a lexer to use, it will use the BASIC_LEXER, designed for space-separated European-type languages. This won't work effectively with Chinese.
    If you know which documents are Chinese and which are English, you can write this into a LANGUAGE column and use the MULTI_LEXER - this will allow you to specify BASIC_LEXER for the English texts, and CHINESE_LEXER or CHINESE_VGRAM_LEXER for the Chinese texts.
    If you don't know the language, you must use either WORLD_LEXER (10g) or AUTO_LEXER (11g). These lexers will automatically determine the language of the documents and index them appropriately. In general. MULTI_LEXER will be faster and more accurate than either of the automatic alternatives.
    When querying for Chinese characters you need to be very careful with your NLS_LANG settings. You need to make sure that the character set defined in NLS_LANG is the same as the character set from which you've pasted (or typed) the chinese characters.
    The "?" in output usually just means "I don't know how to translate this character into your output character set". Sometimes it may appear as a reversed question mark.

  • GenIL Model Attribute Structure not getting updated with new fields added

    Hi All,
    I have modelled the service interface using GenIL Modelling in Duet Enterprise 1.0. Later, I added some fields to the read operation in the Enterprise Services Builder in the ESR system.
    But in the Read Operation mapper method "/IWFND/IF_SRD_BOP_MAP_GET_OBJ~MAP_POST_GET_OBJECTS",  when I try to define an object of type GenIL model Attribute Structure (ZMDLZPRGET_DETAIL),  Iam unable to access the newly added fields in the read operation.
    In transaction " GENIL_MODEL_EDITOR ", under Root Objects, when I open the Attribute Structure name, only the old fields are available, newly added fields are not updated.
    But I was able to see the newly added fields in the READ OPERATION data types of Enterprise Services Browser in SE80.
    Please help me how to update the new fields for GenIL Model Attribute Structure(ZMDLZPRGET_DETAIL).
    Thanks,
    Kris

    Hi sap_wiz,
    Thanks for your reply.
    My problem solved,
    Thanks
    Kris

  • Structure used in pricing with all item condition

    Hello Experts,
    I am creating a routine in which i need to read data from some other line item of sales order.
    Can anyone please tell me structure in which i get data for all item with all condition.I had checked XKOMV in which data is coming for only that particular item.
    Thanks in advance.
    Regards,
    Piyush

    If you know the document number you can find all condition type, for every item, by those steps:
    1.     TAKE VBAK-KNUMV;
    2.     GO TO KONV BY VBAK-KNUMV.
    G. Cicconi

  • Using Group BY with text fields

    Hi,
    Is there any way around the problem of not being able to
    GROUP BY a text field???
    I have tried using the CAST (name AS VARCHAR(8000)) but it
    doesn't return the full value of the field...... I am getting about
    250 characters returned....
    Is there any way around this? ,

    I am assuming MS SQL Server. According to SQL Server Books
    Online:
    Note: Columns of type text, ntext, and image cannot be used in
    group_by_expression.
    For GROUP BY clauses that do not contain CUBE or ROLLUP, the
    number of group_by_expression items is limited by the GROUP BY
    column sizes, the aggregated columns, and the aggregate values
    involved in the query. This limit originates from the limit of
    8,060 bytes on the intermediate work table that is needed to
    hold intermediate query results. A maximum of 10 grouping
    expressions is permitted when CUBE or ROLLUP is specified.
    Phil

  • How to use MAX() function with date field

    Hi Frzz,
    I have created a Graphical calculation view in which i have multiple records for each employee with different dates. But my requirement is to take the records which have maximum date.
    I have converted the date into Integer and applied the MAX() function. But still am getting multiple records.
    Is there is any other way we can achieve this requirement in Graphical Calculation view??  Your suggestion will really help me.
    Thank  you.
    Krishna.

    Hmm... what have you tried out so far?
    Look, I took the effort and created a little example, just for you
    Assume we have a table that contains the logon dates of users.
    Every line contains the logon date and some info on the user.
    Very much like a not-normalized log file could look like.
    Now, the output we want is: one line per user with the most current logon time.
    Not too difficult:
    1. Have a aggregation node that gives you the distinct user details - one line for every user:
    2. Have another aggregation node that gives you the last (MAX) logon date per user:
    Finally you do a 1:1 join on the USER_ID and map the result to the output.
    Easy as pie
    - Lars

  • How to use logical operators with the fields, this feature is avaliable?

    Hi, I need in a form to compare the content of two fields, i.e.  email and confirmation email, is this possible in Forms Central?, how I can do it?
    Thanks you

    Not Supported
    Hi,
    This is not something we currently support but you can add or vote on feature ideas:
    http://forums.adobe.com/community/formscentral?view=idea
    If you need to add a new idea click "Create an idea" under "Actions" in the top right.
    Thanks,
    Jeff

  • Problem using BAPI BAPI_ACC_DOCUMENT_POST with vendor field XZEMP

    Hi, I'm using the bapi BAPI_ACC_DOCUMENT_POST, when i fill the table ACCOUNTPAYABLE and execute it, if i use a vendor that doesn't have an 'X' in the field XZEMP (Indicator: Alternative payee in document allowed ?) of the table LFA1 the bapi returns an error.
    I haven't found any place in the bapi tables to override this.
    Is there something that should be parameterized so that this error doesn't happen?
    Thanks!

    Hi,
    Refer
    https://wiki.sdn.sap.com/wiki/display/Snippets/VendorInvoicePostingusingBAPI
    Re: BAPI_ACC_DOCUMENT_POST

  • How to Generate sales orders with custom Fields using BAPI_BUSPROCESSND_CREATEMULTI

    Hi,
    I need to generate sales orders with custom fields on table CRMD_ORDERADM_H using BAPI_BUSPROCESSND_CREATEMULTI, after changing the structure BAPI_TE_CRMD_ORDERADM_H, and feed the  EXTENSIONIN table of the BAPI with data, the order is created, but any value on custom fields.
    After debuging, I saw that the BAPI search for structure conversion in table CRMC_OBJECTS_GEN, but we haven't entry with BAPI_TE_CRMD_ORDERADM_H in this table. is that the problem ?, Is there any way to fix it?
    Best Regards,
    Salah.

    That depends on where do you have the customer fields, check the table CRMD_CUSTOMER_H, if your custom fields are there, you need to use the changing parameter CUSTOMER_HEAD, I guess your already checked that one, right? but there's no custom fields, well...AET/EEWB doesn't enhance the strcuture of the BAPI, so you should do it manually, check the note following note for further details.
    988410 - FAQ: User-defined fields in the BAPI
    If you don't have access to the SAP Marketplace, in resume you should create an append on the structure BAPIBUS20001_CUSTOMER_H and include the following strcutrue CI_EEW_CUSTOMER_H
    Cheers!
    Luis

  • Passing internal table with a field of type string to & from BAPI

    Hello ABAP gurus,
    I have a simple BAPI which has to send back an internal table.
    Internal table structure is as follows
    DATA: BEGIN OF itab OCCURS 0,
            config_id(8),
            blobdata like zstring,
    END OF itab.
    where zstring is a string of variable length.
    When I try to activate the BAPI I get a message
    "itab" must be a flat structure. You cannot use internal tables, strings, references or structures as components.
    However, just for testing, I changed blobdata to type of char and I can successfully activate and use the BAPI.
    But, our requirement is to pass a string of variable length.
    How can I resolve this issue? I have searched sdn and other blogs but didn't help so far.
    Any feedback on this will be highly appreciated.
    Thanks
    Ram

    Hi Prasad ,
         Try this way :
    Acc to your requirement ,create a structure with a parameter and a string , create a table type for that structure .
    use that table type in the changing parameter as you need that bapi to accept and return a table .
    for the below example ,  ZTEST_05 is a structure , ZTT_TEST_05 is a table type of ZTEST_05 .
    ZTEST_05 has got 2 fields , one is a param of type char(8) and another is a string of type STRING .
    I created the below mentioned BAPI and I was able to activate it without any errors .
         FUNCTION ZTEST_BAPI_ITAB_01.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(BAPI_P1) TYPE  ZTEST_05
    *"  CHANGING
    *"     VALUE(BAPI_CP1) TYPE  ZTT_TEST_05
    ENDFUNCTION. 
    Revert if any issues .
    Regards,
    Ranjita

  • Use of FM BAPI_EQUI_CHANGE to update equipement with customer fields

    Hello all
    I have extended the EQUI table with customer fields using customer include structure and append structure.
    I want to populate these customer fields with BAPI BAPI_EQUI_CHANGE Or BAPI_EQUI_CREATE.
    So I have extended the structure ITOB appending the same customer fields as in table EQUI.
    I have enhanced the function MAPXI_BAPI_ITOB_TO_ITOB which map data from structure BAPI_ITOB to internal structure ITOB.
    But the fields are not populated ?
    Has someone already the BAPI in that way ?
    Thanks
    Jerome

    Hello all
    I have extended the EQUI table with customer fields using customer include structure and append structure.
    I want to populate these customer fields with BAPI BAPI_EQUI_CHANGE Or BAPI_EQUI_CREATE.
    So I have extended the structure ITOB appending the same customer fields as in table EQUI.
    I have enhanced the function MAPXI_BAPI_ITOB_TO_ITOB which map data from structure BAPI_ITOB to internal structure ITOB.
    But the fields are not populated ?
    Has someone already the BAPI in that way ?
    Thanks
    Jerome

  • Handling Extension Structure using BAPI in Unicode environment

    Hi,
    I am using the BAPI BAPI_OUTB_DELIVERY_CREATE_SLS  to create Outbound Delivery.
    We have a nested include structure in LIPS which has mixed field type.
    Since BAPIPAREX is used to pass the value for Extension fileds, I have problem with the Unicode environment. Packed fields are filled with '#''s, Can someone who come cross similar issue could help me please.

    In BAPI the structure I want to populate : EXTENSION_IN
    The custom append structure is in: LIPS
    Append structure name: OILLIPS
    (Below are Some fields in structure)
    .INCLUDE     OID_EX          0
    OID_EXTBOL       OID_EXTBOL     CHAR     16
    OID_MISCDL       OID_MISCDL     CHAR     16
    .APPEND       YOID_EX          0
    YYARC       YYVARC                         CHAR                           21
    YYLRN       YYVLRN     CHAR     22
    YYEPC       YYVEPC     CHAR     4
    YY_NOMNR       OIJ_NOMNR     CHAR     20
    YY_NOMTYP     OIJ_NOMTYP     CHAR     4
    YY_PASSTHROUGH     YYMPASSTHROUGH     CHAR     1
    YY_PARCEL     YYMPARCEL     NUMC     3
    YY_TRD_PARCEL     YYMTRD_PARCEL     NUMC     3
    YY_LD_LOCID     YYMLD_LOCID     CHAR     10
    YY_DC_LOCID     YYMDC_LOCID     CHAR     10
    YY_NOM_TSYST     OIJ_TSYST     CHAR     10
    YY_NOM_CREYEAR     YYMCREYEAR     NUMC     4
    YY_NOM_CYCLE     OIJ_CYCLE     CHAR     10
    .INCLUDE     OIC_PIPE          0
    I tried using field-symbols and casting and also CALL METHOD cl_abap_container_utilities=>fill_container_c. Both are giving only hexadecimal values and then when tired to assign this hexadecimals values to character field i am getting "#"'s.
    This morning, when I tired by defining a structure with field correspond to this append structure as character field with length corresponding to each field and then assign individual field one by one it takes the value. There should be an efficient way of handling this scenario.

Maybe you are looking for

  • Oracle DB 10g to 11g Upgrade

    Hi, We have a SAP Oracle Database, the size is 1.5 TB. The Hardware details are Application – SAP ERP 6.0 EHP5 SPS6 Database – Oracle 10.2.0.2 OS Platform – AIX 5.3 TL05, SP06 HW – 8 Dual Core CPU's, 256 GB RAM on DB-CI server Test Environment : 32 G

  • Report error:ORA-06502: PL/SQL: numeric or value error: character string bu

    We face the above error in HTMLDB (APEX) application Ver 3.1.0. This occurs when we try to display more number of rows/records in drop-down list (LOV in tabular forms). We are able to display 200 records in LOV. When the list of records exceeds 230,

  • DNS Requirements in Exchange 2013: Which RR's to create & what do they do?

      Hi Experts, I had been primarily a RHEL guy in the past. Currently, I have 3 Node (All-in-one) Exchange 2013 DAG (all 3 nodes are virtualized in Hyper-V 2012 and are a part of HyperV2012 Cluster). In DNS, I have created 3 A records for mail.domain.

  • Oracle 9.0.1.1.1 For Windows/2000 HTTP server

    I can not start Oracle HTTP Server after Oracle 9.0.1.1.1 installation . I am getting error : The application or DLL $ORA_HOME\Apache\JServ\ApacheModuleJServ.dll is not a Valid Windows Image . Bad dll file in install disks ? File ApacheModuleJServ.dl

  • MS Word for Macs 2011 in Mavericks - can you help with text formatting?

    When I try to copy and paste text in MS Word for Macs 2011 (14.3.9) the text doesn't retain its formatting. I'm running a year old 27" iMac with OS 10.9.1 Mavericks. My other Mac is still running OS 10.8.5 and the same verision of Word works fine. An