In LSMW how to include customer fields in BAPI method ?

Hi all,
We have a requirement to use BAPI method in LSMW. We have some custom fields defined needs to be handled in BAPI structures.Please tell me how to handle BAPI extension structures(EXTENSIONIN/OUT) in LSMW.

Hi Venugopal,
You can use the sold to party field fiield for your requirement.
Press f4, you will get a pop up to select customer depending on various selection criteria including customer name.
If can enter the customer name, which will sort out the sold to party number whihc you can use.
If this is not wat is required you have to copy the transaction and create a new Zreport.
Hope this helps you.
Thanks
Arun

Similar Messages

  • How to include new fields in PRICAT

    Hi,
    My aim is to import a new field to the PRICAT price catalogue, and be able to
    maintain this field in transaction W_PRICAT_MAINTAIN.
    I have entered the new field in table PRICAT_K003 (using an append structure),
    and have used the Badi implementation WRF_PRICAT_DIALOG to include the new field in the ALV report definition for transaction W_PRICAT_MAINTAIN. For this purpose I also included the field in structure WRF_PRICAT_K003_STY.
    However, when trying to make the necessary changes to copy the field content  from PRICAT_K003 to the new screen field, I encounter a few problems.
    For this I have created a new Badi implementation for Badi definition
    WRF_PRICAT_POOL, method IF_EX_WRF_PRICAT_POOL~EXTEND_ARTICLE_MASTER.
    This method uses parameter io_inbound_item (type ref to CL_INBOUND_ITEM). The field doesn't seem to be visible in any of the available structures in this method. I have attempted to include the new field in some of the other structures (in addtion to WRF_PRICAT_K003_STY), but have been told by the system not to do this.
    Any suggestions on how to solve this problem?
    If there is anybody out there who have a description on how to import new fields
    into PRICAT and further on to the article master, I would very much appreciate if you could pass it on to me.
    Best regards,
    Per Erik Fjelde

    Hi,
    I have a similar problem with inbound pricat. I extended PRICAT_K003 with a few custom fields. These fields are filled using a BAPI table extension and implementing IF_EX_PRICAT_IN_EXTIN. The fields show up correctly in W_PRICAT_MAINTAIN and are also filled when I look in the database table. But when I create an article master from an entry in the pricate catalogue, all custom fields are cleared. I wanted to use IF_EX_WRF_BADIPRE_POST_MAT~PRICAT_PRE_POSTING_PROCESS to transfer the custom fields to MARA, but the incoming structures of the method only include blank custom fields.
    So I found IF_EX_WRF_PRICAT_POOL, but it's methods include only structures which are not extendable. So I don't see how I can preserve the data in my custom fields.
    Per Erik, have you found a solution for your problem?
    Is there anybody else out there who knows how to transfer custom fields from the price catalogue to material master data?
    Best regards,
    Holger Merk

  • How to Including custom text in the step "User Decision"

    Hi All
    Please help me in this regards I got problem
    How to Including custom text in the step "User Decision"
    Regards
    Poonam
    Edited by: Julius Bussche on Feb 2, 2009 1:59 PM
    Please use the corect forum, meaningfull subject titles and use the search before asking questions

    Hi Poonam,
    If I understood your problem correctly...
    When you create a user decision a screen will appear.
    In the decision tab under Title you can give your custom text.
    Even if you want to give some variable (value of which will be determined at runtime) you can give that as well.
    Like you have created a container for BOR objects MAT_DETAIL, in that object there is a field MATERIAL.
    You can define your custom text as below:
    Title: Would you like to create new material or display material &
    Parameter 1:  &MAT_DETAIL.MATERIAL&;
    In Title you can give as max. as 4 &(ampersand). And each & will be replaced by each Parameter at runtime in same sequence.
    In parameters you use to select the container defined by you earlier.
    Hope this will help.

  • 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..

  • How to include custom taglib in javascript on a given jsp page

    Hi,
    How to include custom taglib in javascript on a given jsp page?
    i have a jsp page on which i am adding selectboxes using javascript.
    But now i have created my own custom select box and want to add it on a given jsp page.
    is the code to create the box box.
    <sample:pickListOptions employeeId="abcs123"/>
    but how should i embed it in javascript, so that i will be able to add it on the give jsp page.
    Thanks,
    Javaqueue

    when the jsp page is loaded for the first time it contains a select box containg names created by a taglib.but there is a feature i want to add wherein though javascript the name selectebox will keep on coming on each row i want to add. and this is row addition and deletion is being handled by the javascript. there i encounter the bug how to interact the javascript with taglib so tha with each row addition i will have populated taglib created select box on each row.
    Thanks,
    Javaqueue

  • Add a custom tab to include custom fields in Shipment Screen (VT03N)

    Hello every one,
    We have a requirement to add a custom tab to include custom fields in shipment header.
    Can any one of you help me on this?
    Thanks in advance !!!
    Regards,
    Ganga

    Hi Ganga,
    This is the question of customer exit....you will get very good links on the forum itself...but i can give you some hint:
    1. fing out the package or program name for the transaction(by gng in the setting)
    2. go to se84 and in the enhancement->customer exit tab...with the help of pkg name got above find out the various enhacement for this tcode.
    3.find out the appropriate one by putting in the break point.
    4. You can get an exit with a screen exit where you will create your own screen(with the custom field if.....then you have to append them in the table) or with the std fields.
    5. there you will get the fm exit for PBO and PAI as well.
    Hope this might help you in solving the problem.
    Pooja

  • How to add custom fields in BADI  Subscreen.

    Hi Friends,
    I have to include some custom fields in MFBF tcode.(In make-to-order tab page).
    To do that I have used RM_HR_INTEGRATION  BADI definition  and created implementation for this. In the provided subscreen I tried to add custom fields but it asks access key . I donu2019t know , how to proceed further. Your help is needed.
    Or kindly provide me solution to achieve my requirement.
    Thanks in Advance,
    senthil.

    Hi Venky,
    We can see the documentation in
    se18 -> badi -> LE_SHP_TAB_CUST_HEAD -> display -> documentation button above the definition name
    in the first pop-up of documentation..go to the end which says 'Further notes'
    Further notes
    Documentation on BAdI Interface LE_SHP_TAB_CUST_HEAD
    click on this and we have a detailed description of each method defined in the badi
    Hope it helps
    Regards
    Byju

  • How  to add custom fields to the  sap standard  program ukm_bp_display

    How  to add new custom  fields to the  sap standard  program ukm_bp_display .
    could u  please any one help me on this?

    Hello Kumar,
    You have to modify below structure, as this structure is providing the field catalog for output display (ALV).
    Here you can see there are a lot of include structures, so if you want to add fields in the output display you can add those fileds as an append structure to any of the below mentioned structures (Like ukm_s_account, ukm_s_bp_cms_sgm etc as per your requiremnt and positon at which you need to dispaly your fields.)
    DATA: BEGIN OF gt_grid_alv OCCURS 0.
           partner LIKE but000-partner,
           credit_sgmnt LIKE ukmbp_cms_sgm-credit_sgmnt.
            INCLUDE STRUCTURE ukm_s_account.
            INCLUDE STRUCTURE ukm_s_bp_cms_sgm.
    DATA:   credit_sgmnt_txt LIKE ukmcred_sgm0t-credit_sgmnt_txt.
          Gruppe Vector
            INCLUDE STRUCTURE ukm_s_bp_vector.
          Gruppe OBL = Obligo
          include structure UKM_S_BP_CMS_MALUSDSP_OUT.
            INCLUDE STRUCTURE ukm_s_display_segment.
            INCLUDE STRUCTURE ukm_s_bp_cms.
            INCLUDE STRUCTURE bus000_dat.
    *DATA:   icon(4).
          Gruppe RAST (Raster)
    DATA:
             rast01 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast02 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast03 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast04 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast05 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast06 LIKE ukm_s_display_segment-AMOUNT_GRID.
    DATA:    rast2_6 LIKE ukm_s_display_segment-AMOUNT_GRID.
    "Summe raster 2 bis 6
    DATA:  END OF gt_grid_alv.
    Another way is you can  go  to SE38, and you can create implicit enhancements.One enhancement point is available here in this required area. so create an implementation and add your fileds with data types.This way is also simple.
    Hope this will solve yiour problems.
    Regards,
    Antony Thomas

  • How to include a field in the search criteria.

    Hi,
    In B2B, there is a requirement In Account Details.jsp ,  to add a new field "Your reference". this field should haev the value same as  from the order creation page:Your referene field.  This field should not be included in the result list. This should be used as a search criteria. I have added that YOUR Reference Field in Account Details.JSP,.Now i need use it for search criteria.C
    Could you kindly suggest me how this field can be included in the search critertia in Funciton Module "Zb2b_Account_Details.
    Thanks & Regards,
    Sujitha. S
    Edited by: Sujisruthy on Jun 16, 2010 1:23 PM

    Hi,
    Please see documentation of enhancement MM06E005 (transaction SMOD).          
    Userexit EXIT_SAPMM06E_016 is a component of enhancement MM06E005.            
    With that enhancement, you can                                                
      -   Maintain/supply your own customer fields                                
      -   Update your own customer-specific tables                                
    You cannot:                                                                   
      -   Change standard fields                                                  
      -   Change data that depends on the document header in the items            
      -   Change data that depends on an item in the document header                                                                               
    Please have a look at Business Add-In (BAdI) ME_PROCESS_PO_CUST.              
    Regards,
    Edit

  • How to include Customer Name in VA15N

    Hi All,
            The standard report VA15N does'nt include customer name.User wants the customer name aslo to be included in the report.Kindly suggest how to include the customer name in the standard report or any other alternative.
    Regards,
    Venugopal

    Hi Venugopal,
    You can use the sold to party field fiield for your requirement.
    Press f4, you will get a pop up to select customer depending on various selection criteria including customer name.
    If can enter the customer name, which will sort out the sold to party number whihc you can use.
    If this is not wat is required you have to copy the transaction and create a new Zreport.
    Hope this helps you.
    Thanks
    Arun

  • How to include z-fields into BAPI_GOODSMVT_CREATE

    Hi,
    In MIGO transaction, we have aded some fields on external tabs.
    These fields are mandatory fields
    The data of these fields will be stored in a Z-table when we save the MIGO.
    We have used BADI s to do this. It is working fine.
    Now, I want to post some data using MIGO tansaction. I want to use BAPI_GOODSMVT_CREATE to post tha data.
    How can I include my newly added fields in this BAPI ?
    Can u plz write the solutions?
    Thanks

    Hi,
    Go through the FM documentation of BAPI_GOODSMVT_CREATE, this gives some information how to populate the custom fields.
    Table parameter : EXTENSIONIN
    And check the BADI:  MB_BAPI_GOODSMVT_CREATE which is used to populate the custom fields for the material document.
    I think you also require to implement this badi in your case.
    You also need to extend the tables with the custom fields
    With regards,
    Dwarakanath.S

  • How to add custome field to QM01 transaction .

      Hi every one !
      i want to add cutstom field to QM01 transation .
      i trying to this using QM00_SUBSCR_5000 badi . but here when i open subscreens tab layout when i going to add input out box and label
      its asking for access key .
      how can i do this pls any one send me clearly using screen shots ...
      see the screen shot attached ....

    Addition of Custom fields to QM01 Tcode:
    Go to function group XQQM
    ,create the screen under screens tab number 0090.
    Declare the screen fields under include tab ZXQQMTOP .
    data :
    dist  like qpcd-code,
    sal   like qpcd-code,
    cust  like qpcd-code.
    Under process on value-request. Create a module for f4 help
    for the custom fields.
    Under the function module EXIT_SAPMIWO0_008 write the code for updation of custom fields to
    the structure  viqmel.
    Under PAI create a module for capturing the screen field
    values.
    Case sy-ucomm.
    when '10\TAB02'.
    viqmel-cust = cust.
    viqmel-dist = dist.
    viqmel-sal = sal.
    endcase.
    For
    QM02 and QM03use EXIT_SAPMIWO0_008 for display of
    the screen field values.
    Under the PBO of the screen create a module for fields to
    be in display mode.
    if sy-tcode = 'QM03'.
    loop at screen.
    if sy-ucomm = '10\TAB02'.
    screen-input = 0.
    modify screen.
    endif.
    endloop.
    endif.
    Thanks,
    Shailaja Ainala.

  • In T-Code: MIRO ; how to add custom fields in Table Control

    In MIRO
    in PO Reference tabstip i want to add 2 custom fields ( say PO segment Invoice number and vechecle names i have to populate ).
    How to do dis ,
    any BADIs or any EXITS ????
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Regards,
    Ramesh.
    Edited by: Alvaro Tejada Galindo on Dec 29, 2009 11:24 AM

    ok

  • How to hide custom fields in Shopping cart depening on user role

    Hi,
    We have some custom fields in shopping cart for basic view. Every thing works fine. Now client is asking to hide all the custom fields based on user role.
    I found some function module to fund roles. now my main problem is unable to find the cusotm filed screen field name.
    When I tryed to find the screen field name using BBPSC02/03, its giving 'GT_DISPLAY_100-FIELD'. If I try to use this field, its not working.
    Could you pls tell me how to find custom screen filed name to hide in shopping cart.
    Thanks,
    Ram

    Hi Ram,
    As Laurent suggested,to hide the custom fields based on the user role,you need to implement the logic in BADi "BBP_CUF_BADI_2".
    You have the importing parameter IV_USER in this BADI.
    Pass this parameter to tables AGR_USERS and AGR_USERT  to get the user role
    OR
    Use FM: BAPI_USER_GET_DETAIL
    with USERNAME= user id and can retrieve Table: ACTIVITYGROUPS Field:AGR_NAME
    if you want the otherway around
    you can also use FM: RSRA_USERS_OF_AGR_GET
    with I_AGR_NAME= role and you can retieve Table: ACTIVITY_GROUPS_USERS Field: UNAME(usr Id)
    Then check the value for the User role as obtained using the above steps and accordingly set the property for the custom fields to hide them.
    BR,
    Deepti.

  • How to include key field in classification datasource?

    Hello,
    How can I include key fields in a new classification datasource?
    When i try to generate my classification datasource i get this error:
    No key field found for creation of DataSource
    Diagnosis
    During generation of a classification or configuration DataSource, only those key fields for the object table (field "Obj.Tabelle") that are already present in the basis DataSource transferred to the extract structure. This is the case when none of the key fields of the object table were found in the structure of the basis DataSource.
    Hence the datasource does not get generated.
    Thank you very much and regards.

    Hello Prem,
    Yes, the characteristisc are in the system. I also saved these charateristics, they are in N status at the moment.
    The problem is when i click on Datasouce buttom to generate the datasource, this is when I get the error message i mention above.
    I tried to do an example with 0MATERIAL_ATTR with obj. table MARA and class cat 001 and i had no problem.
    Then i try to do it with 0PLANT_ATTR obj table BETR and class cat 030 and i get this key problem.
    Can this be related to the fact that MARA table has got a key and BETR does not have one?
    Thank you and Regards.

