Open Quantity in item selection screen

I am Stuck in btwn a process. In my Orgn we have ZMO and ZCO Doc types. ZMO is for manf order and ZCO is for Call off order from created with reference to ZMO.1 ZMO= N ZCO
ZMO - 10 Quantities - Ill have to use the materials , I should create ZCO with ref to the ZMO.
When I create 1st ZCO for 6 qty and reject all the 6 in the ZCO , then i create 2nd ZCO and i click on the copy with reference and item selection , it is still showing 4 as qty where i can change it to 10 , but i want that to reflect as 10 automatically. Please help
ZMO- 10
1st ZCO- 6 VBAP-ABGRU= Yes for all 6
2nd ZCO- Item selection in copy with reference screen from ZMO is reflecting as 4 where it should reflect as 10.
Is there any data transfer routine which should be amended ?
How is the OPEN Quantity calculated in Standard SAP order process

Hi, Prashanth
As per my understanding there is no update of quantity in quotation if you reject sales item in sales order.
only one way is to delete created sales order then quantity of quotation is reset,
kapil

Similar Messages

  • MB5B shows different opening quantity when we select diffferent Stock Type

    Dear All,
    I am trying to run report MB5B - Stock on posting date with 2 different Stock Types:
    - Storage Loc/Batch Stock
    - Valuated Stock
    But the report shows different opening quantity,total receipt, total issue, but closing quantity is ok.
    Could you pls tell me the reason?
    Thanks
    Cao Huy

    Hi,
    MB5B transaction is used to display the stock on posting date
    It is not possible to view at the same time both Valuated stock and special stock. This is radio button input control,so any one of the stock type only possible to display the material document.
    This report display the material and plant vise material document number and total stock and total issue etc for the example,
    Plant            1256  test plant
    Material         TH1
    Description    steel rod
    Stock on 01/01/2010                   0.000  PC
      Total Receipts                      29.500  PC
      Total Issues                         3.000- PC
    Stock on 12/31/9999                   26.500  PC
    SLoc MvT S Mat. Doc.  Item Pstng Date          Quantity BUn
    TEST 101   5000003029    1 12/23/2009            1.000  PC
    TEST 101   5000003039    1 12/31/2009            1.000  PC
    Regards,
    thiru

  • Apple Script to make Pages open in a user-selected screen position

    This is a follow-up to a response/script made previously by Yvan KOENIG that enables Pages to open a Pages template in a user-selected "left" position.
    http://discussions.apple.com/message.jspa?messageID=9100331#9100331
    This works great for me, but I'd like to take this one step further, if possible. I'm naïve when it comes to Apple Scripts
    Currently, if I use the script, it opens up in 100% 'fit-width' view as follows:
    http://trials.sent.com/pages/100.png
    What I'd like it to do is to open up in 125% 'fit-width' view as follows:
    http://trials.sent.com/pages/125.png
    I'd like to therefore ask if it's possible to somehow enable this in the script above.

    I looked at the English version.
    Let me say you that you are a funny guy.
    Set width and set "Fit Width" are incompatible commands.
    On my 1920 x 1200 screen, if I set scale to 125%, Fit Width is disabled.
    If I check "Fit width", the size remains unchanged but is no longer selected.
    On a smaller display, "Fit Width" will set the page in the "100%" mode.
    My guess is that it's what you get.
    As I am a good guy,
    I add some instructions in the code.
    Now you may activate several settings to fit your needs (when they are technically compatibles).
    --(SCRIPT openToLeft.app]
    Enregistrer le script en tant que Script, Application ou Progiciel : openToLeft.xxx
    déplacer l'application créée dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Pages:
    Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
    menu Scripts > Pages > openToLeft
    Le script créera un nouveau document à partir du modèle choisi et le poussera à gauche de l'écran.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as a Script, an Application or an Application Bundle: openToLeft.xxx
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Maybe you would have to create the folder Pages and even the folder Applications by yourself.
    menu Scripts > Pages > openToLeft
    The script will create a new document from the selected template and will push it to the screen's left edge.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    +++++++
    Yvan KOENIG (Vallauris FRANCE)
    4 mars 2009
    property theApp : "Pages"
    property hardCoded : false
    true = the template is predefined
    false = you select the template when you run the script *)
    property zoomIt : false
    false = leaves the doc size as created
    true = issue a cmd + > command to enlarge it *)
    --=====
    on run
    my activateGUIscripting()
    tell application "Pages"
    set Templates_loc to localized string "Templates" (* nom local du dossier "Modèles" *)
    set MyTemplates_loc to localized string "My Templates" (* nom local du dossier "Mes Modèles" *)
    end tell -- theApp
    set templatesFolder to ((path to application support from user domain as text) & "iWork:Pages:" & Templates_loc & ":" & MyTemplates_loc & ":")
    if hardCoded then (*
    Here the template to use is hard coded in the script *)
    if templatesFolder does not end with ":" then set templatesFolder to templatesFolder & ":"
    set myTemplate to (templatesFolder & "un modèle09.template:") as alias
    else (*
    Here we are urged to choose the template in a dialog *)
    set templatesFolder to templatesFolder as alias
    Don't ask me why, Pages uses two Universal Type Identifiers for its templates
    the first one is used if only Pages '08 is installed under 10.4 or by both '08 and '09 under 10.5.6
    the second one is used under 10.4.11 if Pages '09 is installed *)
    set allowed to {"com.apple.iWork.Pages.template", "com.apple.iWork.Pages.sfftemplate"}
    if 5 > (system attribute "sys2") then
    set isOs4 to true
    set permitted to allowed
    else
    set isOs4 to false
    set permitted to {}
    end if
    if my parleAnglais() then
    set myTemplate to choose file "Choose a Pages template …" of type permitted default location templatesFolder
    else
    set myTemplate to choose file "Choisissez un modèle Pages …" of type permitted default location templatesFolder
    end if
    if not isOs4 then
    due to a system's bug, choose file is unable to filter the iwork's files UTIs
    So we must check by ourself *)
    set maybe to myTemplate as text
    tell application "System Events" to set typid to type identifier of disk item maybe
    if typid is not in allowed then
    if my parleAnglais() then
    error "The file “" & maybe & "” is not a Pages template !"
    else
    error "Le fichier « " & maybe & " » n’est pas un modèle Pages !"
    end if
    end if
    end if
    (* Here, the pathname of the template is of class alias *)
    end if -- hardCoded
    try
    tell application "Pages"
    activate
    set n to count of documents
    open myTemplate (* create a new doc from the template *)
    repeat
    if (count of documents) > n then
    exit repeat
    else
    delay 0.1
    end if
    end repeat
    tell window 1 (*
    As we are telling to application "Pages" we may use tell window 1 even if we have an Inspector or a Find/Replace dialog open.
    It would be wrong if we where telling to process "Pages" *)
    set {x1, y1, x2, y2} to get bounds
    set bounds to {0, 0, x2 - x1, y2 - y1} (* move the window to the left edge *)
    set view scale to 125.0
    --set fit page to true (* or false *)
    set fit width to true (* or false *)
    --set full screen to true (* or false *)
    --set outline visible to true (* or false *)
    --set ruler visible to true (* or false *)
    --set styles visible to true (* or false *)
    --set thumbnails visible to true (* or false *)
    --set toolbar visible to true (* or false *)
    --set two up to true (* or false *)
    end tell -- window
    end tell -- application
    end try
    end run
    --=====
    on activateGUIscripting()
    tell application "System Events"
    if not (UI elements enabled) then set (UI elements enabled) to true (* to be sure than GUI scripting will be active *)
    end tell
    end activateGUIscripting
    --=====
    on parleAnglais() (* Check if Pages is running in French *)
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE jeudi 14 mai 2009 11:35:36)

  • Any way to make Pages always open in a user selected screen position?

    It is a continuing irritation to have to close the Styles Drawer, drag the window all the way to the left of my screen, and reopen the Styles Drawer on the right. This is the way I need to work and I'm not going to change that. What I'm hoping is that there is some way to reset the default opening position, maybe in terminal? Or an AppleScript? Neither of which I am familiar enough with to create my own. Any suggestions?
    TIA

    Here is a commented and enhanced version.
    --(SCRIPT openToLeft.app]
    Enregistrer le script en tant que Script, Application ou Progiciel : openToLeft.xxx
    déplacer l'application créée dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Pages:
    Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
    menu Scripts > Pages > openToLeft
    Le script créera un nouveau document à partir du modèle choisi et le poussera à gauche dde l'écran.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as a Script, an Application or an Application Bundle: openToLeft.xxx
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Maybe you would have to create the folder Pages and even the folder Applications by yourself.
    menu Scripts > Pages > openToLeft
    The script will create a new document from the selected template and will push it to the screen's left edge.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    +++++++
    Yvan KOENIG (Vallauris FRANCE)
    4 mars 2009
    property theApp : "Pages"
    property hardCoded : false
    true = the template is predefined
    false = you select the template when you run the script *)
    --=====
    on run
    if hardCoded then (*
    Here the template to use is hard coded in the script *)
    if my parleFrancais() then
    set templatesFolder to (path to application support as text) & "iWork:Pages09:Modèles:Mes modèles:"
    else
    set templatesFolder to (path to application support as text) & "iWork:Pages09:Templates:My Templates:"
    end if
    if templatesFolder does not end with ":" then set templatesFolder to templatesFolder & ":"
    set myTemplate to (templatesFolder & "un modèle09.template:") as alias
    else (*
    Here we are allowed to choose the template in a dialog *)
    if my parleFrancais() then
    set templatesFolder to ((path to application support from user domain as text) & "iWork:Pages09:Modèles:Mes modèles:") as alias
    else
    set templatesFolder to ((path to application support from user domain as text) & "iWork:Pages09:Templates:My Templates:") as alias
    end if
    Don't ask me why, Pages uses two Universal Type Identifiers for its templates
    the first one is used if only Pages '08 is installed under 10.4 or by both '08 and '09 under 10.5.6
    the second one is used under 10.4.11 if Pages '09 is installed *)
    if my parleFrancais() then
    set myTemplate to choose file "Choisissez un modèle Pages …" of type {"com.apple.iWork.Pages.template", "com.apple.iWork.Pages.sfftemplate"} default location templatesFolder
    else
    set myTemplate to choose file "Choose a Pages template …" of type {"com.apple.iWork.Pages.template", "com.apple.iWork.Pages.sfftemplate"} default location templatesFolder
    end if
    (* Here, the pathname of the template is of class alias *)
    end if -- hardCoded
    try
    tell application "Pages"
    open myTemplate (* create a new doc from the template *)
    tell window 1 (*
    As we are telling to application "Pages" we may use tell window 1 even if we have an Inspector or a Find/Replace dialog open.
    It would be wrong if we where telling to process "Pages" *)
    set {x1, y1, x2, y2} to get bounds
    set bounds to {0, y1, x2 - x1, y2} (* move the window to the left edge *)
    end tell -- window
    end tell -- application
    end try
    end run
    --=====
    on parleFrancais() (* Check if Pages is running in French *)
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z = "Annuler")
    end parleFrancais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE jeudi 5 mars 2009 21:41:35)

  • Suggest the way while validating fields in selection-screen

    Hi Experts,
    I am not able to open multiple selection screen for select-options because when i tried to open, it triggers AT selection-screen event in which some validations are happened.
    If any of the validation fails, it will give message.
    Please suggest me the way how i can avoid that.
    Thank you very much for your help
    Regards
    Gopal

    Hello,
             I believe you are talking about the Multiple Selections Option.
             There are two cases here. For both the Cases, use the Following Logic in the At-Selection Screen Event.
    If your Select-Options Variable is not declared as OBLIGATORY, then use this Logic.
    In the At Selection-Screen Event, check the following Condition.
          IF SY-UCOMM NE SSCRFIELDS-UCOMM.
              Message 'Enter atleast 1 Value' Type 'E'.
          ENDIF.
          This will avoid throwing an Error when you click on the Multiple Selections Option.
    If your Select-Options Variable is Declared as Mandatory, the above logic does not work. So, what you can do is,
    Do not make it Obligatory. But use the below Logic.
    IF S_MATNR is Initial.
        CHECK NOT SY-UCOMM EQ SSCRFIELDS-UCOMM.
        Message 'Enter atleast 1 Value' Type 'E'.
    ENDIF.
    Hope it was helpful.
    Thanks and Regards,
    Venkat Phani Prasad Konduri
    Edited by: Konduri Venkata Phani Prasad on Sep 12, 2008 2:48 AM

  • Field "Open Quantity" is empty on ME23N

    Hello,
    I am running the BAPI_GOODSMVT_CREAT for "Purchase Order", and when i go to ME23N, the field "Open Quantity" of item is empty.
    I'm usind this parameters:
          t_bapiitem-material             = v_ematn.                
          t_bapiitem-plant                = t_ba-werks.          
          t_bapiitem-stge_loc          = t_ba-lgort.          
          t_bapiitem-move_type      = t_ba-bwart.          
          t_bapiitem-entry_qnt        = t_ba-erfmg.         
          t_bapiitem-entry_uom      = v_meins.              
          t_bapiitem-po_number     = t_ba-po_number.     
          t_bapiitem-po_item           = t_ba-ebelp.         
          t_bapiitem-shipping          = '01'.                 
          t_bapiitem-comp_ship     = t_ba-norm_exp.       
          t_bapiitem-no_more_gr   = 'X'.
          t_bapiitem-mvt_ind          = 'B'.
          t_bapiitem-unload_pt       = t_ba-unload_pt.
          t_bapiheader-ref_doc_no = t_ba-nota_de_remessa.
          t_bapiheader-header_txt = t_ba-txt_cab.
          t_bapiheader-pstng_date = t_ba-dtlanc.
          t_bapiheader-doc_date   = t_ba-dtdoc.
    Anyone Help me ?
    With regards,
    Reginaldo Borges

    Hi,
    Try use:
    t_bapiitem-no_more_gr = ' '.
    Best regards,
    Leandro Mengue

  • At-selection-screen modification

    Hi Experts,
    I am doing the selection screen modification. The selection screen is designed such as i have two radio buttons 1. header & 2. Item anb beside header radio button i have field sales document number and beside item radio button sales item number field.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30) text-005.
    SELECTION-SCREEN: position 32.
    parameter:p_sh type c radiobutton group rg.                "Sales header
    selection-screen: comment 35(15) for field p_sh.
    selection-screen: comment 60(20) for field p_vbeln.
    parameter:p_vbeln like vbak-vbeln MODIF ID gp5.            "Sales Document
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: position 32.
    parameter:p_si type c radiobutton group rg.                "Sales Item
    selection-screen: comment 35(15) for field p_si.
    selection-screen: comment 60(20) for field p_posnr.
    parameter:p_posnr like vbap-posnr MODIF ID gp6.            "Sales Document Item
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: skip.
    This is the selection screen  code where for sales document i have assiged Modif id GP5 for Item Modif id GP6.  so when i check radio button p_sh ( header ) then sales document ( p_vbeln) shoudl be active for input .
    if i check p_si (item) then both saleds document (p_vbeln) and p_posnr both have different group names i.e GP5 & GP6 should be active. i.e screen-inpu = 1.
    I have written the following code for header but for item i am unable to make screen-input = 1 for two different groups. how to do that?
    LOOP AT SCREEN.
        IF ( P_SH NE 'X' AND SCREEN-GROUP1 EQ 'GP5' ) OR
           ( P_SI NE 'X' AND SCREEN-GROUP1 EQ 'GP6' ).
          screen-input = 0.
          MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    This code is working when i click header radio button but for when i click item radio button (p_si) only item field is active i am unable to make sales docuemnt active at same time. please help me in this regard.
    Regards,
    sunil kairam.

    Hi,
    Check this piece of code changed a bit.
    PARAMETERS : p_ct  RADIOBUTTON GROUP grp .
    SELECT-OPTIONS : s_kunnr FOR kna1-kunnr,
    PARAMETERS : p_sh RADIOBUTTON GROUP grp.
    SELECT-OPTIONS : s_vbeln  FOR vbak-vbeln,                
    PARAMETERS : p_si  RADIOBUTTON GROUP grp.
    SELECT-OPTIONS : s_vbeln1  FOR vbak-vbeln,
                                   s_posnr   for vbak-posnr.
    IF p_ct  IS NOT INITIAL .
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'S_KUNNR-LOW'.
              screen-input = 1.
              MODIFY SCREEN.
             WHEN 'S_KUNNR-HIGH'.
              screen-input = 1.
              MODIFY SCREEN.
               WHEN 'S_VBELN-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSEIF p_sh IS NOT INITIAL.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'S_KUNNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
             WHEN 'S_KUNNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
               WHEN 'S_VBELN-LOW'.
              screen-input = 1.
              MODIFY SCREEN.
            WHEN 'S_VBELN-HIGH'.
              screen-input = 1.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
    now one more  ELSEIF p_si  IS NOT INITIAL
    now make s_vbeln1 and s_posnr as input 1 and rest others as input 0.
    endif.
    Regards,
    Nagaraj

  • Urgent : selection screen

    Hi Experts ,
       i am passing sub screens dynamically into the selection screen . IN output i am getting vertical scroll bar in subscreen. my requirement is to avoid scroll bar to that perticular subscreen.
    pls send the code how to avoid that scroll bar , here i am sending the coed below ( for 1300 sub screen i am getting scroll bar)
    pls do needfull .
    Thanks,
    Nagendra.
    tables
    TABLES:
      sscrfields,
      draw,          "Document Info Records
      drat,          "Texts for Document Info Records
      cabn,          "Characteristic
      cawn,          "characteristic values
      cawnt,         "characteristic value text
      ausp,          "Characteristic values
      tdwa,          "Document Types
      lfa1,          "Vendors
      ekko,          "Purchasing Documents Header
      ekpo,          "Purchasing Document items
      t023t,         "Material Group Descriptions
      klah,          "Classes
      cabnt,         "Characteristic descriptions
      lfb1,          "Vendor master (company Code)
      t059t,         "texts for minority indicators
      tdws,          "Document status
      tdwst,         "Document Status Text
      sos04,         "SAPoffice: screen fields for function group SO04
      t006,          "Units of Measurement
      tcurx,         "Decimal Places in Currencies
    *+MD1K960995
      ekbe.
    Parameters
    Program Parameters
    SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK buyingguide
                              WITH FRAME TITLE text-104.
      Company Code
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-300  FOR FIELD s_bukrs.
    SELECT-OPTIONS: s_bukrs FOR ekko-bukrs MEMORY ID buk.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document Category
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-301  FOR FIELD s_bstyp.
    SELECT-OPTIONS: s_bstyp FOR ekko-bstyp DEFAULT 'K'.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-302  FOR FIELD s_bsart.
    SELECT-OPTIONS: s_bsart FOR ekko-bsart MEMORY ID bsa.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document Creation Date
    SELECTION-SCREEN BEGIN OF LINE.  "MD1K964692
    SELECTION-SCREEN COMMENT 1(28) text-303  FOR FIELD s_aedat. "MD1K964692
    SELECT-OPTIONS: s_aedat FOR ekko-aedat.   "MD1K964692
    SELECTION-SCREEN END   OF LINE.           "MD1K964692
      Purchasing Document Creator
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-304  FOR FIELD s_ernam.
    SELECT-OPTIONS: s_ernam FOR ekko-ernam.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document Vendor Account Number
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-305  FOR FIELD s_lifnr.
    SELECT-OPTIONS: s_lifnr FOR ekko-lifnr MEMORY ID lif.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Organization
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-306  FOR FIELD s_ekorg.
    SELECT-OPTIONS: s_ekorg FOR ekko-ekorg MEMORY ID eko.
    SELECTION-SCREEN END   OF LINE.
    *+G1
      Purchasing Group
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-340  FOR FIELD s_ekorg.
    SELECT-OPTIONS: s_ekgrp FOR ekko-ekgrp MEMORY ID ekg.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document date
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-341  FOR FIELD s_ekorg.
    SELECT-OPTIONS: s_bedat FOR ekko-bedat MEMORY ID bed.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item plant
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-307  FOR FIELD s_werks.
    SELECT-OPTIONS: s_werks FOR ekpo-werks MEMORY ID wrk.
    SELECTION-SCREEN END   OF LINE.
    *+MD1K971124
    *+MD1K971479
    Number of Purchasing Info Record
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-342  FOR FIELD s_infnr.
    SELECT-OPTIONS: s_infnr FOR ekpo-infnr MEMORY ID inf.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item  material group
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-308  FOR FIELD s_matkl.
    SELECT-OPTIONS: s_matkl FOR ekpo-matkl MEMORY ID mkl.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item category
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-309  FOR FIELD s_pstyp.
    SELECT-OPTIONS: s_pstyp FOR ekpo-pstyp DEFAULT 8 TO 9.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item material number
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-310  FOR FIELD s_matnr.
    SELECT-OPTIONS: s_matnr FOR ekpo-matnr MEMORY ID mat.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item deletion indicator
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-311  FOR FIELD s_loekz.
    SELECT-OPTIONS: s_loekz FOR ekpo-loekz DEFAULT space.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-317 FOR FIELD s_ebeln.
    SELECT-OPTIONS: s_ebeln FOR ekko-ebeln MEMORY ID vrt.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-312  FOR FIELD s_ebelp.
    SELECT-OPTIONS: s_ebelp FOR ekpo-ebelp MEMORY ID bsp.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item purchase req number
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-313  FOR FIELD s_banfn.
    SELECT-OPTIONS: s_banfn FOR ekpo-banfn MEMORY ID ban.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item reference purchase document
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-318  FOR FIELD s_konnr.
    SELECT-OPTIONS: s_konnr FOR ekpo-konnr.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document item reference purchase document item
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-319  FOR FIELD s_ktpnr.
    SELECT-OPTIONS: s_ktpnr FOR ekpo-ktpnr.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document validity from date
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-314  FOR FIELD s_kdatb.
    SELECT-OPTIONS: s_kdatb FOR ekko-kdatb.
    SELECTION-SCREEN END   OF LINE.
      Purchasing Document validity to date
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) text-315  FOR FIELD s_kdate.
    SELECT-OPTIONS: s_kdate FOR ekko-kdate DEFAULT sy-datum
                                                TO '99991231'.
    SELECTION-SCREEN END   OF LINE.
      Vendor Rating
    SELECTION-SCREEN BEGIN OF LINE.
    *SELECTION-SCREEN COMMENT 1(28) text-316  FOR FIELD s_zmrate.
    *SELECT-OPTIONS: s_zmrate FOR ekko-zz_moc_rating.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN END OF BLOCK buyingguide.
    SELECTION-SCREEN END OF SCREEN 1100.
    SELECTION-SCREEN BEGIN OF SCREEN 1200 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK document
                              WITH FRAME TITLE text-024.
      Document number
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_dokar  FOR FIELD s_dokar.
    SELECT-OPTIONS: s_dokar FOR draw-dokar DEFAULT 'CN1'.
    SELECTION-SCREEN END   OF LINE.
      Document type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_doknr  FOR FIELD s_doknr.
    SELECT-OPTIONS: s_doknr FOR draw-doknr.
    SELECTION-SCREEN END   OF LINE.
      Document part
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_doktl  FOR FIELD s_doktl.
    SELECT-OPTIONS: s_doktl FOR draw-doktl.
    SELECTION-SCREEN END   OF LINE.
      Document version
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_dokvr  FOR FIELD s_dokvr.
    SELECT-OPTIONS: s_dokvr FOR draw-dokvr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN SKIP 1.
      Document Status
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_dokst  FOR FIELD s_dokst.
    SELECT-OPTIONS: s_dokst FOR draw-dokst." DEFAULT 'AC'.
    SELECTION-SCREEN END   OF LINE.
      Document Creation Date
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_adat   FOR FIELD s_adat.
    SELECT-OPTIONS: s_adat  FOR draw-adatum.
    SELECTION-SCREEN END   OF LINE.
      Document Creator
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_dwnam  FOR FIELD s_dwnam.
    SELECT-OPTIONS: s_dwnam  FOR draw-dwnam.
    SELECTION-SCREEN END   OF LINE.
      Document text
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_dktxt  FOR FIELD s_dktxt.
    SELECT-OPTIONS: s_dktxt  FOR drat-dktxt.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN SKIP 1.
      Parent Document number
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_prear  FOR FIELD s_prear.
    SELECT-OPTIONS: s_prear FOR draw-prear.
    SELECTION-SCREEN END   OF LINE.
      Parent Document type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_prenr  FOR FIELD s_prenr.
    SELECT-OPTIONS: s_prenr FOR draw-prenr.
    SELECTION-SCREEN END   OF LINE.
      Parent Document part
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_pretl  FOR FIELD s_pretl.
    SELECT-OPTIONS: s_pretl FOR draw-pretl.
    SELECTION-SCREEN END   OF LINE.
      Parent Document version
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(28) c_prevr  FOR FIELD s_prevr.
    SELECT-OPTIONS: s_prevr FOR draw-prevr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN END OF BLOCK document.
    SELECTION-SCREEN END OF SCREEN 1200.
    SELECTION-SCREEN BEGIN OF SCREEN 1300 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK charact
                              WITH FRAME TITLE text-025.
      Class
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) c_class  FOR FIELD p_class.
    PARAMETERS: p_class LIKE klah-class OBLIGATORY
                                        MATCHCODE OBJECT clas
                                        DEFAULT 'CONTRACTS'.
    SELECTION-SCREEN END   OF LINE.
      Class Type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) c_klart  FOR FIELD p_klart.
    PARAMETERS: p_klart LIKE klah-klart OBLIGATORY DEFAULT '017'.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN COMMENT /1(67) text-203.
    SELECTION-SCREEN COMMENT /5(16) text-204.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_01atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_01atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_01atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_02atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_02atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_02atm  FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_03atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_03atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_03atm  FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_05atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_05atm LIKE cabn-atnam OBLIGATORY
                                   VISIBLE LENGTH 26
                                   MODIF ID chr.
    SELECT-OPTIONS: s_05atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_04atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_04atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_04atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_06atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_06atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_06atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_07atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_07atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_07atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_08atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_08atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_08atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_09atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_09atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_09atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_10atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_10atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_10atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_11atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_11atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_11atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_12atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_12atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_12atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_13atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_13atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_13atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_14atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_14atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_14atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_15atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_15atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_15atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_16atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_16atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_16atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_17atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_17atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_17atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_18atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_18atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_18atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_19atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_19atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_19atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_20atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_20atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_20atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_21atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_21atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_21atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_22atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_22atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_22atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_23atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_23atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_23atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_24atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_24atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_24atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pc_25atm AS CHECKBOX
                                  MODIF ID chr.
    PARAMETERS: pt_25atm LIKE cabn-atnam OBLIGATORY
                                  VISIBLE LENGTH 26
                                  MODIF ID chr.
    SELECT-OPTIONS: s_25atm FOR  ausp-atwrt
                                  MODIF ID chr.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN END OF BLOCK charact.
    SELECTION-SCREEN END OF SCREEN 1300.
      Main Selection screen that will incorporate the subscreens
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabs FOR 24 LINES.
    SELECTION-SCREEN TAB (20) text-103 USER-COMMAND ucomm1
                                       DEFAULT SCREEN 1100.
    SELECTION-SCREEN TAB (20) text-100 USER-COMMAND ucomm2
                                       DEFAULT SCREEN 1200.
    SELECTION-SCREEN TAB (30) text-101 USER-COMMAND ucomm3
                                       DEFAULT SCREEN 1300.
    SELECTION-SCREEN END OF BLOCK tabs.
    SELECTION-SCREEN BEGIN OF BLOCK misc WITH FRAME TITLE text-061.
        ALV Variant
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-066 FOR FIELD p_alvvar.
    PARAMETERS: p_alvvar LIKE disvariant-variant.  "alv variant
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN END   OF BLOCK misc.

    hi nagendra,
    i got ur problem. i put the subscreen in ur main screen.
    i was gone through from ur program. there is number of parameters and select-option. and ur subscreen size is small according to your taken fields.
    there is two option
    1 ) . make your subscreen size full in main screen .
    2) . Or you can put all fields in main screen . it does not matter for codding.
    rewards if helpfull.

  • Dynamically Changing the Name and length of the Selection Screen Fileld

    Dear Friends,
    I want to incorporate a filtering option in my program,when the user selects the
    column of a table control and clicks on filter option it has to open up a
    new selection screen in which the selection option would be the selected
    column.
    for e-g if the user selects material the selection option would have the
    characteristics of mara-matnr.
    answers will be rewarded.
    Thx.
    Sreeni

    Hi,
    Check this link, very useful and good one too.
    http://sap.ittoolbox.com/code/archives.asp?i=10&d=2919&a=s
    this will help you i guess.
    Feel free to revert back.
    --Ragu

  • Reg Open sales order item and the quantity

    Hi experts:
    I am getting open sales order item based on inner join of tables(vbak, vbap, vbep). Not using vbbe table in inner join as it doesnt carry all pending open records.
    can any one say how open sales order items  and their quantity can be retrieved?
    I searched forum and saw usage of vbuk and vbup tables, but it does not accomplish our scenario.
    Thanks in advance,
    Sashti.

    Hi,
    1) fetch the header information from VBAK table.
    2) Based on VBAK table fetch all the line items from VBAP table.
    3) Now fetch from VBFA table.
    *-Fetch from VBFA to get the delivered qty
      SELECT vbelv               " Preceding sales and distribution document
             posnv               " Preceding item of an SD document
             rfmng               " Referenced quantity in base UOM
        FROM vbfa
        INTO TABLE lt_vbfa
         WHERE vbelv   = gv_vbeln
           and vbtyp_n = 'J'.
    4) By comparing VBFA-POSNR just filter the records from the VBAP internal table. Remained lines are open lines of the sales order.
    Regards,
    ~Satya

  • PO Line Item with Open Quantity

    HI all,
    How should i select a PO line item with Open Quantity? Is it possible to post GR for a PO which is set for Delivery Complition but still has Open Quantity ..
    please help me how to check for OPEN QUANTITY.
    Thanks,
    Ravi.

    Hi all,
    Thanks for your answer, but can you be some more specific on what calculations need to be done.
    I need to Post a GR for all PO where PO line items have Open Quantity.
    Thanks
    ravi.

  • F-44 Open Item Selection

    Hello,
    A user goes into transaction F-44 to clear a vendor but when she hits Process Open Items and brings her to the "Clear Vendor Select Open Items' screen she does not have the field Company Code in the Open Items Selections box.  When other users try the field is there but when she does it only brings up the fields Account, Account Type, Special G/L and Pmt. Advice No.  I've checked her user settings in SU01D and they identical to another users.  Thanks

    Hello,
    Check your data in FBL5N for the option "Special GL Transactions". There could be that there is no data in the system with SPECIAL GL TRANSACTIONS.
    In F-32, there is no value like *
    You need to input right Special GL Indicator. "*" will not work here.
    I am sure in both the systems if you put "*" and UNTICK your normal transaction, you will NOT get any items to clear.
    Please DOUBLE CHECK whether you have unticked normal transaction.
    Regards,
    Ravi

  • Sales order create/change line item with reference to contract - Open quantity not getting deducted for copied line item from the contract

    Hi friends,
    Please provide some valuable inputs for the following scenario:
    When a sales order line item is created(VA01) or changed(VA02) with reference to a Contract the open quantity is deducted in the contract which is a standard functionality. If the referenced line item is copied (custom enhancement to copy line item), then for the copied line item the open quantity is not getting deducted instead ATP quantity i.e. Available-to-promise is deducted.
    Any inputs on how we can fix this functionality i.e. deduct the open quantity from the contract for the copied line item?
    P.S. : Custom enhancement to copy line item is working fine, but open quantity is not getting deducted if the copied line item was referenced to a contract.
    Thanks,
    Sandeep
    Message was edited by: sandeep

    Sandeep,
    Yes, that was my original interpretation.  I was having a hard time believing that someone would ask such a question. 
    I guess, then, that you already know that you will have to add this logic to your enhancement. You should create your specifications and hand them off to a developer; ideally the one who created this enhanced solution in the first place.
    I do not provide advice in these forums about details of enhanced solutions.  Perhaps one of the other members will be more willing to do your work for you.
    Best Regards,
    DB49

  • How to design selection screen with WAD 3.x Web Items

    Hi Guruu2019s,
    I have a requirement where I need to design a selection screen by using WAD 3.x web items. In the selection screen we have to include the Query Description - in the left corner of the selection screen, Name of Sales Person u2013 left side of the screen, Date from and Date to u2013 right side of the selection screen, User ID and User Name u2013 on the top right of the selection screen etc., after this on the bottom of the selection screen I have to include the pushbutton RUN REPORT.
    After filling all the above parameters and click on Run Report it has to trigger another URL link which contains consolidated Sales CRM Report.
    Could any one suggest me and provide me the idea on developing the selection screen with WAD 3.x Web items and is there any other interface to trigger the other URL link when I click on Run Report.
    Regards
    Venkat

    no replies. Closing the incident

  • Blocking line items while open item selection for clearing

    We would like to block open items with one particular special GL indicator during open item selection for clearing.  The SAP transaction code is F-32
    Regards
    Ramesh Nalamada

    Hi Ramesh,
    Basically, what Meenakshi is saying is that you would have to build a Validation for this using transction code <b>GGB0</b> and stipulate in your condition that whenever any of your intended special G/L indicator is chosen during processing, the system should return an error message saying, for instance "<b>You cannot carry out Manual Clearing for this type of account</b>".
    I hope the above helps.
    Do not forget to award the points please.
    Regards,
    Jacob

Maybe you are looking for