Where is ADRN2 field in SA BAPI BUS2012

Hi,
We have to populate address number under delivery address tab in SA and we are creating SA using LSMW BAPI method .
So wanted to know under which structure (from below mentioned) at step4 ADNR2 field is available so that field mapping can be done at step5. Also would appreciate if you can pin point the field at step 5 for the same.
   E1PURSAG_CREATE        Header segment                                               <<<<
       E1BPMEOUTHEADER        Header Data Outline Agreement
       E1BPMEOUTHEADERX       Header Data Change Parameter Outline Agreement
       E1BPMEOUTADDRVENDOR    Address Structur Vendor Address
           E1BPMEOUTADDRVENDOR1   Address Structur Vendor Address
       E1BPMEOUTEIKP          Foreign Trade Data Header - Outline Agreement
       E1BPMEOUTEIKPX         Foreign Trade Data Header - Change Par. Outline Agreement
       E1BPMEOUTTECH          Technical Parameters for Outline Agreement BAPIs
       E1BPMEOUTITEM          Item Data of Contract
           E1BPMEOUTITEM1         Item Data of Contract
       E1BPMEOUTITEMX         Item Data Change Parameter for Outline Agreement
       E1BPMEOUTACCOUNT       Account Assignment Data - Outline Agreement
       E1BPMEOUTPROFITSEGMENT Acct Assgt: Prof. Segment Calc. (CO-PA) Outline Agreement
       E1BPMEOUTACCOUNTX      Account Assignment Data - Change Parameter - Outl. Agreement
       E1BPMEOUTSCHEDULE      Delivery Schedule Line Data Outline Agreement
       E1BPMEOUTSCHEDULEX     Schedule Line Data - Change Parameter - Outline Agreement
       E1BPMEOUTCOMPONENT     Component Data - Outline Agreement
       E1BPMEOUTCOMPONENTX    Component Data - Change Parameter - Outline Agreement
       E1BPMEOUTSHIPP         BAPI Shipping Data for Stock Transport Orders
       E1BPMEOUTSHIPPX        BAPI Shipping Data Change Parameter
       E1BPMEOUTSHIPPEXP      Export Structure for Shipping Data
       E1BPMEOUTADDRDELIVERY  PO Item: Address Structure BAPIADDR1 for Inbound Delivery
           E1BPMEOUTADDRDELIVERY1 PO Item: Address Structure BAPIADDR1 for Inbound Delivery
       E1BPMEOUTVALIDITY      Validity Periods of Conditions
       E1BPMEOUTVALIDITYX     Change Parameter - Validity Periods for Conditions
       E1BPMEOUTCONDITION     Master Conditions in Outline Agreement
       E1BPMEOUTCONDITIONX    Change Parameter - Master Conditions in Outline Agreement
       E1BPMEOUTITEMSCALEVAL  Value-Based Scales
       E1BPMEOUTITEMSCALEQUAN Quantity Scales for Conditions
       E1BPMEOUTEIPO          Foreign Trade Data - Outline Agreement
       E1BPMEOUTEIPOX         Foreign Trade Data - Change Parameter - Outline Agreement
       E1BPMEOUTITEMTEXT      Text Data - Outline Agreement
       E1BPMEOUTTEXT          Header Text - Outline Agreement
Thanks
Vihaan

resolved