Maybe you are looking for

  • Best Buy Extended Warranty isn't worth the paper it's written on

    My daughter bought me an iPad 3, when it first came out, for Mother's Day.  She was talked into buying the Best Buy Warranty instead of the Apple warranty.  For the past 3 months I've been having nothing but trouble with my iPad so my daughter said I

  • Am getting the following error while running the servlet example

    Hi, am getting the following error while running the servlet example message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException      edu.dao.StudentDao.inse

  • Error when starting Enterprise Manager: java.lang.NoSuchMethodError

    Hi, When trying to access the EM i got Error 404--Not Found, so i went to start EM manually but i'm getting this error when trying to start the EM in weblogic 10.3.6 on Windows 7 64 bits: ####<12-10-2012 09:47:02 AM CST> <Warning> <Deployer> <Carlos-

  • Dynex DX-CR121 doesn't work with 10.6.7

    I have a Dynex DX-CR121 All-in-1 Card Reader. It works like a charm with my older PowerMac G5 running OS 10.5.x. I have upgrades to a newer Macbook Pro with an i5 processor running OS 10.6.7. Image Capture doesn't recognize the reader. Am I missing a

  • App store connection

    I am having a problem connecting to the app store to download apps.  I am using Lion, keep all my software up to date.  I can see the app store but when it comes to installing the updates for specific apps I get a pop up stating cannot connect to app