Custom field handling in CATSDB table through BAPI

Hi,
I have enhanced CATSDB table using CI_CATSDB. I have added one field QTY of type DEC(4,2).
to enter timesheet I have written one function as per following code. But system is giving error in statement shown in bold fonts. How to overcome from this problem?
""Local Interface:
*"  IMPORTING
*"     VALUE(EMPLOYEENUMBER) TYPE  HR_PERNR
*"     VALUE(WORKDATE) TYPE  CATSDATE
*"     VALUE(CATSHOURS) TYPE  CATSHOURS
*"     VALUE(WBS_ELEMENT) TYPE  PS_POSID OPTIONAL
*"     VALUE(ACTTYP) TYPE  LSTAR OPTIONAL
*"     VALUE(QTY) TYPE  ZLHR_TIME_QTY OPTIONAL
*"  EXPORTING
*"     VALUE(CATSRECORDS_OUT) TYPE  TCATSDB_EXT
*"  CHANGING
*"     VALUE(RETURN) TYPE  BAPIRET2_T
  DATA:
    wa_catsrecords_in TYPE bapicats1,
    int_catsrecords_in TYPE TABLE OF bapicats1,
    wa_extensionin TYPE bapicats7,
    int_extensionin TYPE TABLE OF bapicats7,
    wa_bapi_te_catsdb TYPE bapi_te_catsdb,
    wa_catsrecords_out TYPE bapicats2.
  wa_catsrecords_in-employeenumber = employeenumber.
  wa_catsrecords_in-workdate = workdate.
  wa_catsrecords_in-acttype = acttyp.
  wa_catsrecords_in-wbs_element = wbs_element.
  wa_catsrecords_in-catshours = catshours.
  APPEND wa_catsrecords_in TO int_catsrecords_in.
  CLEAR wa_catsrecords_in.
  wa_bapi_te_catsdb-row = 1. 
  wa_bapi_te_catsdb-qty = qty.
  wa_extensionin-structure = 'BAPI_TE_CATSDB'.
  wa_extensionin-valuepart1 = wa_bapi_te_catsdb+0(240).
  APPEND wa_extensionin TO int_extensionin.
  CLEAR wa_extensionin.
  CALL FUNCTION 'BAPI_CATIMESHEETMGR_INSERT'
    EXPORTING
      profile         = 'Z_DEMO'
      testrun         = ' '
      release_data    = ' '
    TABLES
      catsrecords_in  = int_catsrecords_in
      extensionin     = int_extensionin
      catsrecords_out = catsrecords_out
      return          = return.

Hi,
   In BD64 you can do the segment level filtering. Go to BD64, search for your distribution model there drill down to "filter settings" the make the required segment filtering.
Thanks,
Asit Purbey.

