Customer Creation - Want to pass custom field data to KNA1(Customer Master)

Hi,
I have created BAPI for customer creation which uses standard program RFBIDE00 for customer creation.
I have appended new custom field(ZZATTR1) in the table KNA1 and its currosponding stucture used in the standard program BKNA1.
Import parameters of my BAPI is one structure which is having this custom field, on executing this BAPI it creates the customer but data which I give through this field is not getting transfered in the table KNA1.
This sstandard progaram uses file to containing customer information, In the BAPI I on the data from the structure to the file and further it gets submitted to the program.
My requirement is to pass the data of teh custom field which I have created, How to achieve this ?
Pls Suggest.
Regards
Vishal

Hi Vishal,
When implementing a customer exit (i.e. field, user etc) have you ever wanted to be able to read additional
field values available in the main SAP program but not available in your exit. Now with the use of
field-symbols you can have access to any field available in the main SAP program. The code below
demonstrates how this is done within a field exit on BSTNR which can be tested using transaction
ME21. Information on creating field exits can be found here. 
FUNCTION field_exit_bstnr.
""Local interface:
*"  IMPORTING
*"     REFERENCE(INPUT)
*"  EXPORTING
*"     REFERENCE(OUTPUT)
create field symbol
  FIELD-SYMBOLS: <status>.
Assign value of variable from calling prog to field symbol
  ASSIGN ('(SAPMM06E)RM06E-BSART') TO <status>.
Display value retrieved in message
Note: Messages of type i and w are not allowed
  IF sy-subrc = 0.
    MESSAGE e003(zr) WITH <status> 'kkk'.
  ENDIF.
ENDFUNCTION.
Rewords some point if it is helpful.
Rgds,
P.Naganjana Reddy

