How to change field in runtime at update query

hi buddys
i have to change the particular field during runtime how is it possible
sample :
          UPDATE zmpq_qcchk_hdr
           SET (field) = i_hdr-ind1 WHERE
           zcust = i_hdr-zcust AND zns = i_hdr-zns AND
           zpgma = i_hdr-zpgma AND zdpn = i_hdr-zdpn AND
           zdu = i_hdr-zdu AND  zpart = i_hdr-zpart AND
           zsale = i_hdr-zsaleorder AND zitem = i_hdr-zitem.
The (field) should be changed at runtime
with luv
pauldharma

YOu can concatenate the field name with the whole string like this
concatenate v_fieldname
' = i_hdr-ind1 WHERE
zcust = i_hdr-zcust AND zns = i_hdr-zns AND
zpgma = i_hdr-zpgma AND zdpn = i_hdr-zdpn AND
zdu = i_hdr-zdu AND zpart = i_hdr-zpart AND
zsale = i_hdr-zsaleorder AND zitem = i_hdr-zitem.'
into v_string.
UPDATE zmpq_qcchk_hdr
SET (v_string).
Regards,
Ravi Kanth Talagana

Similar Messages

  • How to change field VBAK-CMNUP using VA02

    Hi EXPERTS,
    How to change field VBAK-CMNUP (Date of next credit check of document) using VA02?
    Seems it is hard to find it on the screen of VA02.
    Thanks in advance.

    Hi,
    Check these notes:
    Note 635727 - VBAK is filled with date only if block is set
    Note 588649 - Next date (CMNGV) - meaning and function
    Regards,
    Eduardo
    PD: I forgot the Note 588649 - Next date (CMNGV) - meaning and function.
    Edited by: Eduardo Hinojosa on Jun 11, 2009 11:39 AM

  • How to change to canadian store to update apps

    How to change to canadian store to update apps

    Change to Canadian App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3. Tap on your Apple ID
    4.Tap "View Apple ID"
    5. Enter your user name and password.
    6. Tap "Country/Region."
    7. Tap "Change Country/Region"
    8. Select the country/region where you are located; re-select country/region even if it is correct
    9. Tap "Done".
    Note: If the change doesn't take effect, sign out of account and sign in again.

  • How to change the "ok" button to "update" button

    Hi all
    I update a field of text within a form and i want as  result of the update to change the default button (id = "1") from ok to update the same way it happens when the user enter text in the field. how can i do that through code?
    appreciate the help

    Hi Yechiel,
    You just change the form mode to update
    Regards
    Ad

  • How to change field text in standard trasaction

    Hi,
    In XD01 transaction i need to change the standard field label, How difficult/easy is it to change field label of a SAP standard field? Is there any other way to change the screen text. please let me know.
    regards
    Jaya

    Hi Jaya,
    You can change the label on the screen directly - BUT this would be a modification.
    There is a way to change field labels without a modification, but that has to be done on the data element level.
    For that just find out the data element that is referenced and create a Text Enhancement for that Data Element which is NOT a modification.
    - Goto transaction CMOD
    - Choose Menu 'Goto'
    - 'Text Enhancements'
    - 'Keywords'
    - 'Change'
    - Put in the data Element Name and confirm
    - You'll have the possibility to change the Label texts for
         Short, Medium and Long Field Label
         Heading
         Short Description
    - Make your Changes and save
    - Done
    Where ever that data element is referenced you'll see your own text.
    Hope that helps,
    Michael

  • How to increase field's number when update

    What value should I set when I want to make some field increase ,
    such as "UPDATE table SET field = field + 1";

    Hi, chan15
    Please checkou this tutorial, it shows you how to increase field counter by updating the field value by adding +1 everytime you reload th page...
    :: Visits Hit Counter ::
    Herein this tutorial we will learn how to implement an auto visits hit counter. The visits hit counter uses an "After" "Custom_Trigger" to update the (hits_ht) field by adding (current field value
    +1
    ) to it, This script is very useful, specially when used to view member`s profiles, photo albums etc... by implementing this hit counter script with your database records you will get full reports about how many times profile, photo viewd by members or visitors.

  • In sets (t-code GS01-04): How to change Field name

    HI,
    I have created sets for rule in validation by t-code GS01. Where I have given Tbale name BSEG and Field name KOSTL(Cost Center No). Now, I want to change field name SAKNR (GL NO) instead of cost center. When I am trying to change field name t-code GS02, there is field name is in display mode and no way to change it.
    As I have lot of entries in each set, so that creation of new sets is very hard job again. Further when I trying to create new sets by reference it didnt change the table name and field name.
    Please provide me a solution.
    Khalid

    Hi,
    Hope it is not possible, logically total field is changing and the dependent entrie will not stay as it is. I don't think this is possible.
    Eventhough the values are same but the fields are different.
    VVR

  • How to use Field-symbol with dynamic select query

    Can anybody tell me, how to use field-symbols in the dynamic select query.

    FIELD-SYMBOLS <fs> { typing | STRUCTURE struc DEFAULT dobj }.
    1. ... typing
    2. ... STRUCTURE struc DEFAULT dobj
    The FIELD-SYMBOLS statement declares a field symbol <fs>. The name conventions apply to the name fs. The angle brackets of the field symbols indicate the difference to data objects and are obligatory. You can declare field symbols in any procedure and in the global declaration section of an ABAP program, but not in the declaration section of a class or an interface. You can use a field symbol in any operand position in which it is visible and which match the typing defined using typing.
    After its declaration, a field symbol is initial - that is, it does not reference a memory area. You have to assign a memory area to it (normally using the ASSIGN statement) before you can use it as an operand. Otherwise an exception will be triggered.
    eg.
    FIELD-SYMBOLS <fs> TYPE ANY.
    DATA: BEGIN OF line,
            string1(10) VALUE '0123456789',
            string2(10) VALUE 'abcdefghij',
          END OF line.
    WRITE / line-string1+5.
    ASSIGN line-string1+5(*) TO <fs>.
    WRITE / <fs>.
    output:
    56789
    56789
    reward if helpful
    anju

  • How to use xs:date() in an update query?

    I cannot test xs:date attributes in an "update" query. In a "select" query, all work fine.
    This is the sample schema:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Created with Liquid XML Studio 1.0.8.0 (http://www.liquid-technologies.com) -->
    <xs:schema xmlns:tns="http://OracleTest" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified" targetNamespace="http://OracleTest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="MyComplexType">
    <xs:sequence>
    <xs:element minOccurs="0" name="FirstChild">
    <xs:complexType>
    <xs:attribute name="A" type="xs:string" />
    <xs:attribute name="B" type="xs:string" />
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name="ID" type="xs:string" />
    <xs:attribute name="DateAttr" type="xs:date" />
    </xs:complexType>
    <xs:element xdb:defaultTable="MyElement" name="MyElement" type="tns:MyComplexType" />
    </xs:schema>
    This is a sample XML document:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Created with Liquid XML Studio 1.0.8.0 (http://www.liquid-technologies.com) -->
    <tns:MyElement ID="ID1" xmlns:tns="http://OracleTest" DateAttr="2008-03-14" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://OracleTest http://OracleTest.xsd">
    <tns:FirstChild A="a" B="b" />
    </tns:MyElement>
    If I check the DateAttr attribute in a xquery, it works fine:
    select xmlquery('declare default element namespace "http://OracleTest"; collection("/Testing")/MyElement[@DateAttr=xs:date(''2008-03-14'')]' returning content).getclobval() from dual
    If I execute an update, like this:
    UPDATE RESOURCE_VIEW SET RES = deleteXML(RES, '/oraxdbr:Resource/oraxdbr:Contents/Testing/MyElement[@DateAttr=xs:date(''2008-03-14'')]','xmlns:oraxdbr="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns="http://OracleTest"')
    WHERE equals_path(RES, '/Testing/test1.xml') = 1
    I get the error:
    SQL Error: ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00607: Invalid reference: 'date'.
    31011. 00000 - "XML parsing failed"
    Where is the problem?
    Thank you!
    Mirko

    Hi,
    Correct me if I'm wrong, but didn't xs:date() came with xpath 2.0?
    deleteXML supports xpath 1.0 .
    XMLQuery supports xpath 2.0.
    That's why the error "Invalid reference: 'date'".
    what function supports which version read Re: Which version of XPathAnts

  • How to change field values AFTER Inbound IDOC Posted successfully

    Hi SAP Experts,
    In my project I receive the inbound IDOC PORDCR05 from PI and posted as an Purchase Order in ECC.
    I create the Z process code and Z function module (which is a copy version of IDOC_INPUT_PORDCR) and complete all the necessary configuration steps. It works perfectly.
    My problem is: I have to  collect some inbound idocs (that satisfied some criteria) and change the value of field EKPO-TXJCD and EKKN-KOSTL of the PO AFTER  it posted successfully (means the purchase order is created and save in database).
    How can I do this? I've try to put the logic code in Z function module, but it does not work, since at that time, the Inbound IDOC is not updated to the database yet.
    Aprreciate your advise.
    Regards,
    Elaine.

    Hi Elaine ,
    as per your cretiria pick the idocs and take created PO# from status 53 & use the BAPI (BAPI_PO_CHANGE) to change the neccessary values in the PO. We can't reprocess those idocs again.
    Reddy

  • How to change apple id for app updates

    The user id that displays on my ipod is correct on the settings menu but when I try to update my apps, the apple id that displays (and wants a password) is one that I no longer use.  How can I change the apple id for this one function to my current correct one?  I've tried poking around all the settings and can't find where to change it.  Once it is changed, I can then use my regular password.   Thanks!

    Hi jabsykes,
    Welcome to the Apple Support Communities!
    It sounds like you may have downloaded or purchased applications from two different Apple IDs. To update those applications, you will need to sign in to the Apple ID that downloaded the applications initially. Please use the attached article for instructions on how to sign out and sing in to different Apple IDs on your iOS device.
    iOS: Sign in with a different Apple ID in the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/HT1311
    Have a great day,
    Joe

  • How to change field mapping in IDOC

    Hi Experts,
    My requirement is to create a purchase requisition automatically through an interface using the IDOC sent by a *source client*.
    For this i have used PREQCR as the message type, PREQCR02 as basic type.
    E1BPEBANC & E1BPEBANTX are the segment type i have to use.
    I have created a Z process code in which the function module that i have used is IDOC_INPUT_PREQCR.
    With the help of this i can map all the field values to PR.
    Now there is a field in this idoc called vendor which comes from the source client.
    Now the value that is maintained in this field(vendor) should go to the Text Id that is maintained at the header level. ( i.e. the header text. i.e. In transaction ME51N, the text IDs which we can see at header level, the vendor value should go in one of this text Id ).
    Now how do i do this, because I am using standard funciton module IDOC_INPUT_PREQCR in which there is already field mapping that this vaue should go in this field and so on...
    Do I have to use an exit for the same ?? If yes then which is the exit ??
    Please suggest.
    Regards,
    Priti.

    Hi,
    I think there is no userexits available during the processing using function module "IDOC_INPUT_PREQCR".  You have to copy this function module to a Z function module.  Change as per your requirement and attach the new function module with the Z Process code created by you.
    Regards
    Vinod

  • How to change field size using SQL against an oracle Database

    I am an admitted novice user, looking to become more proficient.
    I have a field in a table that I need to expand the field size. The table is called Inquiries. The data type is text. The current Field Size is 10. I want to increase it, to either the max, or somethign long enough to fit TECHNOLOGY LEADERSHIP PROGRAM.
    What is the SQL command to change the field size, and what is the max for a Text Field Size

    And/Or, an even better question might be,
    Do I need to use SQL*PLUS to do this, or are there better tools. I.e, I like how in Access, you can open up a database in Design view and just change the amount for the field size. Is there a similar "easy" method to do something like that with an Oracle database.
    My current version of the server/database is:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    I was thinking I had to do SQL commands to perform the action, but there may be another way that I am not thinking about with all of the tools at my disposal. When I installed Oracle on my desktop, I installed most of the management tools and networking services, if that helps

  • How to change Field SEGMENT in Profit Centre Master

    Dear Experts,
    We have wrongly created a profit centre with wrong segment in the master and we have done some transactions with the same profit centre. Now we want to correct the SEGMENT field . But the field is greyed out when using KSE2 t code.
    Please advise how can we change the segment field.
    Regards,
    Alok

    Hi
    Please go through the below mentioned links
    Modify segment in Profit Center
    Segment in document posting
    Hope it may help you to solve your problem
    Regards
    Praveen P C

  • How to change value of element and update XML file

    Hi
    I have an xml file called test.xml like below
    <?xml version="1.0" encoding="UTF-8"?>
    <printing>
         <userName/>
         <viewName/>
    </printing>I want to change value of user name and view name and update test.xml file in my folder
    Anyone has sample code to do so
    Ashish

    Thanx
    i was able to do so, but what i want now is to remove element
    for example
    i have following xml
    <?xml version="1.0" encoding="UTF-8"?>
    <printing>
    <firstLineTexts>
              <firstLineText />
              <firstLineText>|line11</firstLineText>
              <firstLineText>|line12</firstLineText>
    </firstLineTexts>
    </printing>how do i remove all elements fireLineText
    my final output should be
    <?xml version="1.0" encoding="UTF-8"?>
    <printing>
    <firstLineTexts>
    </firstLineTexts>
    </printing>How do i do it using DOM,
    I can create instance of DOM and write it using TransformerFactory
    Ashish

Maybe you are looking for