Similar Messages

  • Sending custom field added in Standard table through idoc

    Hello Folks,
    We have a requirement where custom field of a standard table PA0002 needs to be sent through idoc only to a desired destination system.
    My Approach:
    I have created a custom segment having custom field from PA0002 & mapped this segment in T777D table.
    But the problem with above, is all the system who are receiving PA0002 will be receiving this custom segment also including desired system.
    How can it be filtered?

    Hi,
       In BD64 you can do the segment level filtering. Go to BD64, search for your distribution model there drill down to "filter settings" the make the required segment filtering.
    Thanks,
    Asit Purbey.

  • Sending Custom fields from SRM to ECC through BAPI

    Dear All ,
    I am looking for a step by step instructions on how to send my data i.e Start date and end date at ITEM :LEVEL for limit items from SRM to ECC
    It is currently only sent a Header level . I have almost read all the posts and yet not able to figure out . Please can you some one help me to understand .
    Checked the below
    http://scn.sap.com/thread/476423
    http://scn.sap.com/thread/170189
    http://scn.sap.com/thread/26494
    http://scn.sap.com/thread/1399901
    http://scn.sap.com/thread/1991218
    and also  checked the SAP official page :
    http://wiki.scn.sap.com/wiki/display/ABAP/BAPI?original_fqdn=wiki.sdn.sap.com#BAPI-Passingcustomfield
    http://wiki.scn.sap.com/wiki/display/SRM/Transfer+process+of+the+Shopping+Cart
    http://scn.sap.com/docs/DOC-2726
    However no luck . I also opened a similar thread previously but still unable to get an end to end understanding .Please could some one guide me for this one ?  Currently what I found out there is a class CL_BBP_BS_ADAPTER_PO_CRT_ERP10 where CREATE_DOCUMENT decides what fields would be passed .. In that there is a FM which is being called from ECC .. and in that there is header and header X field ..
    which has the fields which I need VPER start and end date ..
    CALL FUNCTION 'BAPI_PO_CREATE1'
           DESTINATION av_rfc_dest
           EXPORTING
             poheader               = as_po_out-is_poheader      "#EC ENHOK
             poheaderx              = as_po_out-is_poheaderx
    h
    Now I wnat the same fields to be passed at item level of the SC .. Please could you confirm on what exactly I should do ?
    I saw the below tables not sure what I should do with them to include the 2 fields I want which should be passed to ECC .
    TABLES
              poitem                 = as_po_out-it_poitem        "#EC ENHOK
             poitemx                = as_po_out-it_poitemx       "#EC ENHOK
                 extensionin            = as_po_out-it_extensionin   "#EC ENHOK
      *      extensionout      = as_po_out-it_extensionout "not used by SRM
              poexpimpitem      = as_po_out-it_poexpimpitem      "#EC ENHOK
              poexpimpitemx     = as_po_out-it_poexpimpitemx     "#EC ENHOK
             potextheader      = as_po_out-it_potextheader "not used by SRM
    *      popartner         = as_po_out-it_popartner    "not used by SRM
    Please can some one let me know for the below queries :
    1, How to identify If I am checking on the right method .
    2. How I can create these 2 fields voer start date and end date and pass them to EKPO table of PO in ECC ?
    3. How to create these 2 fields in BAP and pass it further from SRM to ecc
    4. How would they be visisble in SC portal screen ..
    Please guide me on this would be really grateful . Thanks in advance for the help
    Regards
    Vinita

    Hi Madhu,
    Please check out this note 1027081 which is for the PO Held in classic scenario.
    Praveen.

  • Updating values in mara table through bapi

    Hi friends,
    I am very new to ABAP , just now i have started my carrier in SAP-ABAP.
    I have to update these three fields MSTAE, EXTWG, MTPOS_MARA in MARA table through bapi. I need to give these values from selection screen followed by Material no.
    I already found some program in the forum  but that programs are very lenthy , i am not able to understand.
    Can anyone help me by giving some idea or sample program so that i can learn how to do this thing.
    Thankx in advance...

    Hi Ritesh,
    Use BAPI_MATERIAL_SAVEDATA to update the entries MSTAE, EXTWG and MTPOS_MARA by passing the following fields:
    DATA: ls_headdata     TYPE  bapimathead,
           ls_clientdata   TYPE  bapi_mara,
           ls_clientdatax  TYPE  bapi_marax,
           ls_return       TYPE  bapiret2.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
       EXPORTING
         input        = ls_material-matnr
       IMPORTING
         output       = ls_headdata-material
       EXCEPTIONS
         length_error = 1
         OTHERS       = 2.
    IF sy-subrc <> 0.
       CLEAR: ls_headdata-material.
    ENDIF.
    ls_clientdata-extmatlgrp  = ls_material-extwg.
    ls_clientdata-pur_status  = ls_material-mstae.
    ls_clientdata-item_cat    = ls_material-mtpos_mara.
    ls_clientdatax-extmatlgrp  = 'X'.
    ls_clientdatax-pur_status  = 'X'.
    ls_clientdatax-item_cat    = 'X'.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
       EXPORTING
         headdata    = ls_headdata
         clientdata  = ls_clientdata
         clientdatax = ls_clientdatax
       IMPORTING
         return      = ls_return.
    IF ls_return-type = 'E' OR ls_return-type = 'A'.
       CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
    ELSE.
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           wait = 'X'.
    ENDIF.
    Thanks & Regards,
    Prasanna

  • Add Custom field of a Z Table in Search structure of Interaction History

    Hi,
    I am trying to add a field in the IC Interaction History. I have enhanced the BOL structure for BTQuery10 and displayed the field in the Web UI. I have implemented the  BADI CRM_RF_SEARCH_EEW, Added entry to CRMC_REPDY for the field.
    But when i enter any value in the Field it is not executing the BADI.  I tried with the Break Point but it has not executed the BADI.
    Please help how to add a Custom field of a Z Table in the Search structure of Interaction History.
    Regards,
    Rajender

    Hi Rajendra,
    You can try this approach.
    You can redefine the genil CL_CRM_BTIL->get_query_dynamic_result method (oneorder) and write the logic only for required object else all the one order objects will be affected.
    Inside the genil modify the search parameters to include additional object id's which corresponds to custom search parameter.
    Check the below logic which is used for activity search based on custom field, in your case modify it with the interaction history object details. Logic is to fetch all the one order object guids based on custom search( via select on custom table) and pass it as input parameter in search.
    DATA :   it_selection_parameters1   LIKE         it_selection_parameters,
                    ls_selection_parameters    LIKE LINE OF it_selection_parameters,
                    ls_selection_param         LIKE LINE OF it_selection_parameters1,
                    lv_attr                    TYPE name_komp.
      DATA:   lt_orderadm_h       TYPE          crmt_orderadm_h_wrkt,
                   it_act_guids        TYPE          crmt_object_guid_tab,
                   lt_requested_obj    TYPE          crmt_object_name_tab,
                   srch_str            TYPE          c                 LENGTH 40,
                  gv_activity_h       TYPE          crmt_object_name  VALUE 'ACTIVITY_H',
                  ls_orderadm_h       LIKE LINE OF  lt_orderadm_h.
    it_selection_parameters1[] = it_selection_parameters[].
      IF iv_query_name EQ 'BTQuery1O'.
        LOOP AT it_selection_parameters INTO ls_selection_parameters.
          CASE ls_selection_parameters-attr_name.
             REPLACE ALL OCCURRENCES OF '*' IN srch_str WITH '%'.
              srch_str = ls_selection_parameters-low .
              IF srch_str CA '%'.
                SELECT ref_guid
                     FROM "Ztable"
                     INTO TABLE it_act_guids
                     WHERE order_typeg LIKE srch_str .
              ELSE.
                SELECT ref_guid
                    FROM  "Ztable"
                    INTO TABLE it_act_guids
                    WHERE order_typeg = srch_str.
              ENDIF.
              INSERT  gv_activity_h  INTO TABLE lt_requested_obj.
              CALL FUNCTION 'CRM_ORDER_READ'
                EXPORTING
                  it_header_guid       = it_act_guids
                  it_requested_objects = lt_requested_obj
                IMPORTING
                  et_orderadm_h        = lt_orderadm_h
                EXCEPTIONS
                  document_not_found   = 1
                  error_occurred       = 2
                  document_locked      = 3
                  no_change_authority  = 4
                  no_display_authority = 5
                  no_change_allowed    = 6
                  OTHERS               = 7.
              IF sy-subrc NE 0.
              ENDIF.
              IF lt_orderadm_h IS NOT INITIAL.
                LOOP AT lt_orderadm_h  INTO ls_orderadm_h.
                  ls_selection_param-attr_name = 'OBJECT_ID'.
                  ls_selection_param-sign   = 'I'.
                  ls_selection_param-option = 'EQ'.
                  ls_selection_param-low    = ls_orderadm_h-object_id.
                  ls_selection_param-high   = ''.
                  IF sy-tabix = 1.
                    DELETE it_selection_parameters1 WHERE attr_name = 'Zttarname'.
                  ENDIF.
                  APPEND ls_selection_param TO it_selection_parameters1.
                  CLEAR:  ls_orderadm_h.
                ENDLOOP.
              ELSE.
                RETURN.
              ENDIF.
      ENDCASE.
        ENDLOOP.
      ENDIF.
      CALL METHOD super->if_genil_appl_intlay~get_dynamic_query_result
        EXPORTING
          iv_query_name           = iv_query_name
          is_query_parameters     = is_query_parameters
          it_selection_parameters = it_selection_parameters1
          iv_root_list            = iv_root_list.
    Hope this helps.
    Cheers,
    Sumit Mittal

  • How Update Custom fields for EABL DB table by using BAPI_MTRREADDOC_UPLOAD

    Hi friends,
    How can I Update Custom fields for EABL DB table by using BAPI_MTRREADDOC_UPLOAD
    for the parameter EXTENSIONIN of type BAPIPAREX
    I am passing the Structure as BAPI_TE_EABL
    in that structure MRIDNUMBER as EABL-ABLBELNR field value
    ZMESSAGE some text of 30 char and
    ZSKIPC of 2 char
    but I am not able to update that data for the MRIDNUMBER (ABLBELNR ) in DB table EABL
    I am getting RETURN Structure message type E
    as
    "Upload interim entries: Maintain one table only"
    Can any one provide me solution
    Thanks in Advance
    Ganesh

    Hi,
    Refer the following SAP notes.
    1. Note 485557 - BAPI_REQUISITION_CREATE: 'EXTENSIONIN' customer enhancements
    2. Note 584902 - BAPI_REQUISITION_CHANGE: ExtensionIn not connected
    3. Note 792132 - EBAN, EBKN: user-defined fields are not filled
    Regards,
    Harish

  • How to get custom field value in vbkd table using "SD_SALESDOCUMENT_CREATE" bapi

    Hi Experts,
    Need your help . In one program Iam using SD_SALESDOCUMENT_CREATE bapi .
    i/p for my report is am excel.
    excel is having  below formatt.
    To create salesdoc we are using SD_SALESDOC_CREATE bapi.
    but After execution of the program we are unable to find the ZZFV_SBCNT (which is custom  field) in VBKD w.r.t salesdocument.
    Need your help what we need to do to reflect the value in vbkd table.
    Here temp will contains the data from excel
    1)
    FORM f_move_header_data .
       wg_header-doc_type            = wg_temp-auart .                   "Order type
       wg_header-sales_org           = wg_temp-vkorg .                   "Sales Organization
       wg_header-distr_chan          = wg_temp-vtweg .                   "Distribution Channel
       wg_header-division            = wg_temp-spart.                    "Division
       wg_header-sales_off           = wg_temp-vkbur .                   "Sales Office
       wg_header-sales_grp           = wg_temp-vkgrp .                   "Sales Group
       wg_header-purch_no_c          = wg_temp-bstnk .                   "Customer purchase order number
       wg_header-pymt_meth           = wg_temp-zlsch  .                  "Payment Method
       wg_header-zzychan_role        = wg_temp-zzychan_role_i.           "Channel Role
       wg_header-zzysub_role         = wg_temp-zzysub_role  .            "Submitter Role
       wg_header-zzy_inv_for_opt     = wg_temp-zzinv_format  .           "Invoice Format Optio
       wg_header-ord_reason          = wg_temp-augru  .                  "Order Reason Code
       wg_header-bill_block          = wg_temp-faksp.                    "Billing Block
       wg_headerx-doc_type            = c_set .                   "Order type
       wg_headerx-sales_org           = c_set .                   "Sales Organization
       wg_headerx-distr_chan          = c_set .                   "Distribution Channel
       wg_headerx-division            = c_set.                    "Division
       wg_headerx-sales_off           = c_set .                   "Sales Office
       wg_headerx-sales_grp           = c_set .                   "Sales Group
       wg_headerx-purch_no_c          = c_set .                   "Customer purchase order number
       wg_headerx-pymt_meth           = c_set  .                  "Payment Method
       wg_headerx-zzychan_role        = c_set.                    "Channel Role
       wg_headerx-zzysub_role         = c_set .                   "Submitter Role
       wg_headerx-zzy_inv_for_opt     = c_set .                   "Invoice Format Option
       wg_headerx-ord_reason          = c_set .                   "Order Reason Code
       wg_headerx-bill_block           = c_set.                    "Billing Block
    ENDFORM.                    " F_MOVE_HEADER_DATA
    2)
    FORM f_move_item_data .
       wg_item-itm_number          =   g_itmnumber.                              "Item number
       wg_item-material            =   wg_process-matnr .                        "Material
       wg_item-target_qty          =   wg_process-target_qty.                    "Targeted Qty
       wg_item-item_categ          =   wg_process-pstyv.                         "Sales document item category
       wg_item-zzylegal_i          =   wg_process-zzlegal.                       "Legal Contract
    **********Added this line for vbkd-ZZFV_SBCNT****************************
       wg_item-zzfv_sbcnt          = wg_process-zzfv_sbcnt.      
    APPEND wg_item TO i_item.
    wg_itemx-material            =   c_set .                        "Material
       wg_itemx-target_qty          =   c_set.                         "Targeted Qty
       wg_itemx-item_categ          =   c_set.                         "Sales document item category
       wg_itemx-zzylegal_i          =   c_set.                         "Legal Contract
       wg_itemx-zzsteady_date       =   c_set .                        "Amortization Start Date
       wg_itemx-zzsteady_end_dat    =   c_set.                         "Amortization Stop Date
    **********Added this line for vbkd-ZZFV_SBCNT****************************
       wg_itemx-ZZFV_SBCNt     =   c_set.   "
       APPEND wg_itemx TO i_itemx.
       CLEAR : wg_itemx. 
    endform. 
    3)           
    FORM f_move_head_ext
    wg_extension-structure   = c_ext_vbak.
       wg_ext_vbak-zzinv_format = wg_temp-zzinv_format.
    wg_ext_vbak-zzychan_role = wg_temp-zzychan_role_i.
       wg_ext_vbak-zzysub_role  = wg_temp-zzysub_role.
       wg_extension+30 = wg_ext_vbak.
    APPEND wg_extension to i_extension.
    CLEAR wg_extension.
       wg_extensionx-structure =  c_ext_vbakx.
       wg_ext_vbakx-zzinv_format = c_set.
      wg_ext_vbakx-zzlegal      = c_set.
       wg_ext_vbakx-zzychan_role = c_set.
       wg_ext_vbakx-zzysub_role  = c_set.
       wg_extensionx+30 = wg_ext_vbakx.
       APPEND wg_extensionx TO i_extensionx.
       CLEAR wg_extensionx.
    ENDFORM.                    " F_MOVE_HEAD_EXT
    *&      Form  F_MOVE_ITEM_EXT
    *       Item Extension
    4)
    FORM f_move_item_ext .
    * Structure for BAPI parameter Extension
       wg_extension-structure = c_ext_vbap.
       wg_ext_vbap-posnr      = g_itmnumber.
       wg_ext_vbap-zzsteady_date       =   wg_process-zzsteady_date .                 "Amortization Start Date
       wg_ext_vbap-zzsteady_end_dat    =   wg_process-zzsteady_end_dat.               "Amortization Stop Date
       wg_ext_vbap-zzlegal             =   wg_process-zzlegal.                        "Legal Contract
       wg_extension+30 = wg_ext_vbap.
    APPEND wg_extension to i_extension.
    * Structure for BAPI parameter Extension - Update Indicator Fields
       wg_extensionx-structure =  c_ext_vbapx.
       wg_ext_vbapx-posnr = g_itmnumber.
       wg_ext_vbapx-zzsteady_date       =   c_set .
       wg_ext_vbapx-zzsteady_end_dat    =   c_set.
    *  wg_ext_vbapx-zzlegal             =   c_set.
    *wg_process-zzfv_sbcnt = c_set.
       wg_extensionx+30 = wg_ext_vbapx.
       APPEND wg_extensionx TO i_extensionx.
       CLEAR wg_extensionx.
    and bapi calling is like below.
    CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
         EXPORTING
           sales_header_in       = wg_header
           sales_header_inx      = wg_headerx
           logic_switch          = wg_logic_switch
           business_object       = fp_bus_obj
           status_buffer_refresh = 'X'
         IMPORTING
           salesdocument_ex      = g_sorder
         TABLES
          return                = i_return
           sales_items_in        = i_item
           sales_items_inx       = i_itemx
           sales_partners        = i_partner
           sales_conditions_in   = i_cond
           sales_conditions_inx  = i_condx
           sales_text            = i_text
           extensionin           = i_extension
         extensionex           = i_extensionx.
    still we are not getting ZZFV_SBCNT value in VBKD table w.r.t created salesdoc(g_sorder)
    Please help me from this issue.
    Thank You..

    Hi,
    Please let me know how to add custom fields in the characteristic list, My clients wants department and profit center grouping.
    Please tell me how to solve it..
    Thanks & Regards,
    Reena..

  • Populating Customized fields in Sales Order Creation using BAPI

    Hi All,
    I have a requirement that, I need to populate 2 customized fields which are appedned in the VBAK tables through Append structure. I am using BAPI_SALESORDER_CREATEFROMDAT2 FM for creating it.
    Could anybody tell me how to send these 2 coustomized field values in this BAPI using EXTERNIN parameter.
    Regards
    Rajesh
    [email protected]

    Hi,
    To add data to custom fields there are two appraoches.
    <b>1)</b>Using the <b>EXTENSIONIN</b> in the Tables option in the FM <b>BAPI_SALESORDER_CREATEFROMDAT2</b>
    Check the Documentation for the same,
    <b>Customer Enhancement for VBAK, VBAP, VBEP</b>
    <i>Description</i>
    You can use this parameter to transfer user-specific enhancments to a BAPI. The customer has to complete the EXTENSION structure and the system automatically continues processing it. If you have not defined any user-specific fields, then you can transfer a blank EXTENSIONIN structure.
    <b>Technical information about Customer Enhancements</b>
    The following description uses an example to explain how to proceed with customer enhancements to the SD tables VBAK, VBKD, VBAP and VBEP.
    The customer has added their own fields to table VBAP using the INCLUDE structure CUTEST. This structure contains 2 fields:
    CFIELD1, CHAR 10
    CFIELD2, CHAR 3.
    The customer also requires that these two fields can be maintained with the BAPI.
    1. Maintain structure CUTEST in table VBAP
    2. Because the BAPIs work with checkboxes, you must also define a CUTESTX checkbox for the customer structure. It should be structured like this:
    Field name       Data element
    CFIELD1            CHAR1
    CFIELD2          CHAR1
    3. Define these customer structures in the structures VBAPKOZ und VBAPKOZX using INCLUDE or APPEND.
    4. Add the customer structures to the BAPE_VBAP and BAPE_VBAPX BAPI structures using the APPEND technique.
    5. Adjust the following structures for customer enhancements to table VBAK:
    a) VBAKKOZ
    b) VBAKKOZX
    c) BAPE_VBAK
    d) BAPE_VBAKX
    6. Adjust the following structures for customer enhancements to table VBEK:
    a) VBEPKOZ
    b) VBEPKOZX
    c) BAPE_VBEP
    d) BAPE_VBEPX
    7. Generally, the data should be added to the BAPI interface in the internal communication structures (VBAKKOM, and so on). There, you can process the data in the SD tables (VBAK, and so on).
    8. If the EXTENSIONIN parameter contains customer data, you must complete at least the key fields in the relevant standard parameters.
    <i>For example:</i>
    You want to change customer field VBAP-CFIELD2 for item 20 to "XYZ" in order 4711.
    The following entries are expected:
    Import:     BAPIVBELN-VBELN       = '0000004711'  Document number
                BAPISDHD1X-UPDATEFLAG = 'U'           UPDKZ for doc header
    Tables:     BAPISDITM-ITM_NUMBER  = '000020'      Item number
                BAPISDITMX-ITM_NUMBER = '000020'      Item number
              + BAPISDITMX-UPDATEFLAG = 'U'           UPDKZ for item
    You must complete the EXTENSION table as follows:
    STRUCTURE                          VALUEPART1       1234561234567890123
    BAPE_VBAP                       0000004711000020                 XYZ
    BAPE_VBAPX                      0000004711000020       X
    <b>Further Information</b>
    You can find more information in the BAPI programming guide in the chapter for enhancements to BAPIs.
    Notes
    You must complete the STRUCTURE field with the name of the relevant enhancement structure (BAPE_VBAK, BAPE_VBAP, BAPE_VBEP). You can complete the remaining fields with the append structures from the enhancement structures.
    At the moment, you can use the BAPI to store enhancements in the following structures:
    VBAK : An enhancement to header data requires an append structure to BAPE_VBAK and an enhancement to structure VBAKKOZ.
    VBAP : An enhancement to item data requires an append structure to BAPE_VBAP and an enhancment to structure VBAPKOZ.
    VBEP : An enhancement to schedule line data requires an append structure to BAPE_VBEP and an enhancement to structure VBEPKOZ.
    VBKD : If you are using an enhancement for header data, you must add an append structure to BAPE_VBAK. You also need to enhance structure VBAKKOZ. If it is for item data, you need to add an append structure to BAPE_VBAP. You must also enhance structure VBAPKOZ.
    If you also want to work with checkboxes, each X-structure must also contain an append structure.
    For example:
    A customer has created an order and wants to include the material long text (50 digits long).
    The EXTENSIONIN structure must be completed with BAPE_VBAP. Two fields have fixed definitions in this structure. These are in the VBAP host key (VBELN, POSNR). The customer sets up an append structure that contains field ZMAT50.
    Because the VBELN is normally blank when you create an order, the data can look like this:
    STRUCTURE   |BAPE_VBAP
    <b>2)</b> Create the Sales Document using the FM and when successfully craeted you will get the Sales Document No in the Export parameter <b>SALESDOCUMENT</b>.
    After its created and Committed using <b>BAPI_TRANSACTION_COMMIT</b> , do a <b>BDC</b> recording for the same to (<b>VA02</b> Change Sales Order) update the fields only and save the document.
    Regards,
    AS

  • Updating custom field in a standard table - AFVC

    Hi All,
    We have created a custom field in table AFVC. While updating other things related to that Order/Operation, we need to update this custom field.
    Can you kindly let me know how we can approach this? Do we use a direct Modify/update statement in such cases to update the standard sap table?
    Regards
    An

    Hi Ankur,
    There are few ways to do.
    1) Implement the screen field in the transaction at the operation level for visibilty to all the reason code. After updation of USER STATUS you need write the small utlity to update that field through LSMW or any other way to update this field in the transaction directly to save in the database table.
    2) AFVC means orders operation data. In this table many types of order data will store so you have to choose which type of order you are going to update whether it will be Internal order or production order or maintaineance order etc..
    3) Direct updation is last preference if there is no way for updation.
    Please let me know which order cateogry you are updating from thrid party sytem to your current system.
    As J@Y said if you are updating through some function module then in that case for BAPI's there is separate structure EXTENSION_IN and OUT to update the custom fields.
    Thanks,
    Satheesh

  • Update Custom fields in MSEG in MIGO through MB_MIGO_BADI

    Hi All,
    I have to update my custom fields in MSEG table after getting them from user in MIGO transaction. I am using BADI--> MB_MIGO_BADI for this. There is method called POST_DOCUMENT in BADI but it is having MSEG as importing parameter. Also, How can i send my custom fields to BADI. If some how I send them how to update MSEG through this BADI.
    Please help me out in this. This is urgent.
    Thanks,
    Ravi

    Hi Ravi,
        I have the same issue . So can you please help me on the same.
        Through the BADI : MB_MIGO_BADI~POST_DOCUMENT method I have to update a customer field named zznotno.
           Added By Kamal on 21/07/2010 Ticket No 8000003778 ***
      DATA : lt_goitem TYPE TABLE OF goitem,
             wa_goitem LIKE LINE OF lt_goitem. .
      FIELD-SYMBOLS: <mseg> TYPE mseg,
                     <fs>   TYPE ANY.
      IMPORT lt_goitem TO lt_goitem FROM MEMORY ID 'GT_GOITEM'.
      LOOP AT it_mseg ASSIGNING  <mseg>.
        IF <mseg>-bwart = '415' OR
           <mseg>-bwart = '301'.
          IF <mseg>-sobkz = 'Q'.
            READ TABLE lt_goitem INTO wa_goitem WITH KEY zeile = <mseg>-zeile.
            IF sy-subrc IS INITIAL.
              wa_mseg-zznotno = <mseg>-zznotno.       <<<<<<<<<
              ASSIGN ('(SAPLMIGO)mseg') TO <fs>.
              MOVE wa_mseg-zznotno TO <fs>-zznotno .
             MODIFY it_mseg FROM wa_mseg TRANSPORTING zznotno.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.
    End Addition By Kamal on 21/07/2010 Ticket No 8000003778 ***
    Thanks and regards
    kamal kumar

  • How to control the name of custom field in data base table, added by AET

    Hi,
    I have added the one custom field by Application Enhancement Tool (AET).
    The name of custom field has been added in the data base table as ZZFLD000004 by AET.
    I need to add the some meaningful name like that ZMYPROB.
    How can I control the name of custom field in the database field through AET?
    Thanks,
    Amit

    Got the answer.
    Need to click on the Enable Expert mode, then custom field name will be editable.

  • Sending custom field added in Standard infotype through idoc

    Hello All,
    We have a requirement where custom field of a standard infotype 0002 needs to be sent through idoc only to a desired destination system.
    My Approach:
    I have created a custom segment having custom field from IT 0002 & mapped this segment in T777D table.
    But the problem with above, is all the system who are receiving IT0002 will be receiving this custom segment also including desired system.
    How can it be filtered?

    Hi,
    Create the new segment and message types of the idoc with cutom field.
    Then map the new mesage type and corresponding receiver( SM59).

  • Creation of Customized field for  Pricing Condition tables

    Hi Friends
    I have a requirement to create a  Pricing condition table with Customized field starts with 'Z'  and
    Field length should be more than 80.
    After creating New Customized Field, system  is not allowing to create Pricing Condition table and giving error 'Too Many fields selected (larger than 100 bytes)'.
    Could you please advice how to over come this error and Maximum field to create Pricing  condition table .
    Thanks
    Ravi

    Hi there,
    Table & table attributes are defined by the ABAPers. Not by finctional consultants.
    You need to have an access key to define new tables & access sequence.
    Check with your ABAPer. He will be able to help you with that.
    Regards,
    Sivanand

  • Problem in delta management for custom fields added in standard Table

    Hi developers,
    we have a problem, when a sales order is modified in a field custom, added in tables (VBAP-VBAK), the delta BW doesn't recognize the modifications. The data type of these fields haven't the flag (Change document) setted in
    view Definition.
    If this flag is setted, Can the delta BW recognize the modifications of the custom fields?
    Best regards
    Domenico

    You cannot get delta by just appending fields to extract structure & writing the user exit coding as this user exit code is run by the extractor after the X- and Y- tables are compared to create the before & after images.
    You have to do this procedure by enhancing  LIS comm structures like MCVBAP (for example).
    Please refer to OSS note 576886 for complete details.
    Kumar Gudiseva.

  • XD01 Custom screen for custom fields,need to update tables kna1,knvv

    Hi all,
             I have designed a custim screen for XD01 with four custom fields five from kna1 other one from knvv table.  i need to update the respective tables with these fields in badi GET_DATA of method IF_EX_CUSTOMER_ADD_DATA how to update the database table. Please help me in the same.

    see the help
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/4099948b8911d396b70004ac96334b/frameset.htm
    Regards
    Kiran Sure

