Va02 screen input first save it has to update the data base table

I am working on VA02.
For only one user(delivery block)should be block and when we are changing in sales order document for that user it has to update the VBAK table.
for second save i'm able to updating but i want to update at first save only.
thanks,
sree.

I want to update the DB table VBAK. and the user exit is:
here is my coding: my requirement is to block a field i.e LIFSK in va02 and after saving that and i have checked vbak table then in lifsk the blocked db is updated IN TABLE CONTENTS.LATER IF I SAVE IT ANOTHER TIME WITHOUT ANY MODIFICATIONS THE FIELD IS NOT UPDATED.
now the problem is with updation .i have blocked the field.
Please help me  its urgent
FORM USEREXIT_MOVE_FIELD_TO_VBAK.
tables: knkk.
if not vbak-kunnr is initial.
  if vbak-auart NE 'ZFD' and
     vbak-auart NE 'ZCR2' and
     vbak-auart NE 'ZRE' and
     vbak-auart NE 'ZSD'.
    select single * from KNKK
      where  KUNNR = vbak-kunnr
      and    KKBER = '8000'.
      if sy-subrc = 0.
        clear vbak-LIFSK.
      ENDIF.
      IF NOT SY-UNAME = 'FINCOMM1' AND SY-TCODE = 'VA02'.
          SELECT SINGLE LIFSK FROM VBAK INTO LIFSK1 WHERE VBELN = VBAK-VBELN.
           IF LIFSK1 NE ' '.
              vbak-LIFSK = ' '.
           ELSEif vbak-auart eq 'ZCR2'.
                  vbak-LIFSK = 'Z1'.
              ELSE.
                  vbak-LIFSK = 'Z6'.
           endif.
         if sy-tcode eq 'VA02' . "added on 22/05/2008
        if screen-name = 'VBAK-LIFSK'.
              screen-input = 1.
              modify screen.
              update vbak.
        endif.
  ENDIF.
      ENDIF.
  endif.
endif.
  if sy-tcode eq 'VA02' AND sy-uname NE 'FINCOMM1'. "added on 22/05/2008
        if screen-name = 'VBAK-LIFSK'.
          screen-input = 1.
              modify screen.
              update vbak.
        endif.
endif.
endform.
Thanks,
sri.

