Screen control in VA01

Hi Gurus,
I want to include screen control while creating a Sales Order through recording.
Basically my requirement is that I have to create a Sales Order through an Idoc which I can achieve by BDC recording, but I want to include a check stating that on the Sales Order, only 10 Line items can be fit on a page, and then I would like to include the 'page down' functionality.
So if I have more than 10 line items, they should display the first ten line items on the first page, and then so on.
Kindly help.
Thanks.

Hi,
I suggest you please use BAPI, since you want to use for IDoc.
If you would like to stick to BDC please see the below code.  OK code = POAN at end of each line item, Which enables move first line up and second line to fist line.  So that you can enter as many line items you want.
  perform bdcdata using: 'X' 'SAPMV45A' '4001',
                             ' ' 'BDC_OKCODE' '=POAN'.
    perform bdcdata using: 'X' 'SAPMV45A' '0101',
                           ' ' 'VBAK-AUART' p_auart,
                           ' ' 'VBAK-VKORG' p_vkorg,
                           ' ' 'VBAK-VTWEG' p_vtweg,
                           ' ' 'VBAK-SPART' p_spart,
                           ' ' 'VBAK-VKBUR' p_vkbur,
                           ' ' 'VBAK-VKGRP' p_vkgrp,
                           ' ' 'BDC_OKCODE' '/00'.
*_ Screen 2
    perform bdcdata using: 'X' 'SAPMV45A' '4001',
                           ' ' 'KUAGV-KUNNR' p_kunnr,
                           ' ' 'VBKD-BSARK'  p_bsark.
   PERFORM bdcdata USING: ' ' 'Z_CSR' 'E010145309'.
    if not p_kunag is initial.
      perform bdcdata using: 'X' 'SAPMV45A' '4001',
                             ' ' 'KUWEV-KUNNR' p_kunag.
    endif.
    ws-posnr = 10.
    loop at iupload into upload_wa.
      ws-index = sy-tabix.
      perform bdcdata using: 'X' 'SAPMV45A' '4001'.
      if upload_wa-reqdt <> space.
       WRITE upload_wa-reqdt TO ws-date.
        ws-date = upload_wa-reqdt.
      else.
        write sy-datum to ws-date.
      endif.
      perform bdcdata using: ' ' 'RV45A-KETDAT' ws-date.
      perform bdcdata using:
                      ' ' 'ZSDSTRUCT_ZGEN_CATID(02)' upload_wa-catlg,
                      ' ' 'ZSDSTRUCT_ZGEN_GRDID(02)' upload_wa-grade,
                      ' ' 'RV45A-KWMENG(02)' upload_wa-zmeng,
                      ' ' 'BDC_OKCODE' '/00'.
      if ws-index =  '01'.
        perform bdcdata using: 'X' 'SAPMV45A' '4001',
                              ' ' 'RV45A-VBAP_SELKZ(01)' 'X',
                               ' ' 'BDC_OKCODE' '=PBES'.
      else.
        perform bdcdata using: 'X' 'SAPMV45A' '4001',
                              ' ' 'RV45A-VBAP_SELKZ(02)' 'X',
                               ' ' 'BDC_OKCODE' '=PBES'.
      endif.
      perform bdcdata using: 'X' 'SAPMV45A' '4003',
                             ' ' 'VBAP-POSEX' upload_wa-posnr.
      if not upload_wa-kdmat is initial.
        perform bdcdata using: ' ' 'VBAP-KDMAT' upload_wa-kdmat.
      endif.
      perform bdcdata using: ' ' 'BDC_OKCODE' '/EBACK'.
      perform bdcdata using: 'X' 'SAPMV45A' '4001',
                             ' ' 'BDC_OKCODE' '=POAN'.
    endloop.
    perform bdcdata using: 'X' 'SAPMV45A' '4001',
                           ' ' 'BDC_OKCODE' '=POPO'.
    perform bdcdata using: 'X' 'SAPMV45A' '0251',
                           ' ' 'RV45A-POSNR' '10',
                           ' ' 'BDC_OKCODE' '=POSI'.
    if p_check = 'X'.
      perform bdcdata using: 'X' 'SAPMV45A' '4001',
                             ' ' 'BDC_OKCODE' '/EBAC1'.
    endif.
Best Regards,