Similar Messages

  • Custom PL/SQL API that inserts the data into a custom interface table.

    We are developing a custom Web ADI integrator for importing suppliers into Oracle.
    The Web ADI interface is a custom PL/SQL API that inserts the data into a custom interface table. We have defined the content, uploader and an importer. The importer is again a custom PL/SQL API that will process the records inserted into the custom table and updates the STATUS column of the custom interface table. We want to show the status column back on the spreadsheet.
    Defined the 'Document Row' import rule and added the rows that would identify the unique record.
    Errored row import rule, we are using a SELECT * from custom_table where status<>'Success' and vendor_name=$param$.vendor_name
    The source of this parameter is import.vendor_name
    We have also defined an Error lookup.
    After the above setup is completed, we invoke the create document and click on Oracle->Upload.
    The records are getting imported, but the importer program is failing with An error has occurred while running an API import. The ERRORED_ROWS step 20003:ER_500141, parameter number 1 must contain the value BIND in attribute 1.'

    The same issue.
    Need help.
    Also checked bne.log, no additional information.
    <bne:document xmlns:bne="http://www.oracle.com/bne">
    <bne:message bne:type="DATA" bne:text="BNE_VALID_ROW_COUNT" bne:value="11" />
    <bne:message bne:type="DATA" bne:text="BNE_INVALID_ROW_COUNT" bne:value="0" />
    <bne:message bne:type="ERROR" bne:text="An error has occurred while running an API import"
    bne:cause="The ERRORED_ROWS step 20003:ER_500165, parameter number 1 must contain the value BIND in attribute 1."
    bne:action="" bne:source="BneAPIImporter" >
    <bne:context bne:collection="collection_1" />
    </bne:message><bne:message bne:type="STATUS"
    bne:text="No rows uploaded" bne:value="" >
    <bne:context bne:collection="collection_1" /></bne:message>
    <bne:message bne:type="STATUS" bne:text="0 rows were invalid" bne:value="" >
    <bne:context bne:collection="collection_1" /></bne:message></bne:document>

  • Want to pass STRS2 field into sales order and contract.

    Hi Friends.
    I am creating Sales order using function module IDOC_INPUT_ORDERS and Contract using SD_SALESDOCUMENT_CREATE.
    Now I want to pass STRS2(House number field into Sales Order/Contract). In IDOC I tried to pass E1EDKA1-STRS2, but its not coming into Sales order output.But SD_SALESDOCUMENT_CREATE dont have an option to pass the field value.
    So in that case how can I achieve the desired functionality, Is there any user exit or let me know the suitable method to achieve the functionality.
    Thanks
    Gowrishankar

    Yes I tried that also.I passed the value from program to user exit MV45AFZZ and updated the structure XVBADR in USEREXIT_SAVE_DOCUMENT_PREPARE, but its not getting reflected in Sales Order/Contract.
    Anyone have suggestion..plz let me know.
    Thanks
    Gowrishankar

  • Customer creation in R/3 from PI data using IDOCs

    Hi All,
    I am creating customers in SAP r/3 system using IDOCs which are coming from PI system in the form of XML files.
    For that DEBMAS and ADRMAS message types and DEBM process code is used for creating or changing customer master data.
    Existing functionality : 1 IDOC is creating/changing 1 customer master data using standard function module IDOC_INPUT_DEBITOR.
    Required Functionality: need to create/change data for multiple customers using only one IDOC file.
    I have tried using DEBMDM. Unlike DEBMAS, message type DEBMDM can hold  multiple customers but if any DEBMDM IDOC sent to R/3, it was remaining in status 75 with message 'IDOC Received via qRFC'.
    Any help will be appreciated.
    Thanks & Regards,
    Anshoo

    Hi,
    Status 75 refers to that "IDoc is in inbound queue".
    Transaction SMQ2 (qRFC Monitor - Inbound Queue)
    Transaction WEINBQUEUE (IDoc Inbound Queue).
    The transactional asynchronous tRFC guarantees that all database operations are fully executed or, if one of the function modules responds with a termination, they are fully rejected (rollback). If an LUW is executed without errors, it cannot be executed again. In some cases it may be necessary, to rollback an LUW in an application program, for example, because a table is locked.
    Regards,
    Srilatha.

  • SSRS - Pass Field Value List To Custom Function Assembly And Display Result

    I have written a SQL Server Reporting Services custom function as a C# assembly DLL and added it to my report. The purpose of the function is to search for outlier records in a collection of data. The data is represented as an array of floating point -tuplets
    (float[][]). In a medical patient database, these might be things such as blood pressure, cholesterol, hight, weight, waist measurement, etc.
    Several user input parameters are provided in the report, including numeric seed values for this particular algorithm. One multivalued parameter is a list of the numeric columns to be used as input to the algorithm because, importantly,
    the user can choose any subset of the value columns. I have a tablix that will display columns from the dataset conditionally, based on which of those columns are chosen.
    At this point, there are two issues I'm having difficulty with:
    How do I, in the course of running the report, take just the numeric columns that the user has chosen (ignoring all others in the dataset) and pass them as a float[][] to my custom function? Or is there something in the
    Microsoft.ReportingServices namespace that I should use to query an input dataset and convert it to an array in my C# code?
    How can I present the array subset returned by my custom function in a tablix in the report?
    Note: One thought that occurs to me is that outlier records tablix could be contained in a subreport, but I'm not clear on the logistics of passing dataset field results from a master report to a subreport.
    I envision a final report when run to be similar to the following:
    - Mark Z.

    Hi Mark,
    Sorry for the delay.
    From your description, you want to pass the dataset data to a custom code array, and return the subset of the array, right? In this case, you can use a custom function to add the data to array, and use the a custom function to sort the data base on your
    requirement and then use a function to get the subset of the array. Here are some sample custom code for your reference.
    Add to arryay
    Dim values As System.Collections.ArrayList=New System.Collections.ArrayList()
    Function SetText(ByVal value As Integer) As Integer
        values.Add(value)
        return value
    End Function
    Sort array
    Function Sort()
    Dim i as Integer
    Dim j as Integer
    Dim t as Integer
    Dim n as Integer=values.Count-1
    For i=n To 1 Step-1
     For j=0 To i-1
     if values(j)<values(j+1) Then
        t=values(j)
        values(j)=values(j+1)
        values(j+1)=t
     End if
     Next j
    Next i
    End Function
    Return value.
    Function Rank(ByVal value As Integer)
       return values(value)
    End Function
    Assume that you pass [Weight] field to array, you can use the expression below on the Weight column:
    =Code.SetText(Fields!Weight.Value)
    Then use the expression below to get the values.
    PatientID:=Sort() & Lookup(Code.Rank(0),Fields!Weight.Value,Fields.Patient.Value,"Dataset")
    Height:=Lookup(Code.Rank(0),Fields!Weight.Value,Fields.Height.Value,"Dataset")
    Weight:=Code.Rank(0)
    Hope this helps.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • ABAP question: define a custom foreign key for a standard field??

    Hi,
    I want to use the field ADDR1_DATA-STR_SUPPL3 for customer use. I must to define a foreign key against a Ztable (as verification table) for this standard field. Also I must to define a custom search help.
    To defining a foreign key for this field, I must be in change mode, so the system ask to me for registering the object. That means this action is a modification. My question is the following: is there any way to do so without SAP standar modification??
    For instance, using BDT events...but how?
    Thanks in advance.
    Regards,
    Rosa

    Hi Rosa,
    Changing SAP Standard dictionary elements is not possible with out changing the same. To change these elements, we dont have any other method apart from SAP standard modification.
    Cheers
    Pavan

  • How to pass the uwl data in BPM to other portal?

    Hi,gurus,
    I have two questions about BPM?
    1. I want to pass the UWL data in BPM to other portal (BEA Websphere portal),how to do that?If websphere portal offered a method  to me,how can I pass the parameter to that method?At first,we want to use the SAP EP uwl,and display the uwl in BEA portal.But at last,they want to create some  tables in BEA and offer a method to CE BPM. So how to do that?
    2.How to call ecc workflow in BPM?And how to call BPM in ECC workflow?
    Thanks in advance.Any help will be appreciated!

    Hi,
    Regarding your qustion on calling SAP Busines Workflow from BPM and vice versa, I think directly it is not possible to give a call. You can invoke outside functionality only if you can expose it as a Web Service which can be used as an automated activity or in a Human Task with custom code.
    Hope this help!!
    Regards,
    Arafat

  • How to pass  Goods receipt date in calling  BAPI_INB_DELIVERY_CONFIRM_DEC?

    Hi all experts,
    In my case ,I want to use FM:BAPI_INB_DELIVERY_CONFIRM_DEC to post the inbound delivery .  I want to pass goods receipt date when calling this fm. according to fm documentation as below,can use HEADER_DEADLINES to do it ,but in coding , How to implement it?
    thank you in advance.
    Bests & Regards.
    In this table, header dates are passed on in time stamp format (YYYYMMDDHHMMSS). In field BAPIDLVDEADLN-TIMETYPE the individual date fields are qualified as follows:
    - WSHDRLFDAT  Delivery date
    - WSHDRWADAT  Goods receipt date (planned)
    - WSHDRWADTI  Goods receipt date (actual)

    Hi,
    I have got the same scenario to populate the Actual Goods Receipt date from IDOC. Can you please let me know the solution that you implemented for this? I understand that this was long time back. But if you could recollect, please let me know the details.
    Thanks,
    Vanitha

  • Copy Z field data from SO to Purchase Requestion

    Hi
    I am facing one problem
    I have created one Z-field in Sales Order and have created the same field in Purchase Requestion also.
    Now how i want to transfer Z-field data from SO to PR.
    What is the procedure and configuration i have to do OR what is the process in copy control for copying Z-field data from SO to Purchase Requestion.
    Pls confirm.
    Regards
    Vicky

    Hi
    Thanks for the reply
    I know there is no standrad procedure but how i can tranfer Z field data from Sales Order to Purchase Requestion.
    Pl help me
    Regards
    Vicky

  • Text field data in the Interactive adobe form to long text

    Hi Expert,
    I have a text field(allow multiple line) in the interactive adobe form which has been binded to table type(char132) field of the context element.
    Now I want the save text field data as a long text using SAVE_TEXT.
    When I enter some value in the text field and trigger SUBMIT event then it is going to dump.
    I am unable to trace out what is wrong, since control is not reaching to INIT method of the view.
    please help.
    Regards,
    Rajesh.

    Hi,
    what is in ST22 for this problem?
    Regards Jiri

  • Header Information Including a Max(FieldN) and then Pulling the field(Date) When Max Occurred

    Post Author: Skyeyes
    CA Forum: General
    Can anyone assist us as we have several columns we are displaying. One column called FieldN we gather the MAX from the column and want to place the Max(FieldN) in the header--this works.  Also next to FieldN where it is MAX we want to pull the field(Date) that MAX happened.  When we do the formula, it pulls the first date in the list, not of the MAX.
    MAX(FieldN)  & (Date)
    Any ideas would be helpful.  Thanks.

    Post Author: yangster
    CA Forum: General
    Give this a trystringvar fieldNDate := totext(FieldN)&totext(DATE);stringvar maxDate := nthlargest(1, fieldNDate);stringvar Datedisplay := right(maxDate, 6);so essentially you are trying to find the max date associated with the max fieldNthe nthlargest will find you the largest fieldN and its associated date since there could be multiple dates associated with the max fieldN fieldthe last string is just to strip the field and display only the datethis should work out you might have to tinker with the right to get your formatting.

  • Invoice posting from SRM system -ECC mandatory fields data need to be fille

    Dear Experts,
    I am creating an invoice from external system(SAP SRM) and generates an IDOC in SRM and same is sent to ECC. In ECC for creating invoice we have two mandatory fields house bank(hbkid) and section code(secco). These fileds data is not coming from SRM IDOC so i need to pass these fileds data before posting the IDOC.
    I am using EXIT_SAPLMRMH_015 for passing these fields data. I tried to debug the exit but it is not stopping.
    I written the below code for this but still data is not filling . I request you to give me your suggestions on this.
    DATA: S_RBKPV TYPE MRM_RBKPV OCCURS 0 WITH HEADER LINE.
    DATA: W_SCACD LIKE LFA1-SCACD.
    S_RBKPV = E_RBKPV.
    IF E_RBKPV-LIFNR IS NOT INITIAL.
    SELECT SINGLE SCACD FROM LFA1 INTO E_RBKPV-SECCO WHERE LIFNR = E_RBKPV-LIFNR.
    SELECT SINGLE VBANK FROM ZMM_HOUSEBANK INTO E_RBKPV-HBKID WHERE BUKRS = E_RBKPV-BUKRS
    AND GSBER = E_RBKPV-GSBER.
    IF SY-SUBRC EQ 0.
    E_CHANGE = 'X'.
    ENDIF.
    ENDIF.
    Regards,
    Ravi

    Identified the EXIT and working on EXit.
    Thanks
    Ravi

  • Purchase order date updating in asset master

    Dear Experts
    When we are creating the Purchase order With reference to the Asset, my client wants to Update the PO date automatically in asset master
    I have maintained the PO date as an optional field in asset master and created PR and Po with reference to the PR but in asset master data PO date not updating automatically.
    In above case what are the settings I have done in FI and MM?
    Regards
    Venkataswamy
    Edited by: venkataswamy bathini on Apr 25, 2011 1:49 PM

    Hi
    As far as I know, this is not updated automatically.. Asset Master is created earlier than PO... The PO date does not update automatically in asset master
    The capitalization date in asset master will be the date on which you do the GR....hence, PO date cant be the capitalization date...
    If you want to update the PO date in asset master for information sake, create a Z program which calls As02 in the background and updates the info on daily basis at day end
    br, Ajay M

  • How to populate customer specific field data in table /SAPAPO/ORDFLDS

    Dear Gurus,
    I have explained in detail about the problem we face. I guess persons who has implemented enhancement:  /SAPAPO/RRP_IO_COL in their system can help me out.
    Background:
    Purchase requisitions in APO is created by an idoc that comes from a legacy system using BAPI CALL FUNCTION 'BAPI_POSRVAPS_SAVEMULTI3'.
    Business Requirement:
    I have a business requirement where I need to populate an additional data 'Original delivery date' from the idoc during PR creation in Product view.
    Development:
    To achieve the above requirement, we are following the below procedure in our development system.
    1. We are using enhancement:  /SAPAPO/RRP_IO_COL, method: RRP_USEX_COLS_FILL_01 and RRP_USEX_COLS_GET_TEXT_01 to display an additional field 'Original delivery date' in /sapapo/rrp3 - elements view. This field is restricted to Purchase requisition (Order category: AG) only. We are planning to populate the additional data 'Original delivery date' in this customer specific field and store it in table: /SAPAPO/ORDFLDS at the time of PR creation.
    2. Table: /SAPAPO/ORDFLDS is appended with the 'customer specific field'.
    3. We couldnt find a document on how the data can be populated in table /SAPAPO/ORDFLDS.
    4. How to polulate the live cache data in the table  '/APAPO/ORDFLDS' ? ( i.e using connection parameter )?
    Appreciate if you can throw me some light on this.
    Thanks
    Vignesh M

    Hi Vignesh,
    ANy luck on this ? I am trying the almost same thing...and stuck at same point.
    Please let us know if you have any more information.

  • Submit pdf form fields data as customized template

    Hi
    Is it possible to submit pdf form fields as a customized template?
    when the form is submited, I want it to be emailed to me as text form and the form field data would be autopopulated into the text template.
    Im not sure but is this how fdf works?
    if so, how do i get my form to be submitted as fdf?
    please help.
    thanks.

    Here you go .....the 3 fields at the top are where you enter data. The allfields field is the field that creates your special format and teh submitted data field is what you woudl recieve in the email. Note that i changed th ebinding for the first three fields so that they are not included as separate items in the data file. This shoudl simplify what you recieve. I cam change the format of what is written to the allfields if you need a different distinction. In this example I hardcoded everything ....depending how many fields there are on yours i woudl use a different approach (using some complicated code) but the concept woudl be the same. I woudl find all of the fields on your form and loop through all of these objects in a for loop construct this will reduce th eamount of code dramatically and also allow you to modify the form to add or remove fields as you see fit without having to change the code.
    Make sense?
    Paul

