Updating unique reference field (ASP)

I've created an app using ASP (not ASP.NET)
I'm writing back to an AS/400 and unfortunately I'm not able to have an autonumber field due to some constraints on the way things work on the AS/400 (don't ask me why I don't know!!! I'm just been told this by my AS/400 programmer), so what I have done is concatenate to fields together to generate a unique field made up of the customers part number and my own internal part number these fields are keyed to prevent duplicate enteries.
My problem is that when part details have been entered on into system and the customer comes to update one of the records I'm unable to figure out how to update the unique field to match the combination of the new customer and my internal part number.
I've just used the standard insert and update record server behaviours to generate the code, can the update server behaviour modify the unique field to reflect the new combination of customer and my part number, if so how can this be done?

Thanks for the response, I'll try and explain better...
1 table with for simplicity's sake 3 fields, being
Field name                    Field description
CUSTNUM                    Customer part number
MYPARTNUM               My Internal part number
UNIQUE                         Unique ID field
OK so my customer creates a new part using the ASP insert record server behaviour, this writes the customer part number to the CUSTNAME field, my internal part number to the MYPARTNUM field and concatenates the CUSTNUM and MYPARTNUM field into the UNIQUE field, this is working fine...
Now the part I need help with. At a later time the customer now updates the record to reflect a change to either the customer part number or my internal part number this then needs to again concatenate the CUSTNUM & MYPARTNUM fields to update the UNIQUE field value how do I achieve this using the ASP update record server behaviour???
At present the update record is only updating the CUSTNUM & MYPARTNUM fields with the new values but I need to update the UNIQUE field with the new values of CUSTNUM & MYPARTNUM.

Similar Messages

  • Bank statement number not updating in reference field

    Hi All,
    After importing EBS, reference field of the posted document will be updated default as "HOUSE BANK" ACCOUNT ID" and "Statement number". But in my case statement number in this field is updating up to 11999.
    Means, if I run EBS upload with statement number 12000 it is updating as 11000. This is updating in Table FEBEP also. I could see FEBA with statement number 12000.
    Do you have any idea where this is controlling.
    Regards
    SM

    Hi,
    the first 2 digits are for the year and the last 3 are for the statement number.

  • Bapi to update fb02 reference field (xref3)

    Hi ,
    Please tell me the bapi which is used to update reference field xref3 into bseg for transaction fb02.

    Hi Alessandro Spadoni,
    Could you please tell the values you passed for CHANGE_DOCUMENT. I am unable to edit xref1, xref2 and xref3 in FB02

  • Change Reference field in MIRO document

    We are using invoice plan for posting of invoices. We want to update the reference field in the invoice document created by system once the original vendor invoice is received by the actual invoice no for tracking purpose.
    Is this possible?

    Hi,
    I think we can't change the reference field in invoice document.
    If you want we change the reference field in accounting document.
    For every vendor invoice system generates accounting document.
    We can view the accounting document in FB02 / FB03 . Reference field will be stored in header of the document. This field is not editable  field. If you want to change to editable field.
    Do following settings.
    Goto OB32 t.code. click on new entries.
    No need to enter account type.
    Feild name  --  BKPF-XBLNR.  activate the field  Field can be changed and save.
    Now goto FB02. Goto header, now reference field is in editable mode.
    Regards,
    Chandra

  • Updating reference field

    FI Experts, we are trying to write a BDC to update the reference XBLNR field to a line item thru FB02. However it is not possible thru FB02, we also tried FBL5N but this can not be done either. Is there a tcode that I can access that will take me directly into the reference filed in change mode by simply putting the doc #.
    Your help will be greatly appreciated
    Edited by: Frank on Apr 2, 2009 10:44 PM

    Field XBLNR is a non editabale field.
    However, you try this out with the help of a developer:
    SE54: Table BSID and create a maintenace dialog for field XBLNR.
    SM30: Maintain table BSID
    Rgds,
    Harmees

  • MRRL user exit---   Reference field updation

    Hi ABAPers,
      I have posted the following issue long time back.inspite of so many views from the ABAPers,I have not got even a single reply.
      I just want to know whether my query is incorrect or data provided by me is insufficient?
       While doing auto bill passing thru MRRL , I want to update the refernce field in MIRo with the delivery note maintained in MIGO.
       Even though I have written the logic to change the field,still it is picking up the same MIRO document no as the refernce field.
       I have tried the following enhancements:
       EXIT_SAPLMRMP_010             (MR1M001)
       EXIT_SAPLMRMH_001              Customer Exit: ERS - Change Header Field  (MRMH0001).
      Thanks&Reagards..
       Murali.c
    Edited by: murali ch on Oct 14, 2009 6:20 AM
    Edited by: murali ch on Nov 9, 2009 10:25 AM
    Edited by: murali ch on Nov 16, 2009 11:56 AM

    Dear Murali,
    I have the same requirement as above. also, wrote he code in the given exit. but could not get the correct result.
    I have checked Import & export parameters and wrote below code....
       select single xblnr INTO v_ref
           from mkpf
           where MBLNR = T_SELWENR-LFBNR.
      MOVE v_ref TO E_RBKPV_ERS_CHANGE.
    but it didnt work out.
    can anyone please tell what sort of code should I write for correct output.
    Many Thanks,

  • Reference field of invoice not filled in PO history

    The reference field of the invoice (INFVO-XBLNR) is not copied into the EKBE-XBLNR. I couldn't find an OSS note to solve the problem. Please advise.
    Kind regards,
    Annerie Deckers

    Hello,
    Table EKBE is only updated if "GR-Based IV" indicator is active at Purchase order item level.
    Only then field EKBE-XBLNR is updated with the value of the corresponding GR doc.  reference field (MKPF-XBLNR) and not with the value of the      RBKP-XBLNR (logistics invoice).
    There is also a note explaining the case link:[Note 383828 - ME23N: Reference in the purchase order history]
    BR,
    Elly Leondi

  • Unable to update Logical Delete field in AS400

    hi all,
    We have an ESB process that polls for data in AS400 DB and transfers this data into an Oracle DB. This polling is based on Logical Delete. The data transferred is in the range of some lakhs of records. So we are sending around 5000 records per transaction in ESB. When we deploy the process, the data in AS400 is being read and getting transferred. However, the status field is not changing to 'Read Value'. Due to this, we are facing a lot of issues like, when we're in middle of data transfer and the opmn restarts, the data which has already been transferred is also being read and this is throwing an error because of primary constraint violation. Even after the data transfer, if we delete any rows in Oracle DB, the data transfer resumes as the status field is not updated.
    I have worked with logical delete in Oracle DB before and was working fine.
    Please help me with Logical Delete functionality in case of AS400 Database and also please let me know the privilages we need to have on the AS400 DB to successfully run this process.
    Thanks,
    Kamal.

    Hi,
    According to your post, my understanding is that you was unable to update managed metadata field in designer workflow.
    You need to provide the exact string for the MMS value, in the form of <id>;<value>.
    The format of the value you wanted to set is uncorrectly, so you cannot update the managed metadata field.
    If you want to set the managed metadata field value with correct format, you’d better to create custom action.
    There is an article for your reference, although it is about the SharePoint 2010, it is similar to SharePoint 2013.
    http://patrickboom.wordpress.com/2013/07/23/workflow-activity-set-managed-metadata-column/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to clear Documents using XBLNR(Reference field) through Manual BRS-FF67

    I want to clear GL line items in clearing account using Manual BRS(FF67) with reference to "XBLNR" field(Reference). IS there any standard Algorithm which SAP provided for reference field or if we want to develop ne algorithm then how to create.
    Thank in advance.
    Best Regards
    Raj

    Hello Raj,
    It is not possible to clear an open item on a g/l account via the
    reference document number. The automatic clearing with interpretation
    algorithm 021/001 only takes place, if the item, which should be cleared
    is on a customer/vendor account. So it could never find open G/L items.
    The reason is that the reference number is usually not unique
    so it could lead to wrong clearings.
    A workaround therefore would be to use:
    a) another interpretation algorithm depending on the note to payee
       data are available.
    b) the user exit 1 (described in note 494777, point 1) if there are
       no other information available as the reference number.
    c) the report SAPF124/E to clear these items afterwards. Then the bank
       statement should only post FB01 without clearing. The requirements
       are criteria to assign and clear the suitable items.
    Regards,
    Renan

  • Update (All Mapped Fields) Import Action creates a new record.....

    Hi All,
    I am on MDM 5.5 sp6,and this weird thing happens everytime i run the "update all mapped fields" option in the import manager,it creates a new duplicate field with the updated value record.Is this  a bug in sp6 or I guess i am going wrong somewhere.I want to update a particular field in the qualified table and i am using a import file which has values for qualified field on the main table and the values for the qualified table itself.
    Any Help greatly appreciated
    Thanks

    Hi Aravind,
    I am on MDM 5.5 sp6,and this weird thing happens everytime i run the "update all mapped fields" option in the import manager,it creates a new duplicate field with the updated value record.Is this a bug in sp6 or I guess i am going wrong somewhere.I want to update a particular field in the qualified table and i am using a import file which has values for qualified field on the main table and the values for the qualified table itself.
    MDM should not behave in this way. I thing there is an issue with the Matching Field you have choosen.
    I think you have choosen all the FIeld as the Matching Field ( Tab) while IMporting.
    Hence any change in any value, creates another dupliacte record( which we do not want)
    Please select any Field with unique values ( like the Material ID, Customer ID etc) which will ensure that the particular records are updated with the new Values coming in.
    You will find the new value getting updated for the records which are already present. It will not create a duplicate record
    Hope it helps.
    *Please reward points if helpful
    Thanks and Regards
    Nitin Jain

  • Check Number in Reference field

    Hello SAPians,
    There is a requirement from my client as below:
    Vendor payment is done by T - CODES  F-58  or FBZ4
    (POST & CHECK PRINT)
    When the "KZ" document is posted , the cheque no. should be captured in "Reference" field automatically.
    Now if you check "Reference" field is blank in case of "KZ" documents. (if available then that document is modified afterwards) This helps for Bank Reconciliation.
    We have applied some user exits for a field of Check number in FBL1N. Now they need the check number in the reference field automatically in FS10N and FBL3N.
    Please suggest.
    Jk

    hi,
    Define a Background job for program RFCHKU00 with daily run option.
    First create a selection screen varient for the above said program.
    Then define the job using that varient. (While creating varient choose target field as Reference.
    set the run time as end of the day time like 23.00hrs.
    So automatically your payment document will be updated automatically with check no in reference field.
    This info might help you out.
    Thanks,
    Srinu

  • Cheque No in reference field

    Hi All,
    I have many payment documents in which i have to assign the cheque no. to the reference field. How can i do it?
    Regards,
    Rup

    Hi
    Manual check or sap printout from sap? If it is manual check then update the payment document with check number using t-code FCH5 and if print from SAP then not required Now just GO TO FCHU and update the check number in payment document reference field, In FCHU just put the company code , bank code , bank id and tick on reference -execute and you problem will solve
    Best Of Luck
    Tanmoy

  • ERS --- Reference field

    Hi All...
    Question in ERS Invoice.
    I am Implementing ERS Process for our intercompany scenario. When the COmpany code A recieves the
    goods the ERS invoice is created based on the GR and the Reference Field in the Invoice is filled up with the Inbound Delivery Number. Can anyone say where is this config of copying Inbound Delviery Number into the ERS Invoice exist or its a std?? What are the other fields all can be updated in this field  using the
    std SAP config ?
    Regards
    Balaji

    If you receive the GR against the PO then PO number will be copied or if you enter the GR against the Delivery then Inbound delivery number will be copied.
    this is the std system...there is no config for this.
    This selection you do in the MRRL tcode where you select
    1        Document selection per vendor                         
    2        Document selection per purchase order                 
    3        Document selection per order item                     
    4        Document selection per delivery document/service entry

  • Reference field-xblnr

    Hi Friends,
    In FI, Invoice document is generated with doc type RV. When invoice is done for a service order the system is copying the “invoice number” in reference field[bkpf-xblnr] of the RV document. However, when invoice is done for a delivery related order the system is copying the “Purchase order number” in reference field[bkpf-xblnr] of the RV document.
    The requirement is that ‘Reference’ field should always get updated with the “invoice number”.
    How does Sap populate the ‘reference’ field. Why and how  is it picking up different values for different billing types?
    Is there any config in spro where we can mention which field has to be picked up in reference field?
    Is there any other oss note or exit in this regard?
    Thanks & Regards
    Ajay
    SAP Practice FI,CO

    Hi Ajay,
    Check the settings in VTFA thoroghly....based on billing type copy control will be set.
    That could be reason.
    Best Regards,
    Velumani

  • LO-VC  Variant Config - update STPO-SANKA field at Plan/Prod Order Creation

    Hi All VC Expert,
    We are facing an issue with the update by reference characteristic of the field STPO-SANKA Cost relevancy indicator on the BOM.
    We are on SAP ECC 6.0 release 700 on Oracle
              Hot Package
                   - SAPKA70015 on ERP Cross Application componenent
                   - SAPKH60013 on SAP-APPL Logistics and accouting
    We are using material variant
    We are on the first level of configuration
    Classically, we built a procedure to set X to this data base field as below :
    $self.STPO_SANKA = 'X'
    We assigned this procedure to the relevant items
    Here is the result we have:
    At the creation of the Plan Order, this is not working
    At the creation of the Prod Order, this is not working
    When we do a Reload PP master data, this is working very well
    On CU50/VA02 when we check the trace,  the procedure is executed.
    Do somebody have an idea or already facing this and solve it ?
    Thanks in advance for your appreciated help.
    Edited by: Fabien MAUPIN on Jan 24, 2012 11:49 AM
    I still have issue with this object characteristics. I didn't find Oss note to correct the issue.
    Do somebody is facing the same issue as me and find a solution ?
    Edited by: Fabien MAUPIN on Jan 24, 2012 11:51 AM

    Hi Fabien,
    I have series of questions to ask.
    1. How are you creating the Planned order or Production Order. Is it created directly in PP module or through the requirement transfer from SD.
    2. What do you mean by PP master data.
    If you trigger the BOM for the planned order or production order from Sales order and some other reqmt trigger, what is your precondition for updating the cost relevancy indicator.  If you some script some lines of your process, I can check if you should include the $PARENT clause somewhere. I think the problem lies somewhere in the origin of configuration.

Maybe you are looking for

  • How to add a new column to a report

    I want to add a new column to my existing report. I modified the using report wizard and added the new column. When I pressed 'Finish' I lost all my previous settings. Without changing the existing stuff, how can add a column to a table. Any help is

  • EUL version 3.1.13 in a 4.1.x enviroment

    Hey there. This is an interesting - and perplexing - one to me. I'm combining 2 EULs together into 1. All that's fine, but where I'm surprised is that I'm running Disco client 4.1.48.08. When I run the following SQL query: SELECT 'EUL_OWNER' which_eu

  • Images coming in garbled in Captivate 4

    I am inserting images of screen shots into Captivate 4 and they are coming in fuzzy and garbled. I have tried capturing them in snagit and just using print screen and putting them into paint.net. No matter what i do the images turn out fuzzy. I have

  • Datagrid problem

    hi all how r u i have a small problem in datagrid and hope any one help me i created a datagrid that each row can has its own color i used this code package Models       import flash.display.Sprite;       import mx.collections.ArrayCollection;      

  • Cogi Error Deflicit of Unres.BA stock prev.

    Hi In COGI, I have tried to clear error in goods movements. But Inspite of stock available in storage location, system throws Deficit of Unrestricted stock and 0 goods movement successfully got executed. This is a halb material stock. I verfied stock