Modify Positions at save

Dear all
I have to check and modify if needed KDMA from vbap. I try to use Userexit USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ.
I do following:
      LOOP AT xvbap.
        IF xvbap-kdmat IS INITIAL.
          xvbap-kdmat = w_norepar.
          modify xvbap transporting kdmat.
        ENDIF.
      ENDLOOP.
    ENDIF.
I check at the end and in xvbap all kdma are filled. When I goto VA02 after, the field is still empty.
can you help?
thank you
Herbert

The user exit may require the code to be triggered in various places depending on the keys that are pressed and when you want the move to occur.
I suggest debugging to see that indeed the logic is being triggered at the correct time and that the value you are passing is populated.
As for the modify statement, try something more along these lines
                 modify xvbap index sy-tabix transporting kdmat.
When processing the record the position is key to updating the correct record.

Similar Messages

  • ME51N : modify EBAN at SAVE

    Hello,
    I want to modifiy EBAN when saving my purchase order, just before the controls in EXIT_SAPLMEREQ_010 (function group XM02).
    The aim is this one :
    I have add a specify field in EBAN-ZZFIELD. The user can fill this field in screen SAPLMX02/0111.
    At save, I want to copy the data stored in the first item on all items.
    For exemple :
    If the user create a purchase order and fill the items like this :
    ITEM1 : EBAN-ZZFIELD = 'XXX'
    ITEM2 : EBAN-ZZFIELD = 'YYY'
    ITEM3 : EBAN-ZZFIELD = 'ZZZ'
    I want to change this, in order to have :
    ITEM1 : EBAN-ZZFIELD = 'XXX'
    ITEM2 : EBAN-ZZFIELD = 'YXX'
    ITEM3 : EBAN-ZZFIELD = 'XXX'
    The problem is there are no userexit on SAPLMX02 with all EBAN contents in exporting parameters.
    Thanks.

    The user exit may require the code to be triggered in various places depending on the keys that are pressed and when you want the move to occur.
    I suggest debugging to see that indeed the logic is being triggered at the correct time and that the value you are passing is populated.
    As for the modify statement, try something more along these lines
                     modify xvbap index sy-tabix transporting kdmat.
    When processing the record the position is key to updating the correct record.

  • How to modify position in the contract with BAPI_CUSTOMERCONTRACT_CHANGE

    Hi experts,
    I m facing a problem when i modify a contract with BAPI BAPI_CUSTOMERCONTRACT_CHANGE, indeed it adds new position for the same material instead of collecting its quantity, is there another BAPI to do so or should i copy this BAPI and modify it?
    Thanks in advance.

    Hi,
    system details:
      ST-PI:       2005_1_46B
      ST-A/PI:     01G_R3_46B
      SAP_NOTES:   46B
      SAP_HR:      46B
      SAP_BASIS:   46B
      SAP_APPL:    46B
      SAP_ABA:     46B
    Content of LOGIC_SWITCH:
      PRICING         KNPRS           CHAR    1
      ATP_WRKMOD      ATP_WRKMOD      CHAR    1
      SCHEDULING      CHAR1           CHAR    1
      NOSTRUCTURE     XFELD           CHAR    1
    Sergej

  • Open , modify univ. connexion, save report (.rep file) in JSP or JAVA

    <p>Hi,</p><p> </p><p>I need, in the portal, loading all reports for changing the universe connexion (Name by Name-C2).</p><p>If i need to change by hands, i need big time.</p><p>I don&#39;t want used the "desktop intelligence" because the user don&#39;t have this tools.</p><p> </p><p>Now, it&#39;s possible to open, modify and save a report in JAVA or JSP ? </p><p> </p><p>thank you,</p><p>gilles </p>

    Hi Gilles,Â
    For .rep (Desktop Intelligence) files user should have the tool to author these. So I'm not sure I understand what you mean by:
    bq. I don't want used the "desktop intelligence" because the user don't have this tools
    Â In any case, here is the answer to your question:Â
    For Desktop Intelligence documents (.rep) you can use Desktop Intelligence COM Automation SDK (installed together with GUI product).. (DataProvider.ChangeUniverse())
    For a Web Intelligence (.wid) you can use Report Engine Java SDK .
    François Imberton

  • Add positions before save order

    Hi experts,
    I dont know how I can add some lines, positions, in the crmd_order, before to save, in the creation of the documents...
    In this lines i have to set the number_int. This is for complaints. I have check some badis like CRM_ORDERADM_I_BADI..but i dont know if it is possible to do it here...
    Any suggestions?
    Thanks in advance,
    Mon

    Hi,
    I cant call CRM_ORDER_MAINTAIN inside method enqueue, because it produces a recursive call of CRM_ORDER_MAINTAIN  Maybe I need another function to insert lines before create the document...but I dont know what..
    I use this code:
    ** CT_ORDERADM_I:
    *ORDERADM_I-HANDLE             = HANDLE_1.
      orderadm_i-handle             = '000000001'.
    *ORDERADM_I-HEADER             = GUID.
      orderadm_i-header             = IV_HEADER_GUID.
      orderadm_i-mode               = 'A'.
      orderadm_i-number_int         = '10'.
      APPEND orderadm_i TO ct_orderadm_i.
      CLEAR orderadm_i.
        fields-ref_handle  = '000000001'.
    *FIELDS-REF_GUID    = GUID.
        fields-ref_kind    = 'B'.
        fields-objectname  = 'ORDERADM_I'.
        lin_fields-fieldname = 'MODE'.
        APPEND lin_fields TO tab_fields.
        CLEAR lin_fields.
        lin_fields-fieldname = 'NUMBER_INT'.
        APPEND lin_fields TO tab_fields.
        CLEAR lin_fields.
        lin_fields-fieldname = 'PRODUCT'.
        APPEND lin_fields TO tab_fields.
        CLEAR lin_fields.
        MOVE tab_fields TO fields-field_names.
        APPEND fields TO input_fields.
        CLEAR: fields, tab_fields[].
    *ORDERADM_I-HANDLE             = HANDLE_1.
      orderadm_i-handle             = '000000002'.
    *ORDERADM_I-HEADER             = GUID.
      orderadm_i-header             = IV_HEADER_GUID.
      orderadm_i-mode               = 'A'.
      orderadm_i-number_int         = '20'.
      APPEND orderadm_i TO ct_orderadm_i.
      CLEAR orderadm_i.
        fields-ref_handle  = '000000002'.
    *FIELDS-REF_GUID    = GUID.
        fields-ref_kind    = 'B'.
        fields-objectname  = 'ORDERADM_I'.
        lin_fields-fieldname = 'MODE'.
        APPEND lin_fields TO tab_fields.
        CLEAR lin_fields.
        lin_fields-fieldname = 'NUMBER_INT'.
        APPEND lin_fields TO tab_fields.
        CLEAR lin_fields.
        lin_fields-fieldname = 'PRODUCT'.
        APPEND lin_fields TO tab_fields.
        CLEAR lin_fields.
        MOVE tab_fields TO fields-field_names.
        APPEND fields TO input_fields.
        CLEAR: fields, tab_fields[].
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        IMPORTING
          et_exception      = exception_t
        CHANGING
    *      ct_orderadm_h     = orderadm_h
          ct_orderadm_i     = ct_orderadm_i
          ct_input_fields   = input_fields
    *      cv_log_handle     = log_handle
        EXCEPTIONS
          error_occurred    = 1
          document_locked   = 2
          no_change_allowed = 3
          no_authority      = 4
          OTHERS            = 5.
    Regards and thanks in advance.
    Mon

  • Modify positions using MV45AFZZ

    Hi SAPGurus,
    I am attempting to add a verification to the user-exit MV45AFZZ that, accorting to parameters it will clear the field VBAP-PS_PSP_PNR.  I am not sure how to do this as there are various tables, xvbap, yvbap for example.  I have tried modifying all of them with no luck, is there a flag that has to be marked to carry out the update?
    Regards,
    Simon

    >
    Suneel Kumar Gopisetty wrote:
    > Hi ,
    >
    >  What is verfication you need to add ??
    >
    > Regards,
    > Suneel G
    This is what I have now;
    IF vbak-faksk EQ 'ZC'.
        loop at xvbap.
        clear xvbap-ps_psp_pnr.
        modify xvbap.
        endloop.
        ENDIF.
    I had it in the FORM USEREXIT_PRICING_PREPARE_TKOMP also I tried in USEREXIT_SAVE_DOCUMENT and USEREXIT_SAVE_DOCUMENT_PREPARE.

  • Modify position description with job description

    Hi ABAP gurus,
    I'm new to ABAP programming and needs some directions from the gurus out there.
    I need to update the HR position descriptions (fields STEXT, SHORT) in HRP1000 with the related job descriptions (fields STEXT, SHORT).  What's the best way to do this?  Are there function modules that can help me with this?  
    Regards,
    Hanna

    Thanks Amit for your response.
    Yes this will be a one time bulk update.  Do you know of any FM that can get the the related Job Description given a Position Number?
    Best Regards,
    Hanna

  • How To Save Modified Fields After query From The Database

    I Have This Customer Information Form That's Sort of an Ordering Forms , I Made It By LiveCycle v9.0
    And I Want To be able to search for Specific Record and Modify it and Save It Again to The DataBase
    I believe That We All Saw The (( Data Connected Forms Presentation )) For Pual Guerette
    At One Part Of The Presentation (Minute 0:26:00 specifically) When He Try To Search A Specific Record In the Database
    And He Got all this annoying Messages Then The Record what He looking Shows up ; He Said That We No Longer able to Modify The Record After We Doing the Search
    My First Question Is Why ???
    Is there anyway After I got that Specific Record I Want from the Database I Can make my modification on it and update it Back in the DB.
    OR i Have to Browse the whole DB looking for it Specially that I got this (ID Auto Increasment Number field Issue) Which leads me to ;
    My Second Qustion;
    Why I Can't just connect ''The Form Order Number'' to an Auto Increasment Number field in the DB
    Obviously i can't, So Can I do Anything to achieve this goal ??
    I Believe that we can Find some scripting to make that Happen 
    I Will Be So Grateful If There Is Any Helpful Answer
    FYI: I'm Not Java Expert So If There Is any Coding That's Can be Helpful Please POST ALL OF IT if you can ,,,,

    Hi,
    The information there is excellent and I would strongly recommend it.
    I don't have any public database examples and I am not inclined to spend time preparing an example if you are not prepared to read up on the methods.
    Stefan's site is the only link I have for databases.
    Good luck,
    Niall

  • Will lookout integrator system allow you to modify and save existing runtime/development applications

    We have many customers that are using Lookout. All have the Runtime/Development version. I would like to know if the Lookout Integrator System license will allow me to save a customer's process to a floppy disk from their machine, allow me to open it from my machine (with Lookout Integrator System license installed), modify the process, save it back to a floppy disk and copy the process to the customer's machine.
    My goal is to be able to "develop" and or modify a customer's process at my office then copy it to customer's machine with modifications.
    I also employ three other Lookout programmers. Will I have to purchase multiple integrator licenses or can I install one license on four machines?

    Yes, you are able to open the customer's process, modify something and then copy to the customer computer.  Lookout Integrator software is exactly what you need.
    But you have to purchase 4 licenses if you want to install on 4 computers.
    Ryan Shi
    National Instruments

  • How to delimit Relation b/w Pers# & Position in PP01 in sap HR

    Hi Experts,
    in PA30, while creating the record for my custom infotype, in my custom infotype i am providing Position.
    once save the record i am trying to create the custom(AZ08)relation with Pers# and Position. it is working fine.
    For creating Relation i am using FM
    CALL FUNCTION 'RH_RELATION_MAINTAIN'
            EXPORTING
              act_fcode           = 'INSE'
              act_plvar           = '01'
              act_otype           = 'S'
              act_objid           = p9006-zzpostn
              act_istat           = '1'
              act_rsign           = 'A'
              act_relat           = 'Z08'
              act_sclas           = 'P'
              act_sobid           = p9006-pernr
              act_begda           = p9006-begda
              act_endda           = p9006-endda
            EXCEPTIONS
              OTHERS              = 2.
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    But the prob is if user want to Dilimit the record from PA30, system will dilimit the infotype record , and same time  i want to delimit the Relation also.
    can anyone give me the procedure like is there any FM to delimit the Relation.
    Thanks in Advance,
    Sumathi.

    Hi  sudha
    use function module   'HR_INFOTYPE_OPERATION'
    call function 'HR_INFOTYPE_OPERATION'
    exporting
    infty =                                         "pass info type
    number =                                   "emp id
    subtype =                                  " sub type
    validityend =                              " end date
    validitybegin =                          "begin date
    record =                               "pass the record u want to modify or delimit
    operation =                         " 'MOD'   or 'DEL'
    importing
    return =                                 "return parameter
    Regards,
    Ravi

  • VA01, message when save a sales order

    Hi,
    I need to validate each one of the amounts of each position of an order of sales, this validation must allow that when finding an error shows the message and leaves to the user the possibility of modifying the amount with error, this validation only must become at the time of saving the order.
    I have proven several alternatives with userexit_save_document and badi_sd_sales_item in the method item_check, but it does not use it because the amounts are valued always and I only need that it is validated when is going to save it. Please if somebody can give some idea. 
    Thanks,
    Claudia

    Hi,
    I use the user exit save_document_prepare and already shows the message but me it leaves disabled the positions and  I cannot modify them, when changing the message class it shows the message but at the same time save the sales order, i need that when find an error show the message and i can modify this position before save the sales order. 
    Thanks,
    Claudia

  • Query on Position Hierarchy

    Hi,
    How can we change top position in position hierarchy?
    It's grayed out..we need to change the top position holder
    Also we observed as when we query all the position hierarchies we see the same position name and holder at the top
    Please Advise
    Mahendra

    Prakash Kumar wrote:
    Hi Mahendra,
    For that first check that in all those position hierarchies, what is the top position. Once you get that, pleas let me know whether they are same or they are different. If they are same, it answers your query.
    While creating a new hierarchy, you need to define the hierarchy first and then save it. Then go to the lower block and select the top position (whatever you have got from the client) and save. Then you will get the option of going down with "Down Arrow" type key. There you have to select the sub-ordinate position and save. Like this you have define/attach all the position till the lowest of the hierarchy.
    There is another option of copying (and applying) the existing hierarchy to the new position hierarchy defined by you and then it can be modified as per your need.
    Thanks & Regards
    Prakash KumarThanks Prakash
    I am seeing same holder in all hierarchies..Now this is holder i need to change...as he is no longer with the client..
    I have done the same way as you said...
    First say i created one postion hierarchy name in postion hierarchy...and just save it...closed it..
    when i reopen or query the new position hierarchy...i see the same top position which i told you earlier is been defaulted...don't know from where purchasing is pulling it..hope you got my issue now...
    Now how and where it is been defaulted as the top position...
    only way is to end date that postion??
    Thanks
    Mahendra

  • HOW TO OPEN AND SAVE FILES TO/FOR MS-WORD 2007 .docx format

    MS-Office 2007 will open .docx files as well as .doc files. Apple's Pages '08 can OPEN MS Word 2007 documents with the new file format ".docx". Pages '08 can not save as ".docx" files, just ".doc" files, but since MS Office 2007 can open these ".doc" without a problem, you should be covered.
    Here is how.
    To open: Just double click the file and Apple's Pages '08 will import the file and open it for you to use and modify.
    To save and use at your work or school's Windows MS Word 2007: When you are done and ready to save the file, go to FILE in the menu bar in Pages '08 and select EXPORT. Then pick the icon DOC WORD and click NEXT. Then in the SAVE AS box, give it a name and tell where you want to save your file to. Click EXPORT. Export is like Save, as it will now save the file where you told it to save it to. Remember you can use the same name, or give it a new name. Thats it. EASY.
    It will save the file in a Windows Word format of ".doc" that MS Word 2007 can open and use.
    Hope this helps people.
    -Apple //GS

    Why yes. How did you know that I saw the way, the truth and the light?
    I just had so many people ask me how to do this, that I thought I might share it with as many people as I could and help the masses To bad that Apple just did not have it as a simple "Save As:" Maybe in the next update.
    -Apple //GS

  • Issue with 'SAVE AS' RESTful service call in 4.1 SP5 ?

    Hello Everyone,
    I'm facing an issue when trying to save a webi document into another folder using 'SAVE AS' RESTful call, it's giving 500 Internal server error  (through AZOT & RESTClient)
    Following are details:
    We are on to BusinessObjects version 4.1 SP5. In the AZOT workflow, I have created a new document and in the next call I'm trying to save this newly created document into another folder, then this is error is observed.
    RESTful service URL:- [POST] : /documents/{docId}
    Request Body:
                             <document>
                                <name>Testing SAVE AS</name>
                                <folderId>219060</folderId>
                            </document>
    Response:
    Can anyone help me with this ?
    Thanks,
    Ram

    Hello,
    Thanks for your prompt replies.
    @Saritha:
    1. On new document Save call is giving message as "NOT Modified", as i didn't perform any actions.So Yes, I'm able to perform SAVE.
    2. Yes, I have performed other operations like creating a Report.
    @Eric: 3. Yes, the folder which I'm trying to save is writable for the user.
    My Observation: When I'm trying to 'SAVE AS' on new document its giving 500 error as I said earlier.
    1. But, after creating new document, I created a new Report for that document, then 'SAVE AS' working. That means after performing some action/modifying the document 'SAVE AS'  is working for me.
    2. Same issue(500 error) observed when trying to perform 'SAVE AS' call on the EXISTING document as well (which is create in BI Launchpad, refreshing and working fine).
    So, is it mandatory to perform any action (which brings the document to Modify mode [i guess]) before this 'SAVE AS' call ?
    Thanks,
    Ram

  • How do I automatically keep settings unchecked in the 'save as' dialog box?

    Hey guys,
    I use Illustrator CS6. Every day I modify and then save lots of graphics in illustrator. I do a lot of “saving as” with files so that I can see what is selected in the Illustrator options panel. I have to make sure that:
    -Create pdf compatible file
    -Embed ICC Profiles
    -Use Compression
    are all deselected (Turned off) before I save. I would like to save time and automatically have none of these items checked when I go to save. I’ve already figured out how to keep ‘create pdf compatible file’ unchecked all the time: by modifying the AI preferences file and specifying “0” next to PDFCompatibility.
    Does anyone know how I can modify the others to keep them unchecked? Are they specified as well somewhere in the AIPrefs file? Thanks!

    Perhaps, but the problem is I don't really know what to look for. I've tried doing a keyword search of the AIprefs file to find where ICC profiles and compression could be located but I couldn't find anything. Does anyone know what they are called and what I should modify?