Maybe you are looking for

  • Work order interface : how to schedule the resources

    Hello, I am trying to reschedule a job and to replace the resources of this group by alternate resources : I have inserted one line in the WIP_JOB_SCHEDULE_INTERFACE and one line in the table and WIP_JOB_DTLS_INTERFACE. After importing these group, I

  • Can you add things to the Firefox button menu?

    Regarding the orange Firefox menu button--can you add things to it? I want to add the zoom option to that menu. I an add the + and - zoom buttons to the toolbar, but I want the zoom option in the orange Firefox button menu itself instead. Is that pos

  • Integration of OIM with PeopleSoft

    I have integrated OIM with PeopleSoft using the peoplesoft employee recon connector.The initial bulk upload is working fine but incrmental recon which happens using the peoplesoft listener is not.I have tested the peoplesoft listener using the .vbs s

  • Exporting from the book module as a jpeg spread?

    I just spent half a day designing my first book in LR 4. I completed the book a few minutes ago, and it was only then that I realized I don't seem to be able to export as a Jpeg or as a spread--only as a PDF, and then only single pages, so each sprea

  • When will Siri be avalible in Canada?

    Hi, I am interested in buying an iphone, but hesitant because Siri is unable to locate places in Canada. It is a large features that is unavalible to all Canadians. Does anyone have an idea as to when the this feature will be avalible in Canada? With