Similar Messages

  • How to know who has created a particular record in the data base table

    Hi All...
    Can any one tell me how to track the information about who has entered the records in to the data base table....
    Thanks in advance...

    You could check the Created By and Created On fields if your tables contains these fields.
    OR
    You could check the table DBTABLOG if table logging is enabled for the table
    OR
    You could check the Change document tables CDHDR and CDPOS.
    -Kiran
    Please mark useful answers

  • EDIT field in ALV GRID and on SAVE it has to update the DB Table

    Hi Experts,
    I have searched lot of forums...
    But i had not got the exact solution for this...
    I have multiple records that displayed in the ALV output screen and i had modified more than one record and then click on save.
    It has to modify all the lines that i had changed in the EDITABLE FIELD.
    Can any one help me in doing so...
    Sample code will be more help full....
    Thanks in advance,
    Kruthik

    Hi Kruthik
    Check [=> OO ALV Event DATA_CHANGED <= |http://abaptips.com/?p=70], hope you will get idea.
    Please reply in case of any confusion.
    Thanks and Best Regards,
    Faisal

  • My first edition macbook has power and the hard disk runs yet screen is black. Somebody suggest the next thing POWER CAPS LOCK OPTION COMMAND what is this and how can I repair my laptop?

    My first edition macbook has power and the hard disk runs yet screen is black. Somebody suggest the next thing POWER+CAPS LOCK+OPTION+COMMAND what is this and how can I repair my laptop?

    Take it in for service.

  • HT4061 I cannot access my device. The screen is blank however it has power. The phone will ring but since the screen is blank i canot answer.

    I cannot access my device. The screen is blank however it has power. The phone will ring but since the screen is blank I cannot answer. It seems to be dead but has power?

    When restoring to factory defaults/new iPod fails to resolve a problem that indicates a hardware problem an an appointent at the Genus Bar of an Apple store is in order.
    Check your warranty coverage here:
    Apple - Support - Check Your Service and Support Coverage

  • How to insert row in table control and save the data in tables

    Hi,
    I have one table control i am displaying data into table control ,
    my problem is : i want to display data into read mode in table control.
    but when i click on insert button on the same screen i want one blank line should inserted into table control , then i want to insert some data into table control on that row , when i click the save button . the new data inserted into the table control is insert that data into ztable ,
    please give me solution
    main problen is  how can know inserted line in table control and pass that data into ztable.

    Hi,
    Follow the below logic,
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0001.
      MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in 
                                                                          ITAB
      LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
           WITH CONTROL CTRL_LP_D516
           CURSOR CTRL_LP_D516-CURRENT_LINE.
      The following module moves data to control
        MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT GT_CTRL_LP_D516.
      ENDLOOP.
      MODULE EXIT AT EXIT-COMMAND.
      MODULE USER_COMMAND_0001.  --> Here you have to take out the values from table control and update database table
    Reward points if helpful.
    Thanks and regards,
    Mallareddy Rayapureddy,
    Munich, Germany.

  • In Pages I used to be able to edit a template and "save a version" to update the template. Now i have to rename the template to save the changes. Why is this happening? what happen to "save a version"? its no longer an option under "file".

    In Pages, In the past, I was able to edit a template and "save a version" to update the template. Now i have to rename the template to save the changes. Why is this happening? what happen to "save a version"? its no longer an option under "file". And I can no longer open the actual template, when template is clicked, it automaticaly opens an "untitled" version???

    In your description you say the first document opens as the Title you gave it.
    Templates always open as Untitled so it sounds like you have saved a regular document, perhaps into your templates folder which is possible.
    Since you have already worked on it and it has been previously saved, Lion will now Save for you and Save a Version is available
    The other document does open as Untitled so sounds like a real template and as Peggy has pointed out will not have either Revert nor Save a Version until you Save it and have changed something in it.
    This is a classic example of just how Apple's supposedly "simplification" of the process, is leading to confusion of what has happened. That the conditions and resulting actions from those conditions is so convoluted says it all.
    It all reminds me of the Monty Python Life of Brian sketch with the "simplified" John Cleese instructions to the class, as to if you have a brother in an older dorm whether to hang your hat and bag on the hooks provided. The trouble is Apple does not get the joke, that it is transforming itself into a frequently self contradictory bumbling bureacracy. The price of unchallenged self appointed geniushood.
    The incoherent half baked stumbling juggernaut has reached new triumphs with its edict on enforced Sandboxing on developers when it is unable to follow even its own instructions.
    Peter

  • I'm creating a book format in Pages. I want the page count to be 1 on the first page of chapter one after the title page, table of contents, etc.. How do I do that?

    I'm creating a book format in Pages. I want the page count to be 1 on the first page of chapter one after the title page, table of contents, etc.. How do I do that?

    That is not the issue.
    Pages/OSX does not save files with crop marks and bleeds.
    It also by default saves transparency, which is involved in a lot of Pages' better features, at a rubbishy 72 dpi resolution.
    It also makes it extremely difficult to maintain mono-color like black only text, has no spot color and makes color management opaque.
    It really is only meant for amateur publishing and printing to your desktop printer.
    A commercial printer who is willing to use and print from Pages may have better results but at the cost of considerable micro-management which defeats the point of this "cheap" solution.
    Peter

  • After i update my ipad 2(wifi 3g/64g) to ios 5.0.1..everything works ok except 3g  can not connect to internet.. in the top of my ipad screen it show 3g sign..before update the 3g was working ok

    after i update my ipad 2(wifi+3g/64g) to ios 5.0.1..everything works ok except 3g  can not connect to internet.. in the top of my ipad screen it show 3g sign..before update the 3g was working ok

    i am at SAUDI ARABIA and the Service Provider is (STC) i found that the APN setting has to change from (jawalnet.com.sa ) to (afaqwireless.com).. NOW 3G OK

  • HT201442 my phone is not getting started,its displaying itunes sign and USB sign on the phone's screen. I have also restored and updated the phone however not getting started

    my phone is not getting started,its displaying itunes sign and USB sign on the phone's screen. I have also restored and updated the phone however not getting started

    It helped earlier but it has come back again. I don't know what to do. I tried what you said earlier but this time even this is not working either. And quite intrestingly my phone won't turn off. I turn it off, it goes off and then restarts on its own and then keep giving the same message again and again.
    Could it be a charging cable, is there any chance that the cable which was working fine one day could turn to be "incompatible" with iphone the other day????????
    Please help

  • How to stored data after clicking check box save in data base table

    TABLES:mseg,mard,mkpf.
    TYPE-POOLS:slis.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:smblnr FOR mseg-mblnr MODIF ID m1,
                   smatnr FOR mseg-matnr MODIF ID m2,
                   swerks FOR mard-werks MODIF ID m3,
                   slgort FOR mard-lgort MODIF ID m4,
                   slgpbe FOR mard-lgpbe MODIF ID m5,
                   scharg FOR mseg-charg MODIF ID m6,
                   sbwart FOR mseg-bwart MODIF ID m7,
                   skostl FOR mseg-kostl MODIF ID m8,
                   saufnr FOR mseg-aufnr MODIF ID m9,
                   srsnum FOR mseg-rsnum MODIF ID m10.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS:pre RADIOBUTTON GROUP radi USER-COMMAND ucomm DEFAULT 'X',
               pse RADIOBUTTON GROUP radi,
               bps RADIOBUTTON GROUP radi.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    PARAMETER:layout TYPE i.
    SELECTION-SCREEN END OF BLOCK b3.
    DATA:BEGIN OF itab OCCURS 0,
         mblnr LIKE mseg-mblnr,
         matnr LIKE mseg-matnr,
         werks LIKE mard-werks,
         lgort LIKE mard-lgort,
         lgpbe LIKE mard-lgpbe,
         charg LIKE mseg-charg,
         bwart LIKE mseg-bwart,
         budat LIKE mkpf-budat,
         menge LIKE mseg-menge,
         meins LIKE mseg-meins,
         kostl LIKE mseg-kostl,
         aufnr LIKE mseg-aufnr,
         rsnum LIKE mseg-rsnum,
         checkbox TYPE c,
         END OF itab.
    DATA:  gt_fieldcat TYPE slis_t_fieldcat_alv,
           gw_fieldcat TYPE slis_fieldcat_alv,
           gt_layout TYPE slis_layout_alv.
    START-OF-SELECTION.
    SELECT msegmblnr msegmatnr mardwerks mardlgort mardlgpbe msegcharg msegbwart mkpfbudat
        msegmenge  msegmeins msegkostl msegaufnr mseg~rsnum
    INTO TABLE itab FROM
              mseg JOIN mard ON mardmatnr EQ msegmatnr
                   JOIN mkpf ON msegmblnr EQ mkpfmblnr
                   WHERE mseg~matnr IN smatnr.
      IF sy-subrc EQ 0.
        SORT itab BY matnr.
        PERFORM display_alv_output.
      ENDIF.
    *&      Form  display_alv_output
          text
    -->  p1        text
    <--  p2        text
    FORM display_alv_output.
      REFRESH gt_fieldcat.
      gw_fieldcat-fieldname = 'MBLNR'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 1.
      gw_fieldcat-seltext_m = 'material document'.
      gw_fieldcat-key = 'x'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname = 'MATNR'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 2.
      gw_fieldcat-seltext_m = 'material'.
      gw_fieldcat-key = ' '.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname = 'WERKS'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 3.
      gw_fieldcat-seltext_m = 'plant'.
      gw_fieldcat-key = ' '.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname = 'LGORT'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 4.
      gw_fieldcat-seltext_m = 'storage location'.
      gw_fieldcat-key = ' '.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname = 'LGPBE'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 5.
      gw_fieldcat-seltext_m = 'storage bin'.
      gw_fieldcat-key = ' '.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname = 'CHARG'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 6.
      gw_fieldcat-seltext_m = 'Batch number'.
      gw_fieldcat-key = ' '.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname = 'BWART'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 7.
      gw_fieldcat-seltext_m = 'Movement Type (Inventory Management)'.
      gw_fieldcat-key = ' '.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname = 'BUDAT'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 8.
      gw_fieldcat-seltext_m = 'Posting Date in the Document'.
      gw_fieldcat-key = ' '.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname = 'MENGE'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 9.
      gw_fieldcat-seltext_m = 'QUANTITY'.
      gw_fieldcat-key = ' '.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname = 'MEINS'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 10.
      gw_fieldcat-seltext_m = 'Basic unit of measure'.
      gw_fieldcat-key = ' '.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname = 'KOSTL'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 11.
      gw_fieldcat-seltext_m = 'Cost center'.
      gw_fieldcat-key = ' '.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname = 'AUFNR'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 12.
      gw_fieldcat-seltext_m = 'Order Number'.
      gw_fieldcat-key = ' '.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname = 'RSNUM'.
      gw_fieldcat-tabname = 'itab'.
      gw_fieldcat-col_pos = 13.
      gw_fieldcat-seltext_m = 'Number of Reservation / Depe'.
      gw_fieldcat-key = ' '.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-col_pos = 14.
      gw_fieldcat-fieldname = 'CHECKBOX'.
      gw_fieldcat-seltext_m = 'Compltd'.
      gw_fieldcat-checkbox = 'X'.
      gw_fieldcat-edit = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM                = 'ZREPORT'
        IS_LAYOUT                         = gt_layout
        IT_FIELDCAT                       = gt_fieldcat
       TABLES
         t_outtab                          = itab
      EXCEPTIONS
        PROGRAM_ERROR                     = 1
        OTHERS                            = 2.
    ENDFORM.                    " display_alv_output
    this is mycode .
    send me replay.

    Hi Lakshmi,
           Can u explain briefly what is ur requirement. U mean to say that after clicking the checkbox in data base table or Screen?
    Regards,
      Jayaram...

  • Firefox Version 27 Reporting Services Action Menu Error. An error has occurred with the data fetch.

    Hello, since I've updated to Firefox 27.0.1 on Windows 7, I'm encountering a problem with Reporting Services on a Sharepoint site. It is a Sharepoint 2010 site with SQL Server Reporting Services 2012 Sharepoint Integrated mode. I was previously on Firefox version 26 and didn't encounter this problem.
    When a report is open and you use the Actions link on the Reporting Services toolbar, I receive the following error messages.
    An error has occurred with the data fetch. Please refresh the page and retry.
    I've tried updating to Firefox 28 beta but the same error occurs. I see another user is having the same problem here. http://sharepoint-community.net/forum/topics/reporting-service-and-firefox-27
    Any help would be appreciated. Thanks!
    Ryan

    Rachel, I did perform the Sharepoint file alteration discussed in the other article and it did stop Firefox from producing the error. I've done some testing on some other browsers and have yet to encounter any problems with the fix however I'm hesitant to perform that workaround in a production environment.
    Thanks for looking.
    Ryan

  • Hello , Recently my company purchased a Fujifilm X30 . We were surprised that Adobe has not updated the plug in for this camera. Since we are your customers, we would like to know, when they will perform this update ? For us it is very important to work w

    Hello , Recently my company purchased a Fujifilm X30 . We were surprised that Adobe has not updated the plug in for this camera. Since we are your customers, we would like to know, when they will perform this update ? For us it is very important to work with all our tools work quickly and efficiently, I guess I understand.
    We await your response .
    Thank you very much .

    This is a user to user forum with "some" Adobe staff participation, make requests at this link
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • How do i save the data in table ??? URGENT

    how do i save the data in table ???  URGENT
    Hope can attach some example VI for reference =]
    Attachments:
    data in table.JPG ‏271 KB
    block diagram.JPG ‏459 KB

    You didn't mention which version of LabVIEW you are using. I adapted your method in this example. Not sure this is an efficient method. I just pass the 2d array through in the false case.
    Using LabVIEW 2010SP1 and TestStand 4.5
    Attachments:
    WriteTable.PNG ‏35 KB

  • Pop-up allows first pop-up page and the second pop-up page (linked from the first one) but does not open the data in the second pop-up page.

    I want to print my online bank statement.
    Please see screen shots below.
    The webpage has a link that says:
    VIEW STATEMENT
    Click the link and a pop-up opens that warns you about downloading using a public-access computer or sharing a computer with others.
    If you want to continue click OKAY.
    When you click this link another pop-up appears (a pop-up within a pop-up)
    but it is blank.
    When the process used to work, the statement would appear.
    MacBook running OS X 10.6.8
    When I tried it with Safari everything worked as it should so the problem is not with the bank.
    I went back to Firefox (my preferred browser) and did the troubleshooting RESET.
    Nothing changed.
    In the Tools menu - Page Info - Permission - Open Pop-up Windows is set @ Default - Allow
    In Preference - Content - Block pop-up windows is unchecked
    or when it is checked the website is listed in the Allowed column.
    It is the correct url because when I clicked the yellow options bar to Allow it, FireFox automatically chose it.
    I also tried adding the extended url as it appears on the web page which has the first pop-up link.
    Firefox would not accept it.

    Screenshots:
    # Part of bank's webpage with the link to the first pop-up
    # The first pop-up page with link to the statement pop-up page.
    # The second pop-up page - blank where there should be the statement. The page appears but the data doesn't.

Maybe you are looking for