Maybe you are looking for

  • Confused with CDATA section

    Hi, I am confused as to how the DOM tree is formed for the following XML <Template> <Query> <sql name="A"> <![CDATA[ SELECT     name from salary where salary >1000;   ]]> </sql> <sql name="B"> <![CDATA[ SELECT    *            FROM         EMPLOYEES  

  • 5800 wont download using wlan

    When at home i connect my 5800 xm to my wlan to use the internet and download apps. but for some reason when ever i am downloading anything (eg just updated ovi maps) it will connect to t-mobile internet to download although i can see that my homes s

  • Zen Micro...turns itself on after shutting d

    I scanned a few pages of threads and did not see this issue posted, but I apologize if I missed and am repeating something.. Anyway, after installing the .0.03 firmware, my device seems to power itself on about 2-3 seconds after I turn it off. This h

  • Flash form in dreamwever

    hi i have made a basic flash email form. in flash when you fill out the email address the subject and the body text when you click submit it fills out all three boxes in the email programme it opens up but when i preview the site in dreamweaver only

  • Cannot connect to FTP from NetCam thru Router

    I have a netcam from another vendor (AirLink SkyIPCam250) that I access thru my home network (WRT54G). I can access the live feed from outside of the network fine. Now I'm trying to auto-post pics from the netcam to my FTP site, which is hosted by Go