Similar Messages

  • Reg: Mandatory fields updation with BAPI

    Hi..
    We are working on BDC using BAPI. In this if flat files contians only 4 fields and the mandatory fields in the application are seven then system needs to through error message. But with BAPI the program is updating the database without throwing error eventhough all mandatory fileds are not filled up with data.. Where exactly we need to do modifications to get error message when mandatory fields are not filled up with input.
    Regards

    Hi Verendra
    Sometimes the function modules/BAPI's used by SAP do a direct update on the database tables. In such scnearios the entries are created in the system even though if the mandatory entries are not filled.
    If the number of mandatory fields are small, then before the BAPI call,  check if all the mandatory fields are filled or not;throw error in case of empty fields & bypass the BAPI call.
    In case the mandatory fields are too high, then in that case, please use BDC recording to update the data.
    Regards
    Chetan
    PS:Reward points if you find this helpful.

  • How to find where the screen field is stored in table

    Hi all,
    How to find where the screen field  is stored in the table .
    for some transactions if i press F1 on the field and after checking for the technical help.
    I can only find the struture for the screen field, but whereas i need table name for it.
    Can anybody help me how to find the table name where the field is stored.
    Regards,
    Madhavi

    Hi,
    Just hitting a F1 on screen field and getting structure name will not help in getting table name.
    First you need to know the flow of data in the reqd module, which will help you know all the tables in that module with there most of the fields with the data flow, now you need to work on your own to figure out that in which actual tables that value is stored.
    Hope this helps you.
    Regards,
    Tarun

  • Concept of 'x' fields mapping in BAPI

    Hi Experts,
    Please explain the concept of 'x' fields mapping in BAPI. Why do we need that ?
    Thanks
    ~Sid
    "Max points are guarenteed"

    As the previous answer says, it's a "true / false" flag to say you want the changes applied to a particular field... the BAPI code cannot just say:
      if not some_field_name is initial.
        change value of some_field_name.
      endif.
    because the initial value may be a valid value for "some_field_name" so you wouldn't be able to clear the field out with this logic.. so instead the BAPI logic is more like:
      if some_field_name_flag = 'X'.
        change value of some_field_name.
      endif.

  • In transaction scase, where is the field 'status' stored ?

    Hi
    in transaction scase, where is the field 'status' stored (in Hdr. data), for a specific BP ?
    thx.
    Edited by: avijit saxena on Nov 12, 2008 10:10 PM

    table>srmprotocol>filter on [ACT_ID] 'attribute change'>choose colom 'arg_string'->filter on 'stat_orderno'

  • Using BADI to populate EBAN-ADRN2 field

    I have an issue that requires me to use a userexit or BADI. When Planned Orders are converted to PRs in MD14/MD15, the field EBAN-ADRN2 are not populated with a delivery address which is to be based on MRP Controller (EBAN_DISPO). So I need to use a user exit to fix this problem. So far I can seem to find any user exits for this.
    So I have decided to use the BADI ME_REQ_POSTED to update the ADRN2 field in EBAN. I don't know if this is the best BADI to use. From my research I think this BADI can be only used for data checking and not updating.
    I need to know whether I can proceed with using this BADI or not is there any other that I can use? I am also new to Abap Objects. I don't know how to code and what functions to use. I need some help on the coding part.
    I need to solve this urgently. Please do help.

    Now I am using a different BADI which is MD_PURREQ_CHANGE. There are two methods in this BADI and I am using CHANGE_BEFORE_SAVE_CONV which saves changes to the PR created From Planned Order in MD15. Here is the code that I did in this method:
      if im_plaf-dispo = 'GS1'.
        ch_eban-adrn2 = '22658'.
        ch_changed = 'X'.
      elseif im_plaf-dispo = 'PW1'.
        ch_eban-adrn2 = '22722'.
        ch_changed = 'X'.
      endif.
    The method receives the PLAF table and changes the EBAN-ADRN2 field which is the delivery address.
    This BADI works fine. The ADRN2 field in EBAN is successfully populated. But whhen I attempt to view the PR in ME53N, I am receiving an 'EXIT' message from the system saying 'Address doesn't exist 22658  11000221 00001'; and the process is terminated and returned to the initial SAP screen.
    I would like to know if my code is correct or is there anyone who can give me an idea on why this happening.

  • Can in know where sales forecasting field will be there in material master

    hi,
    sap gurus,
    good evening to all,
    can i know where sales forecasting field will be there in material master record,
    because its asking that u have not mentioned the status in ur material master record.
    plz help me on this.
    regars

    Dear balaji
    In material master, there is a tab "Forecasting"  which will come after MRP4.  If you select this tab, you can see a field "Forecast model".
    If you are unable to see this tab in MM01, go to OMS2, select the material type and click on blue lens on top left so that you can see a tab "User departments".   Select from here the said tab and save.  Now go to MM01 and you can see the tab displays there.
    thanks
    G. Lakshmipathi

  • Provide me a business senario where we have to use muiltple BAPIs

    Dear Friends,
    I am calling Bapis in Sap using  JCo calls and creating instance in the SalesOrder object .And now i want to test calling multiple Bapis to achieve a business requirement. So pls friends with ur experience provide me a  nice business situation where we need to call muiltiple Bapis in a particular sequence and then Commit it.
    Pls Do Tell Me ,Whether I have To Commit after Each Bapis Call
    Or at last one Commit for all the Bapi calls we do the  Work.
    Waiting for ur responses.
    Thx
    jeevan

    Hi kumar
    If u want to update the data in the transaction which is dealing with multiple tables then we go for multiple BAPI's.
    Usually for huge data updation we use multiple BAPI's.
    For example.
    To update the batch characteristics in the transaction msc2n we want to use multiple BAPI's.  suppose u have the material, batch and the plant as a header item which has a ration of 1:1 and for this header item u have n numbers of characteristics to update which is of different Behavior. then we want to use multiple bapi's.
    No need to call commit after each bapi. U can code it at last.
    Regards
    Sowmya

  • Calculate tax item field name in bapi .. bapi_acc_document_post

    Hello Friends,
    Im using Bapi>> Bapi_acc_document_post to post vendor and customer invoices, im not getting mapping field for the "calculate tax item(checkbox)" technical name is xmwst in any of the bapi strucuture.
    please tell me in which bapi structure we have to pass this field so that the tax amount should get calculated automatically.
    regards,
    Sunny

    You can try the Financial Posting Interface (FIPI).
    *=======================================================================
    CONSTANTS:
    *=======================================================================
                c_typehead  TYPE stype_pi VALUE 'K',
                c_typepos   TYPE stype_pi VALUE 'P',
                c_waers     TYPE waers    VALUE 'EUR',
                c_blart     TYPE blart    VALUE 'ZN',
                c_debit     TYPE bschl    VALUE  '40',
                c_credit    TYPE bschl    VALUE  '50',
                c_inddebit  TYPE shkzg    VALUE  'S',
                c_indcredit TYPE shkzg    VALUE  'H'.
    *===================================================================
    FORM append_ftpost
    *===================================================================
                      USING    p_stype   TYPE stype_pi
                               p_count   TYPE count_pi
                               p_fnam    TYPE bdc_fnam
                               p_fval    TYPE any
                      CHANGING pt_ftpost TYPE tt_ftpost.
      DATA: ls_ftpost LIKE LINE OF pt_ftpost.
      CLEAR ls_ftpost.
      ls_ftpost-stype = p_stype.
      ls_ftpost-count = p_count.
      ls_ftpost-fnam  = p_fnam.
      ls_ftpost-fval  = p_fval.
      APPEND ls_ftpost TO pt_ftpost.
    ENDFORM.                    "append_ftpost
    *===================================================================
    FORM post_document
    *===================================================================
                        USING    p_bukrs   TYPE bukrs
                                 p_gjahr   TYPE gjahr
                                 p_monat   TYPE monat
                                 p_tip     TYPE zga_nomtipcont
                                 p_saknr   TYPE saknr
                                 p_bktxt   TYPE bktxt
                                 pt_pos    TYPE tt_pos.
      DATA: lt_blntab TYPE tt_blntab,
            lt_ftpost TYPE tt_ftpost,
            lt_fttax  TYPE tt_fttax,
            ls_blntab LIKE LINE OF lt_blntab.
      REFRESH: lt_blntab,
               lt_ftpost,
               lt_fttax.
      CALL FUNCTION 'ENQUEUE_EZGA_NOMLOG'
        EXPORTING
          bukrs          = p_bukrs
          gjahr          = p_gjahr
          monat          = p_monat
          tipcont        = p_tip
          _wait          = 'X'
        EXCEPTIONS
          foreign_lock   = 1
          system_failure = 2
          OTHERS         = 3.
      IF sy-subrc IS NOT INITIAL.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      PERFORM fill_bkpf USING    p_bukrs p_gjahr
                                 p_monat p_bktxt
                        CHANGING lt_ftpost.
      PERFORM fill_bseg USING    p_saknr p_bktxt
                        CHANGING pt_pos lt_ftpost.
      CALL FUNCTION 'POSTING_INTERFACE_START'
        EXPORTING
          i_function = 'C'
          i_mode     = 'N'
          i_update   = 'S'.
      CALL FUNCTION 'POSTING_INTERFACE_DOCUMENT'
        EXPORTING
          i_tcode  = 'FB01'
        IMPORTING
          e_msgid  = sy-msgid
          e_msgno  = sy-msgno
          e_msgty  = sy-msgty
          e_msgv1  = sy-msgv1
          e_msgv2  = sy-msgv2
          e_msgv3  = sy-msgv3
          e_msgv4  = sy-msgv4
          e_subrc  = sy-subrc
        TABLES
          t_blntab = lt_blntab
          t_ftpost = lt_ftpost
          t_fttax  = lt_fttax.
      IF sy-subrc IS NOT INITIAL.
        MESSAGE i021(zga_nom).
      ELSE.
    *  Grabación en tabla de log y mensaje
        READ TABLE lt_blntab INTO ls_blntab INDEX 1.
        IF sy-subrc        IS INITIAL AND
           ls_blntab-belnr IS NOT INITIAL.
          PERFORM insert_log USING p_bukrs
                                   p_gjahr
                                   p_monat
                                   p_tip
                                   ls_blntab-belnr.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ELSE.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
      CALL FUNCTION 'POSTING_INTERFACE_END'
        EXCEPTIONS
          session_not_processable = 1
          OTHERS                  = 2.
      CALL FUNCTION 'DEQUEUE_EZGA_NOMLOG'
        EXPORTING
          bukrs   = p_bukrs
          gjahr   = p_gjahr
          monat   = p_monat
          tipcont = p_tip.
    ENDFORM.                    " post_document
    *===================================================================
    FORM insert_log
    *===================================================================
                    USING p_bukrs TYPE bukrs
                          p_gjahr TYPE gjahr
                          p_monat TYPE monat
                          p_tip   TYPE zga_nomtipcont
                          p_belnr TYPE belnr_d.
      DATA: lv_belnr TYPE belnr_d,
            ls_log   TYPE zga_nomlog.
      CLEAR: lv_belnr, ls_log.
      ls_log-bukrs   = p_bukrs.
      ls_log-gjahr   = p_gjahr.
      ls_log-monat   = p_monat.
      ls_log-tipcont = p_tip.
      ls_log-belnr   = p_belnr.
      SELECT SINGLE belnr INTO lv_belnr
        FROM zga_nomlog
        WHERE bukrs   = p_bukrs AND
              gjahr   = p_gjahr AND
              monat   = p_monat AND
              tipcont = p_tip.
      IF sy-subrc IS INITIAL.
        UPDATE zga_nomlog FROM ls_log.
      ELSE.
        INSERT zga_nomlog FROM ls_log.
      ENDIF.
    ENDFORM.                    "insert_log
    *===================================================================
    FORM get_posting_date
    *===================================================================
                          USING    p_gjahr TYPE gjahr
                                   p_monat TYPE monat
                          CHANGING p_date  TYPE dats.
      DATA: lv_date TYPE dats,
            lv_month TYPE tfmatage.
      IF p_monat <= '12'.
        CONCATENATE p_gjahr p_monat '01' INTO lv_date.
        CALL FUNCTION 'FIMA_END_OF_PERIOD_DETERMINE'
          EXPORTING
            i_date               = lv_date
            i_months             = '1'
          IMPORTING
            e_date_end_of_period = p_date.
      ELSE.
        CONCATENATE p_gjahr '1231' INTO p_date.
      ENDIF.
    ENDFORM.                    "get_posting_date
    *======================================================================
    FORM fill_bkpf
    *======================================================================
                     USING    p_bukrs   TYPE bukrs
                              p_gjahr   TYPE gjahr
                              p_monat   TYPE monat
                              p_bktxt   TYPE bktxt
                     CHANGING pt_ftpost TYPE tt_ftpost.
      DATA: lv_posting_date TYPE dats,
            lv_dats TYPE char10.
      PERFORM get_posting_date USING    p_gjahr p_monat
                               CHANGING lv_posting_date.
      WRITE lv_posting_date TO lv_dats.
      PERFORM append_ftpost USING    c_typehead '1'
                                     'BKPF-BUKRS' p_bukrs
                            CHANGING pt_ftpost.
      PERFORM append_ftpost USING    c_typehead '1'
                                     'BKPF-MONAT' p_monat
                            CHANGING pt_ftpost.
      PERFORM append_ftpost USING    c_typehead '1'
                                     'BKPF-BLART' c_blart
                            CHANGING pt_ftpost.
      PERFORM append_ftpost USING    c_typehead '1'
                                     'BKPF-BUDAT' lv_dats
                            CHANGING pt_ftpost.
      PERFORM append_ftpost USING    c_typehead '1'
                                     'BKPF-BLDAT' lv_dats
                            CHANGING pt_ftpost.
      PERFORM append_ftpost USING    c_typehead '1'
                                     'BKPF-WAERS' c_waers
                            CHANGING pt_ftpost.
      *PERFORM append_ftpost USING    c_typehead '1'*
                                     *'BKPF-XMWST'  'X'*
                            *CHANGING pt_ftpost.*
      PERFORM append_ftpost USING    c_typehead '1'
                                     'BKPF-BKTXT' p_bktxt
                            CHANGING pt_ftpost.
      PERFORM append_ftpost USING    c_typehead '1'
                                     'BKPF-XBLNR' p_bktxt+0(16)
                            CHANGING pt_ftpost.
    ENDFORM.                    "fill_bkpf
    *===================================================================
    FORM fill_bseg
    *===================================================================
                          USING  p_saknr   TYPE saknr
                                 p_bktxt   TYPE bktxt
                        CHANGING pt_pos    TYPE tt_pos
                                 pt_ftpost TYPE tt_ftpost.
      DATA: ls_pos      LIKE LINE OF pt_pos,
            ls_ftpost   LIKE LINE OF pt_ftpost,
            lv_item     TYPE buzei,
            lv_wrbtr    TYPE wrbtr,
            lv_saknr    TYPE saknr,
            lv_bschl    TYPE bschl,
            lt_poscont  TYPE TABLE OF zga_nompospost,
            ls_poscont  LIKE LINE OF lt_poscont,
            ls_poscontaux LIKE LINE OF lt_poscont.
      CLEAR: ls_pos, ls_ftpost.
      REFRESH lt_poscont.
      LOOP AT pt_pos INTO ls_pos.
        MOVE-CORRESPONDING ls_pos TO ls_poscont.
        APPEND ls_poscont TO lt_poscont.
      ENDLOOP.
      SORT lt_poscont BY saknr.
      lv_item = '002'.
      LOOP AT lt_poscont INTO ls_poscontaux.
        ls_poscont = ls_poscontaux.
        AT NEW saknr.
          CLEAR: lv_wrbtr,
                 lv_saknr,
                 lv_bschl.
        ENDAT.
        CASE ls_poscont-shkzg.
          WHEN c_inddebit.
            lv_bschl = c_debit.
          WHEN c_indcredit.
            lv_bschl = c_credit.
        ENDCASE.
        IF ls_poscont-saknr IS INITIAL.
          lv_saknr = p_saknr.
        ELSE.
          lv_saknr = ls_poscont-saknr.
        ENDIF.
        IF ls_poscont-indhkont = abap_true.
          lv_wrbtr = lv_wrbtr + ls_poscont-wrbtr.
        ELSE.
          PERFORM fill_bsegpos USING   lv_bschl lv_saknr
                                       ls_poscont-wrbtr p_bktxt
                                       ls_poscont-kostl ls_poscont-prctr
                                       lv_item
                              CHANGING pt_ftpost.
          CLEAR: lv_wrbtr,
                 lv_saknr,
                 lv_bschl.
          lv_item = lv_item + 1.
        ENDIF.
        AT END OF saknr.
          IF ls_poscont-indhkont = abap_true.
            PERFORM fill_bsegpos USING   lv_bschl lv_saknr
                                         lv_wrbtr p_bktxt
                                         ls_poscont-kostl ls_poscont-prctr
                                         lv_item
                                CHANGING pt_ftpost.
            lv_item = lv_item + 1.
          ENDIF.
        ENDAT.
      ENDLOOP.
    ENDFORM.                    "fill_bseg
    *===================================================================
    FORM fill_bsegpos
    *===================================================================
                        USING    p_bschl   TYPE bschl
                                 p_saknr   TYPE saknr
                                 p_wrbtr   TYPE wrbtr
                                 p_bktxt   TYPE bktxt
                                 p_kostl   TYPE kostl
                                 p_prctr   TYPE prctr
                                 p_pos     TYPE buzei
                        CHANGING pt_ftpost TYPE tt_ftpost.
      DATA: lv_wrbtrstr TYPE char16.
      WRITE  p_wrbtr TO lv_wrbtrstr
                    CURRENCY c_waers NO-SIGN.
      PERFORM append_ftpost USING    c_typepos p_pos
                               'BSEG-BSCHL' p_bschl
                      CHANGING pt_ftpost.
      PERFORM append_ftpost USING    c_typepos p_pos
                                     'BSEG-HKONT' p_saknr
                            CHANGING pt_ftpost.
      PERFORM append_ftpost USING    c_typepos p_pos
                                     'BSEG-WRBTR' lv_wrbtrstr
                            CHANGING pt_ftpost.
      PERFORM append_ftpost USING    c_typepos p_pos
                                     'BSEG-SGTXT' p_bktxt
                            CHANGING pt_ftpost.
      IF p_kostl IS NOT INITIAL.
        PERFORM append_ftpost USING    c_typepos p_pos
                                      'COBL-KOSTL' p_kostl
                             CHANGING pt_ftpost.
      ENDIF.
      IF p_prctr IS NOT INITIAL.
        PERFORM append_ftpost USING    c_typepos p_pos
                                      'COBL-PRCTR' p_prctr
                             CHANGING pt_ftpost.
      ENDIF.
    ENDFORM.                    "fill_bsegpos
    Edited by: Javier Meavilla Olivas on Feb 25, 2010 1:25 PM

  • Validation for a extension field in the BAPI ( BAPI_ACC_DOCUMENT_CHECK)

    Hi,
    I am working on an in terface for upload of data in journal ledger(FB50)
    Actually i need to validate a field which has been included in transaction FB50 as an enhancement based on customer need .
    a function module was created as suggested in note 487722 earlier but now we require to validate that field(transaction type) as i am using this BAPI in an interface for journal ledger posting FB50 for data validation of the file data.
    this field has been populated as a part of the extension parameter in the bapi -
    (( BAPI_ACC_DOCUMENT_CHECK)
    field values for this field have been passed in the business transaction.
    but i am not sure where to code the validation for this field .
    could anybody suggest if we need to do it in include ZXACCU15 .
    if so then how do we populate the values for the return parameter.
    i am post ing document using IDOC and need to generate the for the errors generated.
    it already shows for all the standard fields of the transaction.
    Its a bit urgent,
    help wud be appreciated
    jy

    Hello Jy
    The following coding shows how to evaluate the existence of the transaction type in table T856 and how to create the corresponding BAPI message (using function module <b>BALW_BAPIRETURN_GET2</b>):
    *& Report  ZUS_SDN_BAPIRETURN_GET2
    REPORT  zus_sdn_bapireturn_get2.
    START-OF-SELECTION.
      " Call BTE function within BAPI (actually OPEN_FI_PERFORM_RWBAPI01_P
      " calls the z-function module)
    **  CALL FUNCTION 'Z_FI_INTERFACE_RWBAPI01'
    **    TABLES
    **      c_accit           =
    **      c_acccr           =
    **      c_return          =
    **      c_extension       =
    **      c_accwt           =
    **    changing
    **      c_acchd           =
      " Coding within your BTE function module:
      DATA:
        ls_return    TYPE bapiret2.
    * transaction type
      READ TABLE it_accit INTO ls_accit
           WITH KEY posnr = ld_posnr.
      CHECK ( sy-subrc EQ 0 ).
      ld_tabix = sy-tabix.
      ls_accit-posnr = ld_posnr.
      ls_accit-rmvct = ls_bapi_extension-field3.
      MODIFY it_accit FROM ls_accit INDEX ld_tabix.
    " Validate existence of transaction type
      SELECT SINGLE * FROM  t856 into ls_t856
             WHERE  trtyp  = ls_accit-rmvct.
      if ( syst-subrc ne 0 ).
        " Note: the following IF condition looks apparently strange yet its primary
        "         use is to ensure that the Where-Used-List for message 014(GC)
        "         will find our function module
        if 1 = 2.  MESSAGE e014(gc) WITH ls_accit-rmvct.  endif.
    *   Transaction type & is not defined
        clear: ls_return.
        ls_return-message_v1 = ls_accit-rmvct.  " type conversion
        CALL FUNCTION 'BALW_BAPIRETURN_GET2'
          EXPORTING
            type             = 'E'
            cl               = 'GC'
            number           = '814'
            PAR1             = ls_return-message_v1
    *       PAR2             = ' '
    *       PAR3             = ' '
    *       PAR4             = ' '
    *       LOG_NO           = ' '
    *       LOG_MSG_NO       = ' '
    *       PARAMETER        = ' '
    *       ROW              = 0      " ld_tabix
    *       FIELD            = ' '    " RMVCT
          IMPORTING
            RETURN           = ls_return.
        APPEND ls_return TO c_return.
      ENDIF.
    END-OF-SELECTION.
    The advantage of using the function module over directly filling the BAPIRET2 message variable is that the function module generated the message text (field BAPIRET2-message = 'Transaction type '<type>' is not defined').
    Regards
      Uwe

  • Passing field "BSCHL"  to bapi BAPI_ACC_DOCUMENT_POST.

    Hi developers,
                 I've just searched the forum, but I can't find the solution to the following problem:
    I need to use bapi BAPI_ACC_DOCUMENT_POST to simulate FB01 transaction. I need to pass to the bapi the field "BSEG-BSCHL" for each record I have to process, but I can't find where passing it to the bapi.
    Thanks a lot

    Hi,
    The BAPI_ACC_DOCUMENT_POST does not have a BSCHL field. Usually, the documents posted with this FM will automatically have the BSEG-BSCHL as '01 or 11' for Customer documents, and '40 or 50' for G/L Postings. Similar pair exists for Vendor postings, though I can't remember.
    Generally, these Posting Keys should be acceptable to most. If you have special requirements for the docs to post in other posting keys, you may have to use custom BDC recordings or standard load programs like RFBIBL00.
    If this helps, please remember to award points before closing the thread.
    Good luck,
    Bhanu

  • Deleting field value using bapi

    Hi all,
    I want to delete a field VBAP-FIXMG from a report because it is wrong fixed.
    but i want to delete it using a bapi.
    can any one help me out which bapi to use and how to use it.
    thanks.

    Hi,
    Use the BAPI " BAPI_SALESORDER_CHANGE". U can check the docuemntation of it and also where used list to see if we can use the bapi.
    Regards,
    Nagaraj

  • Email and telephone fields in the BAPI change and display in VA13

    Hi All ,
    1, I need to change the email and telephone fields in the BAPI_SALESORDER_CHANGE , but after i give the inputs its not getting updated in VA13.
    2, I am working with FPM screens , in that i have some value in email field in partner details in Va13 , but its not getting displayed in my FPM screen , iam using bapi BAPISDORDER_GETDETAILEDLIST for displaying .
    I have given the link to the partner and address table for change like addr_link and addr_number , still i couldn't change the email values in VA13.
    Please share your ideas!
    Thanks,
    Pradeep.

    Joecui,
    you have to change the standard fm.
    why cant you fill communication infotype with required details so that you dont need to change any code
    Thanks
    Bala Duvvuri

  • Where is the field release creation profile in scheduling agreement?

    Dear experts,
    I need to maintain release creation profile in Scheduling Agreement.
    please let me know where can I find this field in ME31L
    Regards,
    Shashidhar

    Found in More functions - Item details

  • Purchase Req for third party items on SO-where are required fields defined?

    I have that issue where when a third party item is entered on a sales order, it goes on credit hold and when you release it, it tries to create a purch req but can't because of the required field - Val Price is not automatically filled in. I thought I could make the field not required by going to config and under purch
    requistion>Define Screen layout at Doc level and changed the price and
    unit option to optional instead of required but it still treats it like
    a required entry. That config change only affected that field if creating a purch req from scratch, didn't affect if creating one from sales order third party item.
    Thanks for any input!

    Hi Mike,
    Please contact to sd consultant regarding that.
    Regards,
    Anil

Maybe you are looking for

  • Help! Need Part # for IQ804 AC Adapter...Please!

    Hello All, I just bought a TouchSmart IQ804 that was missing its accessories... Can someone Please get the HP part number off of their AC adapter for me so I can order one (so I can turn this thing on) ... Thank You PS: don't want to be a bother, but

  • How do you add Google+1 to a BC website?

    Tried putting the script into the template but it does not render.  Probably an easy fix but I'm not seeing it. Thanks

  • Problem executing  J2ME project (Netbeans 5.0)

    After being away from Netbeans for a couple of months I returned back only to find that it now is impossible to execute J2ME projects :-( I get error message "Execution failed with error code 1" shen the IDE tries to start the emulator. I tried to re

  • How to activate the search

    Hi, We have configured SRM 6.0 -sp04 .However, we are unable to open the created document like shopping cart,PO...etc It seems we need to activate search in webdynpro If you have any idea ,please update the same Thanks and regards Hareesha

  • More complexe menu in Encore

    Hi all, I'd like to know if it's possible in a menu to show some kind of description when highlighting a button. Exemple : you have many episodes : episode 1 , 2 ,and 3 and when you highlight their respective button a short description of the episode