Current Position:Home > How to populate a custom field of a Std. SAP Tx with BAPI usage 2 Load data

How to populate a custom field of a Std. SAP Tx with BAPI usage 2 Load data

Update:10-11Source: network consolidation
Advertisement
Hi Experts,
For instance, I created a custom field (say, custom_field_1) on a screen of standard SAP tx(say, ME21N) by using screen exit. And in order to populate the data into it (custom_field_1), will use the Function user exits of this Tx(ME23N).
1) In next step, Where Where I have to add this field, apart from appending the same custom field in EKKO/EKPO table or any other related table; Extending the corresponding IDOC or creating a new Custom ÍDOC type? like What about BAPI?
2) If I got a text file with the data (including the data for this custom_field_1 too) and I have been asked to load it into SAP, then, I decided to use BAPI (say, BAPI_PO_CREATE or CREATE1) to create the data, So, How to handle this custom field, I mean, In which BAPI structure I have to pass this custom_field_1 data? ( Iguess, for some BAPIs EXTENSIONIN structures are provided, sorry if am wrong!)
Thank you.
Edited by: SAP ABAPer on Feb 21, 2009 7:40 PM

The Best Answer

Advertisement
for example if you added field in the  VBAP table  then you can pass the custome field values like below
     move 'BAPE_VBAP' to lwa_extension-structure.
      lwa_bape_vbap-vbeln = lwa_final-vbeln.
      lwa_bape_vbap-posnr = lv_posnr.
      move lwa_final-yyslotid to  lwa_bape_vbap-new custome field.
      move lwa_bape_vbap to lwa_extension-valuepart1.
      append  lwa_extension to  lt_extension.
      clear  lwa_extension.
      move 'BAPE_VBAPX' to lwa_extension-structure.
      lwa_bape_vbapx-vbeln = lwa_final-vbeln.
      lwa_bape_vbapx-posnr = lv_posnr.
      move 'X' to lwa_bape_vbapx--new custome field.
      move lwa_bape_vbapx to lwa_extension-valuepart1.
      append  lwa_extension to  lt_extension.
      clear  lwa_extension.
call function 'BAPI_SALESORDER_CHANGE'
        exporting
          salesdocument    = strcture
          order_header_inx = strcture
        tables
          order_item_in    =strcture
          order_item_inx   = strcture
          schedule_lines   = strcture
          schedule_linesx  = strcture
          extensionin      = lt_extension.
  • How to populate a custom field of a Std. SAP Tx with BAPI usage 2 Load data Update:10-11

    Hi Experts, For instance, I created a custom field (say, custom_field_1) on a screen of standard SAP tx(say, ME21N) by using screen exit. And in order to populate the data into it (custom_field_1), will use the Function user exits of this Tx(ME23N).

  • Exit to populate a custom field on additional tab b in order - inbound proc Update:10-11

    Hi experts , I Need to populate a custom field  on the additional tab b of an sales order during inbound processing. I am using the function module idoc_input_orders. RegardsHi, As this custom fields are not avaialble in the standard IDOC type, you n

  • Populate the customer fields (ORDERS05) Update:11-30

    Hi all, I'm trying to extend basic IDOC type ORDERS05 with these extra fields: Table   Fields VBRK     KUNAG (Sold to customer number) VBRP     EAN11 VBRK     FKDAT VBKD     BSTDK VBRP     FKIMG VBRP     VRKME VBRK     ERDAT VBKD     FKDAT T052     Z

  • How to assign a value(populate) a custom field in a PCUI page ? Update:10-11

    Hi I am working in SAP CRM on its web interface PCUI. I have created a custom field "ZZ_NEWFIELD" through EEWB in Business Partner. It is visible in accounts transaction header (crmm_account). Now if I create an opportunity for this business par

  • Populating custom field in an existing sap query Update:11-30

    HI, I am making changes to existing query . Query already had a qty field, now I need to display the % of qty delivered for every vendor  as a subtotal text for every vendor. I added the custom field to query and can display it as subtotal text. But

  • How to get custom field value in vbkd table using "SD_SALESDOCUMENT_CREATE" bapi Update:10-11

    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 una

  • How to add a Custom field in the Standard SAP Sales Order main screen Update:10-11

    Dear Experts, We have a requirement of adding a Custom field in the Sales Order screen. I know how to add the Customer field in the Additional data B tab of the Sales Order Header Screen as that is the screen user exit provided by SAP. Can someone te

  • Replicating GR custom fields from EBP to SAP R/3 Update:10-11

    Dear SRM Gurus, We are using SRM 5.0, extended classic scenario.. We have created 3 custom fields for GR in SRM and we want to pass these custom field values to SAP R/3(4.6C). Is there any BAdI or function module to replicate these custom field value

  • To add custom field in MIRO in SAP ECC 6.0 Update:11-30

    Hi All, I am using ECC 6.0 version of SAP. I want to add a custom field inside the DISPLAY tab on the MIRO screen. Please give me any pointers for any USER EXIT or OSS note for MIRO screen so that we can add a custom field under the display tab on th

  • Adding Custom Fields - Application Enhancement Tool - SAP Library Update:11-30

    To add a comment, please log in or register on the top of this page and choose Reply. Please write your comment in English. You can also go back to the SAP help page.Hi, AET(Application Enhancement Tool) is able to create custom field for almost all