Maybe you are looking for

  • Need help i could not open safari on my imac

    Process:               Safari [609] Path:                  /Applications/Safari.app/Contents/MacOS/Safari Identifier:            com.apple.Safari Version:               8.0 (10600.1.25.1) Build Info:            WebBrowser-7600001025001000~1 Code Type

  • JVM Crash with INTERNAL ERROR

    Hi , My jvm is getting crashed frequently with the below error log. os name=SunOS os version=5.10 os architecture=sparc java version=1.5.0_08 Can you please help me to identify this issue? Is there any known issue when using org.mozilla.javascript.Co

  • TV Out Problem with Hermes 650

    System : Hermes 650 Slim PC, V-Gear MyTV TV Capture card Software : V-Gear TV, PowerVCD Problem Description : When I use V-Gear TV software or PowerVCD to watch TV programs on TV thru the TV-Out output, everything ( ie the desktop, the apps etc ) are

  • Payment method T bank transfer

    Hi SAP Gurus, I have configured the Automatic payment programme with payment method T (bank transfer).When i am running the F110, system will posting all transaction correct.So where can I configure the SAP form for submitting to the bank.In SAP we d

  • OS Platform for EP 7.0

    Hello, we are running EP6.0 SP16 on AIX 5.3. In the past we suffered a lot of performance problems due to bad implementation of  JRE by IBM. Now we plan to upgrade our portal system landscape to EP 7.0. Does anybody have expirience running EP7.0 on A