Problem in sub contarcting

Hi All,
       In sub contracting for each vendor separate tolerance norms are there for each vendor.
For Ex:
To get 100 nos of SF from diiferent vendors norms are there
for vendor ABC 5% tolerance
for vendor CBA 2% tolrence
means for vendor out of 100 nos 5 pieces can be rejected as scrap & while doin MIRO Paynig money for that 95 pieces .
I recieved 100 pieces & in quality inspection i rej 5 pieces
while doing MIRO it is Showing for 100 pieces.But as per client requirement in MIRO payment should be done for 95 nos only.
Pls suggest how to solve this issue
thanks & regards
vr

Hi VR,
While doing rejection did you scrap to vendor or any defect for which vendor has to pay?
If you chose some defect for which company has to pay then vendor will be paid fully for 100 quantity and not for 95 quantity.
so it can be one of the reason.
Please check 122 document for the same.
Regards,
Aakash

Similar Messages

  • Problem with sub-screen actions on Cancel button

    Hi all,
    I have a problem with sub-screen.
    I created a subscreen (screen sequence in MM01/MM02/MM03). When users leave this screen, I call POPUP_TO_CONFIRM to ask if they want to save the data.
    1) My goal is: when they choose Cancel, no actions are performed and users will see the current screen. However, I cannot use command: SET SCREEN 0 or LEAVE TO SCREEN 0 because the system gives an error message:
    *SET SCREEN not allowed in subscreens*.
    2) How can we determine when the user leaves the screen? which value of SY-UCOMM will be used to check this?
    Thanks in advance.

    for dis SET SCREEN is not required.
    Consider d code given below as n eg:
    CALL FUNCTION 'POPUP_TO_CONFIRM'
        EXPORTING
          titlebar              = 'SAVE'
          text_question         = 'SOME _QUS'
          text_button_1         = 'YES'
          text_button_2         = 'NO'
          default_button        = '2'
          display_cancel_button = ' '
        IMPORTING
          answer                = l_ans
        EXCEPTIONS
          text_not_found        = 1
          OTHERS                = 2.
      IF sy-subrc <> 0.
        MESSAGE e066.
      ENDIF.
    IF l_ans EQ '1'.    " when yes is pressed
       MODIFY db.
       commit work.
       leave program.
    ELSEIF l_ans EQ '2'.  "when no is pressed
        leave program.
    ELSE.     " when cancel is pressed
    ENDIF.
    In above module when Yes is pressed it saves data den leave prog.
    As no action is specified for cancel button it will remain on that screen only from which popup is called, in this way ur problem can be solved.
    Reward properly.

  • Problems with sub menus in Internet Explorer

    My menu bars work great in Chrome and Firefox however my submenus are jacked up in Internet Explorer. Can someone please give me some direction? Thanks.
    The website is www.aptyssolutions.com

    Have a look here http://www.dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php#one
    Then have a look at what you have got
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
           display: block;
            f\loat: auto;
            background:
    and
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        cursor: default;
        width: AUTO;
        position: absolute;
        left: -1000em;
       top: 23px;
        height: 35px;
        background-image: url(/images/bluebar.png);
    There is more, but the above is most likely what is causing the problem.
    I suggest that you resurrect the original SpryMenuBarHorizontal.css and start again.

  • Merged projects - topic-level tag problems in sub-projects

    I am working on an extensive help file in RoboHelp HTML. It
    consists of a master project and 15 sub-projects. Each of the sub
    projects have topic-level conditional tagging, and when each
    sub-project is compiled, the topic-level tagging works and the CHM
    is correct in regards to what topics are included and excluded.
    However, when I compile the master project, it seems that RoboHelp
    disregards ALL topic-level tagging in the sub-projects. So, the CHM
    for configuration A includes all sub-project topics for
    configurations A, B, C, and D. The topics are in the TOC and they
    appear as search results. We are not using an index, but binary
    index is checked in the project settings.
    The same four configurations in the sub-projects are also in
    the master project, but the conditional tag expressions aren't
    word-for-word identical. Should they be?
    Note that the content-level tagging within the sub-projects
    DOES work when the master project is compiled. For some reason, the
    problem is isolated to the topic-level tagging.

    I think I'm the one causing the problem - I don't think I
    read your initial post carefully enough. Sorry...
    I can't figure out how this is happening. When you merge
    .chms, you have already compiled the 'slave' projects. The link
    from the master TOC points to a slave .chm - which you say is
    working correctly when opened on its own.
    Since the slaves and masters are compiled independently,
    there shouldn't be any interaction between the master and slave
    build expressions - and if there is one, it should be excluding
    more topics, not including more topics!
    The typical problems people have with merged .chms seem to be
    TOC issues (does the master TOC show up, or just the slave
    project's TOC?) and path issues (the master can't find the slaves).
    However, I did see one or two posts on this forum where the master
    was pointing to old copies of the slave .chm - could you have a
    "complete" .chm lurking about?
    BTW, according to RH help, binary indexes are fine in merged
    HTMLhelp. Binary TOCs are not. I don't think you have this problem,
    because the symptoms are different, but you could take a look - the
    setting is in the HTMLHelp Generate wizard. Click the [Advanced]
    button on the first wizard page and look on the TOC tab to make
    sure Binary TOC is not checked.
    You might also do a quick search on the General
    Info/HTMLHelp/RH for HTML forums for "merged .chm" - you might
    recognize a symptom in someone's post that I didn't catch.
    Good luck,
    Elisa

  • Problem with sub queries

    Hi
    I have 3 tables like,
    LIST (ID NUMBER, NAME)
    LIST_VERSION (ID NUMBER, VER NUMBER, STATE_CODE number)
    STATE_CODES (CODE NUMBER, DESC VARCHAR2)
    LIST to LIST_VERSION is one to many relation. I have a query like this,
    SELECT LV.* from LIST_VERSION WHERE
    LV.VER = (SELECT MAX(LV1.VER) FROM LIST_VERSION LV1 WHERE
    LV1.ID = LV.ID)
    OR LV.VER = (SELECT MAX(LV2.VER) FROM LIST_VERSION LV2 WHERE
    LV2.ID = LV.ID and LV2.STATE_CODE=1)
    LIST to LIST_VERSION and LIST_VERSION to STATE_CODES table is defined
    in toplink mapping. To translate this into expression I have tried several possible combinations with out any luck. I was able to get the individual queries (the ones in OR) work, but not together. Here is what I did for individual queries
    ExpressionBuilder bldr = new ExpressionBuilder(ListVersion.class);
    ExpressionBuilder sub1 = new ExpressionBuilder ();
    ExpressionBuilder sub2 = new ExpressionBuilder ();
    ReportQuery subQ1 = new ReportQuery (ListVersion.class, sub1);
    ReportQuery subQ2 = new ReportQuery (ListVersion.class, sub2);
    subQ1.addMaximum ("listVer");
    subQ1.setSelectionCriteria (sub1.get ("list").get ("id").equal (bldr.get ("list").get("id")));
    subQ2.addMaximum ("listVer");
    subQ2.setSelectionCriteria (sub2.get ("list").get ("id").equal (bldr.get ("list").get("list")).and (sub2.get ("stateCode").get ("code").equal (1)));
    Expression exp1 = bldr.get("listVer").equal(subQ1);
    Expression exp2 = bldr.get("listVer").equal(subQ2);
    Each of the above expressions work fine independenty. However if I try to do some thing like,
    exp1.or(exp2) I get very strange SQL generated and get SQL exceptions in code. The SQL it generates is
    SELECT t0.ID, t0.VER, t0.STATE_CODE FROM LIST_VERSION t0 WHERE ((t0.VER = (SELECT MAX(t1.VER) FROM LIST t3, LIST t2, LIST_VERSION t1 WHERE ((t2.ID = t3.ID) AND ((t3.ID = t0.ID) AND (t2.ID = t1.ID))))) OR (t0.VER = (SELECT MAX(t4.VER) FROM LIST t5, LIST_VERSION t4, STATE_CODES t6 WHERE (((t5.ID = t3.ID) AND (t6.STATE_CODE = ?)) AND ((t6.STATE_CODE = t4.CODE) AND (t5.ID = t4.ID))))))
    The problem occurs because the t3.ID in the second sub query is not correct. it should be t0.ID, but I can't figureout why this is happening. Any help or suggessions to achieve my objective?
    Thanks
    Bhaskar

    Looking at your query that works at the bottom, I do not see any reason that you would need to include the Assignment table in the From list. Just use the same where clause in the form:
      Where project.resources_maximum
        > (Select Count(assignment.employee_ID)
           From assignment
           Where assignment.project_ID = project.project_ID
           group by assignment.project_ID  )

  • Problems accessing sub accounts

    I am using a Mac laptop with the apple mail client.
    I receive emails without any problems using the Mac but cannot access the some sub accounts using Webmail.
    I have changed passwords and received the email to the primary account confirming the change.
    Unfortunately I still cannot access the sub accounts even with the confirmed password change.
    Does anyone have any suggestions.
    Neil

    Hi morganmadplus8,
    Are you still having issues when trying to access your sub-accounts? Is it only some of them or all of them?
    Dean
    BTCare Community Mod
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Problems with Sub Query

    Hello, I am attempting to create a sub query to display certain information. On the form that the information is inputted, the user has the option of inputting a phone number extension if applicable. If this is the case I want the phone number to show as 555-867-5309 (x1234). However without the problem checks, the (x ) will show up regardless and looks sloppy. Here is the code I have, please advise.
    There will be two spots this will be needed -- for the requester's contact number and the app manager (sme) contact information.
    Thanks.
    select
        pm.pk_proj_master_id "Project Number",
        pm.trackit_work_order "TrackIt Work Order",
        pm.name "Project Name",
        pm.status "Project Status",
        req.last_name||', '||req.first_name||', '||req.middle_initial||'.' "Requestor Name",
        rde.department_group_descr "Requestor Department Name",
        req.department_descr "Requestor Division Name",
        pm.requester_ext,
        case
            when pm.requester_ext in
                select
                    pm.requester_phone|| '(x'||pm.requester_ext ||')' "Requesters Number"
                from
                    protrac_master pm
                where
                    pm.requester_ext is not null
            else
                select
                    pm.requester_phone "Requesters Number"
                from
                    protrac_master pm
        end as "Requester Number",
        man.last_name||', '||man.first_name||', '||man.middle_initial||'.' "SME Name",
        mdg.department_group_descr "SME Department Name",
        man.department_descr "SME Division Name",
        pm.app_manager_ext,
        case
            when pm.app_manager_ext in
                select
                    pm.app_manager_phone|| '(x'||pm.app_manager_ext ||')' "SME Number"
                from
                    protrac_master pm
                where
                    pm.app_manager_phone is not null
            else
                select
                    pm.app_manager_phone "SME Number"
                from
                    protrac_master pm
        end as "Requester Number",
        pm.createby_date "Date Entered",
        pm.date_begin "Date Began",
        pm.date_completed "Date Completed",
        pm.estimated_date "Estimated Completion Date"
    from
        protrac_master pm,
        cobr.vw_pps_payroll req, cobr.department_group rde,
        cobr.vw_pps_payroll man, cobr.department_group mdg
    where
        pm.requester_id         = req.emple_no and
        pm.requester_dept_id    = rde.pk_department_group_id and
        pm.app_manager_id       = man.emple_no and
        pm.app_manager_dept_id  = mdg.pk_department_group_id
    order by
        pm.pk_proj_master_id

    I think you can avoid the whole sub query thing just by using the NVL2 function:
    select ...
         , NVL2( pm.requester_ext
               , pm.requester_phone|| '(x'||pm.requester_ext ||')'
               , pm.requester_phone) "Requesters Number"
         , NVL2( pm.app_manager_ext
               , pm.app_manager_phone|| '(x'||pm.app_manager_ext ||')'
               , pm.app_manager_phone) "Manager Number"
      from protrac_master pm
         , ...

  • Problems with sub-items and header attributes in complains

    Hello Gurus!
    I am relatively new to the enterprise services and I have a requirement to create a complain with one product and a child product (items 1000 and 1010) but I tried several ways the service and no matter what I do I always get 2 items without relationship between them. I have tried specifying the parent item ID during create (did not expect to work as parent has also not been created yet) and also tried the BusinessTransactionDocumentReference, but also did not work or did not use the content correctly, in the ES Workplace there is not much info about the possible values for this data segment and it's not returned when I read an existing complain (so I think it is not the way to go)
    Finally, the question is... can I create a complain using the enterprise service CustomerComplaintCRMCreateRequ and with the header, item and subitem in the same step or must I create first and then update? (Like the manual process would be)
    Thanks!

    Hi Milos,
    If nothing at all has synchronized, I would first double check your connection settings and passwords.
    If the synch appears to to be connecting correctly, you will need to look at the data that it is failing on.
    The synch queue is the prx_transaction_queue table in the Business One database.  The object_type column refers to a Business One object.  2 for business partner and 4 for items.  The list_of_cols_val_tab_del is the key in the associated table.  For business partners that is OCRD.CardCode and items OITM.ItemCode.
    First determine that there is no bad data in the queue.  Bad data is typically defined as null or empty strings in the list_of_cols_val_tab_del column.
    Try running the following for business partners:
    select *
    from prx_transaction_queue
    where object_type = 2 and (list_of_cols_val_tab_del is null or list_of_cols_val_tab_del = '')
    And this for Items.
    select *
    from prx_transaction_queue
    where object_type = 4 and (list_of_cols_val_tab_del is null or list_of_cols_val_tab_del = '')
    If there are nulls or empty strings in the list_of_cols_val_tab_del column, delete them.
    If not, take a look at the first records in the queue.
    select top 1 *
    from prx_transaction_queue
    where object_type = 2
    order by tmstmp
    and for items:
    select top 1 *
    from prx_transaction_queue
    where object_type = 4
    order by tmstmp
    Change the transaction_type to "X" (remember what is was, because you will need to change it back).  Changing this value will remove the item from the synch.
    Rerun the synch. 
    If it runs at this point, there is probably data in the records that the synch was not expecting.  The business partner data will need to be examined.  Tics in key values (CardCode, Address Name, contact name, itemcode) may cause problems.
    If this is the case, you might want to contact support to try to track the problem down.
    Another source of problems may be database collation.  We can talk about that if none of the above works.

  • Where clause problem with sub-queries in forms 6i

    where is the best place to put a sub query?? I have been using the set block property, however when running a sub query an alternative method must be used. what are some other options?? I have tried to have the query directly in the data block property palette but to no avail...
    There are 2 tables project and assignment
    maximum resources cannot be exceeded therefore a count of employees
    on the assignment table establishes that there are open spaces on the project.
    This code Here is my code for my where clause on the data block
    project.resources_maximum >
    (Select Count(assignment.employee_ID)
    From assignment
    Where assignment.project_ID = project.project_ID
    group by assignment.project_ID
    and project.end_date>sysdate;
    I was reading that the project table must be defined in the from clause
    to have the query go row by row, otherwise multiple rows are returned
    however I cannot define the project in the from,
    could this be why this doesn't work???
    original SQL that does work
    Need to migrate this to forms
    Select project.project_ID
    from project
    Where project.resources_maximum >
    (Select Count(assignment.employee_ID)
    From assignment
    Where assignment.project_ID = project.project_ID
    group by assignment.project_ID
    and project.end_date>sysdate;

    Looking at your query that works at the bottom, I do not see any reason that you would need to include the Assignment table in the From list. Just use the same where clause in the form:
      Where project.resources_maximum
        > (Select Count(assignment.employee_ID)
           From assignment
           Where assignment.project_ID = project.project_ID
           group by assignment.project_ID  )

  • Reconcilation problem in sub-contracting scenario

    Hai,
    In sub-contracting process
    after receiving GR, i have gone for challana reconcilation, where i am getting one error "challana material number is different from material document.
    please help me out

    hi
    plz check ur fiscal year
    what ur using
    ask ur fi consultant
    regards
    kunal

  • Problem with sub totals ALV Grid

    Hi experts,
       I got one requirement, I am using ALV GRID function modules technique. My requirement is, I want to display one value at subtotal line(i.e. like header value). How to display the table values in the subtotal line.
    Please give any solution for this.
    Thanks in advance.
    Sandya.

    Hi Sandhya,
                       i will send a sample code for ur problem.And also i will send a entire program about subtotals.Check it once ok..Copy the below prog and execute it and debug it..
    *SubTotal on the Field NETWR
        wa_fieldcat-tabname       = 'IT_SALESORDER'. "Internal
      wa_fieldcat-fieldname     = 'NETWR'.         "Field Name
      wa_fieldcat-do_sum        = 'X'.             "Sum
       APPEND wa_fieldcat TO gt_fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
        i_callback_program                = sy-repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
        it_fieldcat                       = gt_fieldcat
    SAMPLE PROGRAM:
    *& Report  YSALESORDER_ALV_SUBTOTALS                                   *
    *& DEVELOPER  : KIRAN KUMAR.G                                          *
    *& PURPOSE    : DISPLAYING SUBTOTALS FOR A PARTICULAR SALES DOC NO     *
    *& CREATION DT: 26/11/2007                                             *
    *&  REQUEST   : ERPK900035                                             *
    REPORT  ysalesorder_alv_subtotals.
    Type Pools
    TYPE-POOLS:slis.
    Tables
    TABLES: vbak,  "Sales Document: Header Data
            vbap.  "Sales Document: Item Data
    Global Structures
    DATA:gt_fieldcat TYPE slis_t_fieldcat_alv,
         wa_fieldcat TYPE slis_fieldcat_alv,
         gt_sortcat TYPE slis_t_sortinfo_alv,
         wa_sortcat  LIKE LINE OF gt_sortcat.
    Internal Table
    DATA: BEGIN OF gt_salesorder OCCURS 0,
            vbeln LIKE vbak-vbeln,    " Sales Document Number
            posnr LIKE vbap-posnr,    " Sales Doc Item
            netwr LIKE vbap-netwr,    " Net Value
          END OF gt_salesorder.
    SELECT OPTIONS
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln.   " Sales Document Number.
    SELECTION-SCREEN END OF BLOCK b1.
    Initialization
    INITIALIZATION.
      PERFORM initialization.
    Start Of Selection
    START-OF-SELECTION.
      PERFORM field_catalog.   "For Structure Creation
      PERFORM fetch_data.      "Get the Data From DB Table
      PERFORM sorting USING gt_sortcat.
    End Of Selection
    END-OF-SELECTION.
      PERFORM display_data.
    *&      Form  initialization
          text
    -->  p1        text
    <--  p2        text
    FORM initialization .
      s_vbeln-sign   = 'I'.
      s_vbeln-option = 'BT'.
      s_vbeln-low    = '4969'.
      s_vbeln-high   = '5000'.
      APPEND s_vbeln.
    ENDFORM.                    " initialization
    *&      Form  field_catalog
          text
    -->  p1        text
    <--  p2        text
    FORM field_catalog .
      REFRESH : gt_fieldcat.
      CLEAR   : wa_fieldcat.
      wa_fieldcat-col_pos       = '1'.             "Column Position
      wa_fieldcat-tabname       = 'IT_SALESORDER'. "Internal Table
      wa_fieldcat-fieldname     = 'VBELN'.         "Field Name
      wa_fieldcat-key           = 'X'.             "Blue Color
      wa_fieldcat-seltext_m     = 'Sales Doc No'.  "Display Text In Screen
      APPEND wa_fieldcat TO gt_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-col_pos       = '2'.             "Column Position
      wa_fieldcat-tabname       = 'IT_SALESORDER'. "Internal Table Name
      wa_fieldcat-fieldname     = 'POSNR'.         "Field Name
      wa_fieldcat-seltext_m     = 'Sales Doc Item'."Display Text In Screen
      APPEND wa_fieldcat TO gt_fieldcat.
      CLEAR wa_fieldcat.
    *SubTotal on the Field NETWR
      wa_fieldcat-col_pos       = '3'.             "Column Position
      wa_fieldcat-tabname       = 'IT_SALESORDER'. "Internal Table
      wa_fieldcat-fieldname     = 'NETWR'.         "Field Name
      wa_fieldcat-do_sum        = 'X'.             "Sum
      wa_fieldcat-seltext_m     = 'Net Value'.     "Display Text In Screen
      APPEND wa_fieldcat TO gt_fieldcat.
      CLEAR wa_fieldcat.
    ENDFORM.                    " field_catalog
    *&      Form  sorting
          text
         -->P_IT_SORTCAT  text
    FORM sorting USING p_it_sortcat TYPE slis_t_sortinfo_alv.
      CLEAR wa_sortcat.
      wa_sortcat-fieldname = 'VBELN'.
      wa_sortcat-up        ='X'.
      wa_sortcat-subtot    = 'X'.
      APPEND wa_sortcat TO p_it_sortcat.
    ENDFORM.                    " sorting
    *&      Form  display_data
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
        i_callback_program                = sy-repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
        it_fieldcat                       = gt_fieldcat
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
        it_sort                           = gt_sortcat
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
        t_outtab                          = gt_salesorder
       EXCEPTIONS
        program_error                     = 1
        OTHERS                            = 2.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " display_data
    *&      Form  fetch_data
          text
    -->  p1        text
    <--  p2        text
    FORM fetch_data .
      REFRESH : gt_salesorder.
      CLEAR   : gt_salesorder.
      SELECT a~vbeln
             posnr
             b~netwr
        FROM vbak AS a
       INNER JOIN vbap AS b ON  avbeln = bvbeln
        INTO TABLE gt_salesorder
        WHERE a~vbeln IN s_vbeln.
    ENDFORM.                    " fetch_data
    Reward points if helpful.
    Kiran Kumar.G.A
            Have a Nice Day..

  • See my query problem for sub query

    hi master
    Sir see my query
    select lpad(' ',2*(level-1)) || to_char(chartofacc.child),parent,accid as accounted ,title,
    case when fstatus=1 then
    (select sum(drbal) from accbal where parent = accounted)
    when fstatus is null then
    (select drbal from accbal where accid = accounted)
    end subtotal
    from chartofacc
    start with chartofacc.parent is null
    connect by prior chartofacc.child = chartofacc.parent order by chartofacc.accid
    I try but not success how I pass main query value or code in sub query or inner query
    My requirement is inner query get total from accbal table how have accid that in main query accid or accounted
    How I pass main query value or accid code to inner query and inner query give result as per main query accid
    How I get subtotal and total by one query
    Please give me idea or code
    Thanking you
    aamir

    You could write your main SELECT statement as inline view or use the WITH clause, like this:
    WITH ctf AS (SELECT LPAD (' ', 2 * (LEVEL - 1)) || TO_CHAR (chartofacc.CHILD), PARENT,
                        accid AS accounted, title,
                   FROM chartofacc
                  START WITH chartofacc.PARENT IS NULL
                  CONNECT BY PRIOR chartofacc.CHILD = chartofacc.PARENT
                  ORDER BY chartofacc.accid
    SELECT ctf.*,
           CASE WHEN fstatus = 1
                THEN (SELECT SUM (drbal)
                        FROM accbal
                       WHERE PARENT = accounted)
                WHEN fstatus IS NULL
                THEN (SELECT drbal
                        FROM accbal
                       WHERE accid = accounted)
           END subtotal
      FROM ctf
    not tested
    C.

  • Problem during sub-contracting

    Dear Experts,
    My client is making a finished product after 9 Operations, In which first and last 3 operations are in-house operations.
    Middle 3 operations are performed in sub-contractor's place at 3 different work centers.
    The client wants to track the "qty after each operation" at the sub-contractor's place. They also want to do the capacity planning of the sub-contractor's work centers, to make the further processes smooth.
    Thanks in Advance.
    Regards
    Balamurugan.VP

    Dear all,
    Thanks for your replies.
    Dear prasobh, 1. can u please explain me how to create the subcontract entity as Plant,
    2. there are 3 operations performed at sub-contractor's place, so should i need to create 4 different  materials and production orders respectively?
    3.For 4 type of materials, i will have to create 4 routings, in the routing i need to put PP02 as the control key, so for everytime if i enter it is asking the subcontractor details, 
    I will send the material once and get it after the 3 operations,  can anyone please tell me the detailed process.
    Thanks & regards
    Balamurugan.VP

  • BOM for sub-contarcting

    Hi, a finish product requires 2 sub-assemblies and both the sub-assemblies can be manufactured in-house. ea sub assemblies needs a raw mat to prepare. some times we send only the bottom most level raw to vendor for sub-contracting and we receive sub-assembly 1. at the time of design we are not aware whether it is manufactured internally or externally.in above scenario how to set multi level bom and what will be mrp results (mts,0 stock)? thanks in advance.

    Dear Yadav,
    Here the question is only about the procurement type and special procurement type which comes when
    creating the material master and not in BOM.
    Only this procurement type is going to give the impact when running MRP and BOM has to be created
    whether it may be a sub-contracted or inhouse manufactured.
    You can create 2 different BOM's if the sub-assembly is going to have a separate BOM for inhouse and
    separate one for a sub-contracted one.
    So check with this and revert back.
    Regards
    Mangalraj.S

  • Problema al subir la página

    Hola. Tengo el problema siguiente: He creado un sitio web con Adobe Muse y he exportado en html todo el sitio; he subido todas las carpetas al servidor donde esta la página antigua (en una carpeta de prueba) y el problema es que aparece todo descolocado. ¿Porqué pasa esto?

    he encontrado el problema en nuestras paginas en español...
    hay que agregarle al index en el head el siguiente comando:
    <meta charset="UTF-8">
    Con esto le estarás diceindo al explorador que use la codificacion UTF-8 y entonces verá los tildes y las Ñs-
    Saludos
    Leonardo

Maybe you are looking for

  • Black screen with dual head with kernel 3.7

    When I boot my (rather old) laptop with a VGA screen attached, the main LVDS screen goes totally black (with no backlight) at loading the module i915 and the VGA screen goes black (but one can see the backlight is on). When I boot without the VGA scr

  • [SOLVED] Kernel panic when using external USB hard drive

    I have a desktop PC with a 64 bit arch install, on a Core2 Duo 6320 CPU. I have been using (and continue using right now) a 500 GB "Iomega Desktop Hard Drive" external USB hard disk without problems. But I have just bought a 3 TB "Seagate Expansion"

  • Photos look less sharp when not in editing view

    This is kind of confusing to explain...but I'll try! When editing a photo in iPhoto '09, I adjusted it to what I wanted, but once I leave editing mode and view the photo as a preview (by double clicking on the thumbnail) it looks much less sharp and

  • How to delete a page in thumbnail veiw when all connected in yellow box

    How do I delete a page from thumbnail view if they are all locked in one yellow box? Never happend before. What do I need to turn off? Why did it group the three pages? I added a page to the document and it grouped all three together. J

  • Newbie - Setup Xserve with Mac Os X 10.6 for small group

    I already have infrastructure with DNS, DHCP, file storage etc.... I have a small group of users that will use Macs with OS 10.6 and a new Xserve. I only wnt them to autthenticte to OD on Xserve and thats it. And so I can see logs og their logins.. I