Similar Messages

  • Add a new column in item table control of va01 screen

    Hi All,
    i have requirement to add new column in item table control of va01 screen 4900 for the custome field of vbap table
    the required coloum is add with the help of access key
    however whem i am trying to save data, that custom field is not populate
    please let me know if any one had work on this

    I think i solved the problem . The single way to to that is to modify the SAP standard Screen.

  • All fields are not displaying in the infotype screen control

    Hello Everybody,
    All the fields from infotype 2001 and 2002 are not getting displayed in the screen control for these infotypes and
    when I checked the screens for these infotypes, the mod. groups/functions has not been set for field 'Group3' for those
    infotype fields.
    Is there a way I could set this field ' Group3' for these infotype fields also ? Can it be done thru screen exit and if yes could
    anyone tell me what's the screen exit for these infotypes ?
    Thanks
    Alok

    solved it myself.

  • Is there screen control at the Subtype level for ESS Address in ECC 6.0?

    Hello Developers,
    The Dynpro view for adding/maintaining ESS Address information requires certain fields to be entered regardless of the type of Subtype (ex. Permanent Address or Work Address).
    It's ok for our Permanent Address subtype to require certain fields such as City, State, and Postal Code, but we don't want these same fields to be required for our Work Address subtype.
    Is there a way to control this for individual subtypes?
    Thank you,
    Terry

    Thank you Shikhil,
    This was already tried and didn't work. 
    Running a debug session, I can determine that the message is coming from the back-end SAP system.  I can also see that these fields are flagged as Required on the back-end but due to the complexity of the code I haven't been able to determine what table this is read from. 
    The IMG view for "Infotypes - country-specific settings" apparently doesn't control this either but I'm hopeful that there is a screen control that will allow me to remove the "Required" setting.
    Terry

  • Screen exits in va01

    as this is a urgent req. pls can any one suggest what r the diff. screen exits in va01 tcode and how ton find them.
    thanx and regards

    hi
    you can check the same with this report program. execute it, enter your transaction for which you require enhancement then press f8. It would display all the available exits...
    *& Report  ZFINDUSEREXIT
    REPORT  ZFINDUSEREXIT.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir where pname = tstc-pgmna.
    select single * from enlfdir where funcname =
    tfdir-funcname.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct where sprsl eq sy-langu and
    tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    please reward if useful...
    regards
    dinesh

  • Adding Z-Fields to Standard Screens of Transaction VA01 / VA02 / VA03

    Hi All,
    The system is being upgraded from 4.7 to ECC 6.0
    In 4.7 server, the client has added 2 Z-fields to VBAK table. Moreover, these Z-fields are added to Standard SAP Screens of Transactions VA01 / VA02 / VA03.
    One of the Z-field is for the Description which appears on the very first screen of transaction (Screen 4440) replaces the Standard SAP Screen Field VBAK-KTEXT.
    The other Z-Field appears on Header-->Additional Data B (Screen 8309).
    Please note:- The screen numbers that are mentioned above are the screen numbers of ECC 6.0
    I tried to change the edit the Screen by taking the Access Key from the market place, but only got Screen Overlapping Errors.
    What should I do to incorporate these Z-fields?
    I have heard of Screen-exits but never worked on the same. Would appreciate if someone guides me as to what needs to be done.
    Thanks for your valuable time and suggestions.
    Regards,
    Rajesh

    Hi Rajesh,
    I am working ECC 6.0
    We had the same requirement but for Additional Data B in header and item
    For this
    (1) Got the access key
    (2) applied access keys
    (3) In the additonal Data B screens/Program SAPMV45A imported Z fields to the screen in Graphical painter,saved and activated after writing necessary PBO/PAI modules and the codes in 8309 and 8310 screens
    Please can you tell more on the "Screen Overlapping Errors"
    Maybe we can can work out the error.....
    Regards
    Byju

  • Adding one additional row to table control of VA01

    HI all,
    I am working on free goods N:N senario which is not supported by sap standard.
    so we have decided to club all the material on the basis of material group and PSTYV = 'tann' in the table control of va01 and at the end of tann we have to display the free goods .The user exit is USEREXIT_MOVE_FIELD_TO_KOMP.
    Please help in in adding the additional row in table control of va01 (TCTRL_U_ERF_AUFTRAG).
    Even i have gone through all the thread in sdn and tried all the solution but none of the solution is working .
    plz quote solutions....
    thanks..
    Kundal.

    The user exit is USEREXIT_MOVE_FIELD_TO_KOMP
    Are you adding condition records, or adding free materials to VBAP?  If free materials to VBAP, you're in the wrong exit, I think....look for routines that allow you to add to internal table XVBAP in includes named like MV45AFZ*, and remember to set you UPDKZ to 'I'-insert if you're adding new rows.
    Not sure what you mean by not supported by SAP standard;  SAP does support free goods, via config!
    Edited by: BreakPoint on Mar 14, 2011 4:11 PM

  • Display full-screen controls NOT visible

    I exported my keynote presentation as a QuickTime full-screen movie. In Preferences, I have the controls checked to display full-screen controls and to never hide them. They do not show up anywhere. I also set the presentation as a slideshow to control the presentation using the arrow keys and they do not show up. In the Guide it states that as long as "Display full-screen controls" is selected in QT Player Preferences, you can make hidden controls appear by moving the pointer. They don't.
    Any help out there would be appreciated...I have a deadline to meet!

    Huh, I didn't realize you had to format a flash drive for a Mac, I'll check that out.
    O.K. I may have something that I said I was going to try...I unlocked the file, changed *_My* permission_, the Staff and Everyone else to "Read Only" privileges, then locked again. I then zipped it and sent it to my son this morning. He said he could open it, change it but it would not allow him to save it! I'm going to test it further somehow but I don't know anybody else that has a Mac w/Keynote '08. Do you have Keynote 08? Can I send it to you to test (it would be alot easier) or to someone in the Keynote discussion area?
    This message should now have a subject line..."Keynote presentation to CD to be accessed, but not changed?" When this all began, I searched discussions in Keynote on this and found nothing with a concrete answer, only that you cannot save a keynote presentation as password protected. I posted twice and no one answered. I think this part of our discussion will help Keynote people.
    *Back to your area of expertise and my original question!*... Can you still look to see what key commands force the HUD for me for my QuickTime Movie as Slideshow? I know they could not change that, but the arrow controls would have to be displayed. I don't know what HUD means but I'm going to search too... I found this link: http://developer.apple.com/documentation/QuickTime/Conceptual/QT7-2Update_Guide/NewFeaturesChangesEnhancements/chapter_2_section9.html
    Could you take a look and see if this is what I need? I do have Mac OS X v10.5.4 and QT v7.5 and my Preferences window does not have a recording tab but my Full screen window looks that same. When I view my A/V controls it also doesn't view as in figure 1-8. I'm confused again! QT 7.5 is the latest version, isn't it?

  • Using Unix to Require ARD Screen Control (but have everything else!)

    A contribution to the community from another post at:
    http://discussions.apple.com/thread.jspa?threadID=986010
    The problem: how can you use the command line to remotely grant the ARD server user full rights to do everything EXCEPT for controlling the end users' screens? On our network, we want end users to have the security of being able to grant permission for screen control. This makes ARD act a bit more like Timbuktu/NetOctopus.
    Here is the solution and the SPACES IN CODE ARE AS LISTED!
    to turn on the require permission function for all incoming ARD users:
    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/k ickstart -configure -clientopts -setreqperm -reqperm -yes
    to turn on all ARD functions EXCEPT for control screen for the ARD user named "BOB":
    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/k ickstart -configure -users BOB -privs -DeleteFiles -TextMessages -ShowObserve -OpenQuitApps -GenerateReports -RestartShutdown -SendFiles -ChangeSettings -ControlObserve -ObserveOnly
    macbook pro intel 2 dual core   Mac OS X (10.4.9)   i like cheese of all varieties

    solved via the code seen below

  • Is it possible to make a screen control appear only for a specific patch?

    I use MainStage almost exclusively for guitar. Frequently I will use different guitar amps in different patches (usually the AmpliTube plugin, but occasionally Amp Designer). I'd like to use different screen controls for specific patches. For example, I might be using a Marshall JCM900 amp model for one patch, and a Vox AC-30 Top Boost amp model for a different patch. The Marshall has a gain control, and a master volume, but the AC-30 only has a master volume. Conversely, the AC-30 has a top cut control that doesn't exist on the Marshall.
    Is there a way to hide the screen control for the Marshall gain on a patch that uses an AC-30 model?
    It seems like there would be many, may scenarios where controls that are relevant to one patch would be undesirable with a different patch, but it seems like screen controls are global for an entire concert. Sure, a given control can be mapped to different parameters in different patches (but you can't give a screen control different names in different patches), but there's limited space on a layout, and it seems wasteful to have to provide a given screen control that might only be relevant for one patch out of a dozen in a given set or concert visible in every single patch.

    Hi
    Standard Screen Controls will always appear in Edit Mod and in Perform Mode for a given Concert. Controls that are not assigned to any parameter will be grayed out in Performance Mode. To do this, select the control in Edit, and choose "None" in the Screen Control Inspector.
    Smart Controls adapt for a particular Patch. Different layouts can be assigned per patch.
    ericmurphysf wrote:
    you can't give a screen control different names in different patches)
    That depends on the method you used to name them in the first place:
    Controls can have different formats of labelling ( done in Layout mode), where they can show the particular parameter name etc etc. These can change from patch to patch.
    You can assign a "Hardware Label" that is global.
    Separate Text labels can have global or Set/Patch labels, and they can be labelled for a single Patch by overriding any higher level labelling
    hth
    CCT

  • How To Make Screen Controls Disappear In Full Screen Mode?

    I downloaded Quicktime 7.2 and even though I have selected Edit/Preferences/Player Preferences/Full Screen and under Controls, Display Full Controls, Hide after 2 seconds -
    When I am watching a video in full screen mode, for example the latest Keynote Address by Steve Jobs, the control panel which accesses Stop/Pause/Fast Forward etc., does not disappear regardless of how long I wait. Additionally the mouse pointer does not disappear either.
    I have to move the mouse pointer off the screen and/or move the Control Panel all the way down out of the way for it not to be visible.
    If I Deselect the "Display Full Screen Controls", then of course the controls do not appear, however the mouse still stays on the screen in full screen mode.
    How do I correct this. The Windows Media Player functions perfectly when I watch movies in full screen - controls disappear and so does the mouse. If I move the mouse, they reappear then disappear again after a few seconds.
    Any advice in correcting this would be appreciated.
    Thanks!

    Yes, this is annoying, however I'm glad you 2 guys finally posted. This is what I've found out so far. If you delete the .plst file (do a search for for it), it appear that it will be recreated again by Quicktime. That cured the problem with the Control Panel disappearing after the preset time set in preferences. However, the pointer will not disappear. I tried to uninstal and reinstall and also view different movies, but it will not disappear.
    So give that a shot and see if that resolves 50% of the problem. In Media Player, the control panel and pointer disappear in Full Screen mode. In Quicktime there seems to be a quirk. I've searched on this forum, but have not been able to find any other threads that indicatd a resolution to this issue. So let's hope that someone does or that Apple figures out the problem and issues an updated version for this.
    There was a new update that I received over the past few days and I was hoping this would resolve this issue, but it didn't.
    I've also read here that going to Windows Safe Mode and activating QT, watching a movie, then going back to normal mode fixes some issues. I've tried that too, but the pointer just will not disappear.
    I've tried disabling the Control Panel and then it won't appear at all, but the mouse pointer always does and the only way is to move it physically off the screen. When you move it the Control Panel will appear for a few seconds, then disappear again.
    Try these things out and comment on what you discover.

  • There is no entry for this function in Table 168F (system table). An error involving the screen control has probably occurred.

    Hi All,
    i created one  enchancement to ME21n screen,
    i added one screen at header
    When i running the the transaction ME41 it shows the following error.
    This function not defined
    Message no. 06006
    Diagnosis
    There is no entry for this function in Table 168F (system table). An error involving the screen control has probably occurred.
    Procedure
    Contact your system administrator.
    Am i need to add this functionalty to any  sap table.
    plz guide me on this.

    Hi Krishna
    Have you added any buttons in the custom screen if yes then you will have to maintain configuration data for Function code processing.
    Please search on SCN for the same
    Nabheet

  • Subscreen in SCREEN 8459 ofr VA01

    Hi Gurus,
    I want to put a subscreen in screen 8459 of VA01 transaction, for displaying / editing item detail.
    I need to implement a button with ICON_DATA_AREA_EXPAND / ICON_DATA_AREA_COLLAPSE. and make the screen visible and invisible when user clicks on the button.
    Can u ples let me know how I can do it .
    Regards,
    Avi.

    Check for Menu exit & Function exit which are related with this screen, So that you can design the PF status and you can write the corresponding logic in the function exit.

  • Why there is no screen control feature?

    Gurus,
    I am wondering why we don't have a feature P0000 for screen control of ifo type 0000
    We have control feature such as P0001 for other info type 0001 etc.
    Just curious!!!
    Any thoughts?
    Thanks,

    Hi Thaman,
    Screen control features are for those infotypes where you are recording certain things which can be difft. for difft. country versions. Like for eg. in USA you have SSN on IT0002 screen while in case of UK you will have National Insurance Number and so on for difft other countries.
    So here comes these features where as per based on molga and the return value from the feature based on var key they determine which screen to show.
    Now if you will look IT 0000, its very standard and have no such field which you will think that this can be difft. for various countries.
    So as there was no need to have difft. screen no need to have control feature P0000.
    Hope this will resolve your query.
    Regards
    guds

  • How can one change the channel of a screen control within Mainstage?

    The issue that I'm having is that some 3rd party apps (Dimension Pro in particular) seem to receive Sustain (64) messages on only Midi Channel 1
    I'm using a multi zone controller, with sounds set in MainStage to respond to different channels. I've got it all working well except . . Dimension Pro won't "see" a controller message if it's sent from any channel other than channel 1.
    I was even having the same problem with certain sounds in Kontakt.
    So the question is . . how can one shift the channel of these messages over to channel 1?
    Better question, how can I get Dimension Pro to respond to a controller on a channel other than 1, but I suspect this is not the forum for such questions!
    Thanks in advance,
    Mark
    MacOS 10.7.3
    MainStage 2.1.3
    Axiom 61 (2nd gen) keyboard controller

    You may be able to achieve the desired results by a different method. I have an Axiom, but I don't assign zones in it. I just send one zone to Mainstage and handle it all there. You can layer and or split a practically unlimited number of instruments and assign screen controls easily. You probably want to set up all screen controls at the concert level in layout mode. You can later override concert mapping in individaul patches if you want. For instance, you could use an expression pedal for volume(7) on one patch and for modulation(1) on another patch. You can send that control to one instument channel strip or you can choose to send to all. To do this, select a screen control in edit mode. In the screen control inspector, check the overide concert mapping box. You will then see two additional tabs-mappings and unmapped. Select the mappings tab. In the mapping list, double-click "Unmapped". You can the map the screen control to any single  instrument channel strip in this list or send to all. Select one and then choose a mapping destination. If you want to map expression to one instrument and not others there's another way. Select an instrument channel strip, then selct MIDI input in the software channel strip inspector. Check the filter expression box. This instument will now not respond to expression, but the other intruments in this patch will. You can filter some other events on this page. The layer editor tab allows you full control ol splits and layering options of all your instruments in this patch. Hope this helps.

Maybe you are looking for

  • IOS 5 put my phone in recovery mode and won't turn back on or let me restore it, does anyone know how to fix this?

    today i tried downloading ios 5 for my iphone 4. i updated all the software on my macbook pro. then when i was downloading ios 5 for my phone. it completely shut off. at first it was just showing me the screen to plug it into itunes. when i did, it w

  • Is there a thunderbolt to USDB cable available

    Is there a thunderbolt to USB2/3 available?

  • Coverflow does not appear

    I have a classic 80Gb iPod and want to use coverflow. However, it doesn't even appear in the "music" menu, or anywhere else. Any suggestions on what I need to do to get it activated? I have the most up to date software for the iPod, updated yesterday

  • Rough cuts from Prelude lack audio source

    Hey everyone, this is my first project with a Prelude to Premiere Pro workflow and so far everything worked just fine. Although after creating a couple of rough cuts in Prelude and sending them to Premiere Pro I am experiencing a problem with the imp

  • Query of the sequence

    Is it possible to change sequence value on monthly basis. ex. I want to start sequence from 1to 1000 and then reset from 1 to 1000 after month. for every month i want to reset sequence is it possible. Thanks in advance