Regarding: table having block stock field sales order wise

Hi,
I am working on report in which i have to display the block stock sales order wise ,i had used to tcode MB52 and MMBE and i was first using table MCHB and MARD ,it displays only the bocked stock ,but when i click on  special stocks icon in tcode MB52 n execute it the qty displayed in that is not being able to be displayed in the tables MARD n MCHB.
right now i am using table MSKA and varifying it with MB52 tcode.
PLZZ HELP ME OUT BY telling me which table to be used for displaying the block sales order wise.
Edited by: ric .s on Mar 6, 2008 11:19 AM

Hi,
Try out this.
DATA: is_object                TYPE sibflporb,
            it_relation_options TYPE obl_t_relt,
            is_relation_options TYPE obl_s_rolt,
           gt_links                    TYPE obl_t_link.
           is_object-instid    = <sales order number with leading zeros>.
           is_object-typeid   = 'BUS2032'.
           is_object-catid     = 'BO'.
*u201Ddocument relation
is_relation_options-sign      = 'I'.
is_relation_options-option   = 'EQ'.
is_relation_options-low        = 'ATTA'.
APPEND is_relation_options TO it_relation_options.
TRY.
    CALL METHOD cl_binary_relation=>read_links
      EXPORTING
        is_object           = is_object
        it_relation_options = it_relation_options
      IMPORTING
        et_links            = gt_links.
ENDTRY.
GT_LINKS should be filled if sales order has attachment.
Regards,
Sudhakar

Similar Messages

  • Need to post blocked stock for sales order stock

    HI Expert,
                    i have one issue pls solve it as soon as possible
    when ever i received part return from customer ( RE) ,  it automatically going to unrestricted stock , i need its going to returns stock 
    Note : this is make to order type
    urgent............ pls give solution
    thanks
    kali

    Hi ,
    Thanks for ur reply
    i changed as per your instruction but cannot.
    i need to detail explain to u
    1. My planning strategy - Make to Order
    2  whenever we receive parts from customer it will automatically the goods going to returns stock  then we create DO and move to blocked stock -
       This my requirement
    3  Simultaneously inspection also created    -
       This my requirement
    pls help
    thanks
    kali

  • Reagrding :  block stock sales order wise

    Hi,
    I am working on report in which i have to display the block stock sales order wise ,i had used to tcode MB52 and MMBE and i was first using table MCHB and MARD ,it displays only the bocked stock ,but when i click on  special stocks icon in tcode MB52 n execute it the qty displayed in that is not being able to be displayed in the tables MARD n MCHB.
    right now i am using table MSKA and varifying it with tcode mb52.
    PLZZ HELP ME OUT BY telling me which table to be used for displaying the block sales order wise.
    Edited by: ric .s on Mar 6, 2008 11:18 AM

    Blocks can be of different types and at different levels..
    All header level sales order blocks can be seen in VBUK and item level at VBUP.
    For eg : VBUP-FSSTA - Billing block status for items and
                VBUP-LSSTA - Delivery block
    Also look at the following fields of VBUK :
    FSSTK     -Overall billing block status
    LSSTK_-Overall delivery block status
    SPSTG     -Overall blocked status

  • Check Credit and Stock on Sale Order

    Hi All
    Could you please tell me how to check Credit and Stock on Sale Order.
    Thank and Best Regard
    Thang

    How To Do Configuration For Credit Management
    Credit and risk management takes place in the credit control area. According to your corporate requirements, you can implement credit management that is centralized, decentralized, or somewhere in between. 
    An organizational unit that represents the area where customer credit is awarded and monitored.   This organizational unit can either be a single or several company codes, if credit control is performed across several company codes. One credit control area contains credit control information for each customer.
    For example, if your credit management is centralized, you can define one credit control area for all of your company codes. 
    If, on the other hand, your credit policy requires decentralized credit management, you can define credit control areas for each company code or each group of company codes. 
    Credit limits and credit exposure are managed at both credit control area and customer level.  You set up credit control areas and other data related to credit management in Customizing for Financial Accounting. The implementation guide is under Enterprise Structure -> Definition or Assignment -> Financial Accounting and then Maintain credit control area. You assign customers to specific credit control areas and specify the appropriate credit limits in the customer master record.
    Settings for determining the credit control area of a document.  The settings of items 1 - 4 are taken into account according to their priority.  The credit control area found is stored in field VBAK-KKBER.
    1. Transaction OB38
       Check which credit control area is assigned to the company code.
       Company code:
       Credit control area:
    2. Transaction OVFL
       Check which credit control area is assigned to the sales area.
       Sales area:
       Credit control area:
    3. Transaction XD02 or VD02
       Check which credit control area is assigned to the payer.
       Payer:
       Credit control area:
    4. Transaction SE37
       Is user exit EXIT_SAPV45K_001 being used?
    5. Transaction OBZK
       For the settings under items 2 - 4, field "All company codes" must be marked in Transaction
       OB45, or the credit control area must be entered under the relevant company code in table
       T001CM of the credit control areas allowed.
       Company code:
       Credit control areas allowed:
    6. Settings for the credit checks
    7. Transaction OVAK
       Which settings do exist for the sales document type used?
       Sales document:
       Check credit:
       Credit group:
    8. Transaction OVAD
       Which settings do exist for the delivery type used?
       Delivery type:
       Credit group for delivery:
       Credit group for goods issue:
    9. Transaction OB01
       Credit management/Change risk category
       Definition of the risk category for each credit control area. This risk category can be
       assigned to a credit account by using Transaction FD32.
    10. Transaction OVA8
        Here, the individual credit checks for key fields
        o credit control area
        o risk category
        o credit group are set. Take these key fields from the above settings and go to the detail
          screen. In particular, check whether fields "Reaction" and "Status/block" are set
          correctly. To carry out follow-up actions in case of a credit block, the credit check
          status must be set (field "Status/block").
    11. Transaction FD32
        Credit master data for the payer of the relevant document.
        Credit account:
        Credit limit:
        Risk category:
        Currency:
    12. Settings for updating the credit values Update of the credit values is required for the limit
        check (static or dynamic credit limit check).
    13. Transaction OVA7
        Update of the credit value is active for the corresponding item type if the check box is marked. This field corresponds to 
        field "Active receivable" in Transaction VOV7.
        Item type: 
        Active receivable:
    14. Transaction V/08, Pricing
        In the pricing procedure used for pricing, subtotal "A" must be entered in a line for
        determining the credit value (mark the pricing procedure and doubleclick on "Control").
        Usually, the net value plus taxes is used. This way the system is determined to use this
        subtotal for credit pricing. The credit price is stored in field VBAP-CMPRE and used for
        update and credit check.
        You can find the used pricing procedure of the order under "Item -> Condition -> Analysis".
        Pricing procedure:
        Line with subtotal = 'A':
    15. Transaction OB45
        Which update group (field "Update") do you use in the relevant credit control area? The
        default setting is "12". If you use another update group, check whether this is fine with
        you. If you open an OSS message, please tell us the alternative update group.
        Credit control area:
        Update:
    16. Transaction OMO1
        Which kind of update did you choose for structure S066? 
         In any case, "Synchronous update (1)" has to be chosen as the kind of update. 
         All other settings will lead to errors
    Regards
    Raja
    Edited by: ramanathan raja on Jul 25, 2008 4:37 PM

  • Userexit to prevent negative stock in Sales order

    Hi
    Is there any userexit avilable to prevent negative stock in sales order.
    When i an creating a sales order, the schedule lines are getting confirmed without posting any stock. In availablity check when click on ATP quantity it shows negative stock.
    Despite having negative stock it is alllowing me to create sales order and create delivery but no PGI. It gets block at PGI. Now i want to know is there any Userexit through which i can prevent negative stock in sales order. Thats ig stock in negative , it should not allow to save the sales order.
    Any help will be really useful.
    Regards
    Jalaj Nakra

    Exit MV45AFZZ will be useful.

  • Credit block in a sales order

    Hi All,
    Is it possible to find out who has released a credit block in a sales order. Is there any table or T-CODE .
    Normally , it is displayed in the Change log of  the sales order . But in our case  the change log is not showing any details of the credit block . Can there be any reason why it is not showed in the Change log .
    Please help .
    Regards,
    Pallavi

    Hi
    Please try this:
    Pass  VBELN to CDHDR table as OBJECTID along with OBJECTCLAS = VERKBELEG To Fetch CHANGENR (Document number) 
    Pass CHANGENR, and VBAK-VBELN, OBJECTCLAS =VERKBELEG, TABNAME=VBAK and FNAME=FAKSK into CDPOS table to
    Fetch CHANGENR
    Pass the CDPOS-CHANGENR as CHANGENR and OBJECTCLAS = VERKBELEG into CDHDR table again to get change details.
    P.S. If sales order was blocked and unblocked by some one, it should display in Change log of sales order.

  • How can I use the field "Sales Order" on derivation?

    Dear All.
    This is about PA characteristic derivation.
    I want to change the characteristic value "Sales Order (KAUFN)" by derivation.
    But I cannot select the characteristic field on target field.
    The field "Sales order(KAUFN)" doesn't exist there.
    Why? How can I use the field "Sales Order" on derivation?
    Y.C.Bae

    Hi Bae,
    in order to be able to choose fields KAUFN (for sales order) and KDPOS
    (for sales order item) as target fields of derivation step 'enhancement'
    you have to modify the coding of subroutine EXIT  GET_ALLOWED_TARGETS
    in program RKEDRCOPA like this:
        NAME-IDENTIFIER = 'CO-PA'.
        NAME-TABNAME = FIELDTAB_ENTRY-TABNAME.
        NAME-FIELDNAME = FIELDTAB_ENTRY-FIELDNAME.
        IF FIELDTAB_ENTRY-USGFL CA 'DUV'
    BEGIN OF INSERTION *****
             OR FIELDTAB_ENTRY-FIELDNAME = 'KAUFN'
             OR FIELDTAB_ENTRY-FIELDNAME = 'KDPOS'
    END   OF INSERTION *****
             OR FIELDTAB_ENTRY-FIELDNAME = 'KNDNR'
             OR FIELDTAB_ENTRY-FIELDNAME = 'ARTNR'
    Actually sales order number and sales order item shouldn't be changed
    by derivation (therefore they are no valid target fields in standard)
    but if you need to fill them within an enhancement this modification
    will help you to define them as valid target fields. But this is just
    the technical frame so far; the logic from which table you'd like to
    derive the sales order number correctly depends on your implementation
    of the enhancement! I just want to ask you to be rather careful with
    the implementation of the exit so that the sales order number isn't
    changed in cases that shouldn't be concerned.
    Regards,
    Abhisek

  • Issue related to confirmation of Stock in Sales Order.

    Hi Gurus,
    I have an issue related to confirmation of Stock in Rescheduling.
    I have created a Sales Order for 10 Cases. I am using a Rescheduling Program for the confirmation of Stock
    in Sales Order. I have a stock of 100 Cases but still when i am putting that Order in Rescheduling Program for
    confirmation it is showing me Deficit of Stock.
    Also I have checked the Stock in MMBE it is showing Stock of 100 in Unrestricted Use.
    Also I have checked in MMBE the On Order Stock is 150.
    Please could you give me relation of On Order Stock in this.
    What role it plays in Availability Check.
    Is it because of On Order Stock I am not able to confirm the Sales Order Quantity.
    Awaiting for the resolution.
    Thanks & Regards,
    Sam.

    Hi Jameer,
    Thanks for your reply,
    I have replicated the same scenario in Quality it is working fine.
    I forget to add up one more thing in my last issue. There is Product Allocation in Material Master.
    When I go to Sales Order change screen and go to Schedule Line Level to Product Allocation screen
    it is showing the Stock. While same scenario in Production user is not able to confirm the Stock Quantity
    in Sales Order. I want to check the Alloted Stock against that Particular Customer in Product Allocation.
    I need the table and T Code so that I could do the detail analysis with respect to Product Allocation Stock.
    Please if you could help me out.
    Thanks & Regards,
    Sam Rock.

  • How to place a credit block on a Sales order

    Hi All,
    I am creating a scenario for testing in which I have to place a credit block on a Sales order. How do I do that. Please help.
    Regards,
    Shanu

    >
    Shanu Jain wrote:
    > Hi Ravi,
    >
    > Thank you for the response. If I want to get the error of credit block while creating the Sales order itself (when I am trying to save the Sales order) what settings we need to do besides making the credit limit zero for that customer in FD32?
    >
    > Regards,
    > Shanu.
    Hi Shanu,
    Just do simple debugging and change the field  value , it will automatically solve your purpose , with this there is no need to change the configuration etc.
    pls put the break point at ..
    1) Goto tcode se38. Here input SAPLVKMP and then press display.
    2) here you can see lot of includes , here pls double click on the include LVKMPF0A.
    3) Here you will see the code like..
    open values  > creditlimit
      IF SCC_SUM_OPENS GT SAV_KNKK_KLIMK.     :> place the break point here
        PERFORM MESSAGE_EXCEEDED_VALUE USING SCC_FLG_ORDER SCC_SUM_OPENS.
        MOVE CON_RC_NOK TO SCC_RC.
      ENDIF.
    4) And now do the sales order , the cursor reaches here , then in the debugging mode change the value of SCC_SUM_OPENS  to more than SAV_KNKK_KLIMK.
    5) And then press f8 , now you will get the desired result , ie your order will have a credit block.
    Hope this will help you.
    Regards,
    Vvieks

  • Sale order wise stock and Issuance of external procurement material.

    Transaction : ME21N and MIGO                                           
    Dear SDNites,                                             
    When i make a account assigned PO(with ref to sale order), then material comes and goes directly for consumption.                              
    I want that when the material comes after 105 movt., it should go to un-restricted stock and i can see in mmbe(or any other transaction) how much qty. has come against 
    which sale order, so that i can issue material also sale order wise by movement 231                                                                  
    Pls. help as to how to go about it.                                    
    Rgds.,                                                    Parag                                                     09815999582.

    Hi,
    When you are trying to create PO with reference to SO what is the item category used in SO, Use item category as "TAB" then SO will generate a Purchase Requisition. Convert this Purchase requisition in to Purchase Order, account assignment will be copied as "E Individual Customer stock" Sales order and Cost element will populate from PR.
    When you post the GR for above PO, the stock is managed as Special Stock indicator "E" sales order stock, in MMBE also it displays as SO stock.At the time of GR value is booked to SO and stock will be shown in MMBE.
    This stock is reserve for particular SO against which you have procured, but you can transfer post the same from SO stock to your OWN stock
    Hope this clarifies,
    Thanks & Regards,
    Sridhar

  • Stock ans sale order stock

    Dear All,
    What is difference b/w stock and sale order stock.and what is its impact if i use strategy 40.and what is the movement type to transfer stock to sale order stock

    What is B/W stock?
    Strategy 40: Planning with Final assembly.
    When you plan the sales order, MRP create receipts and when you do the GR, the stock will posted to to Unrestricted stock. PGI for the Sales order deliveruy is done from the Unrestricted stock. which can be used by any sales order.
    The Movement type to transfer the Stock from Unrestricted to sales order stock is 411E.
    if you use 20 or 50 startegy depedning on your requirement, the stock directly is posted to the Sales order stock, which cannot be consumed by any other sales order.
    Regards
    Ratan

  • Credit Blocked 3rd Party Sales Order confirm quantity change discrepancy

    Hi,
    I am facing the below 3rd party SO qty change issue. Please check and advise me.
    Step 1:
    Created one 3rd Party SO for item A - 10 qty.
    Step 2:
    PO is created with reference of PR number (item A- 10 qty).
    Setp 3:
                Again I am changing the SO item A qty from 10 to 20 (i.e. SO value is increased).
                Due Sales order value increase the credit check performed and due to customer credit
                limit the system shown Static Credit Block message (SO  blocked for Credit approval).
    Setp 4:
    I have saved the SO with the Credit Block message (still SO Credit Blocked).
    Issue :
    I have not released the Credit block in SO, Even the system has updated the SO confirmation qty as 20
    and subsequent PR and PO also changed from 10 to 20 qty.
    Regards
    Baskar

    See, the Credit Management System is designed to work in the SD side & not on the MM side.
    Once PR is created, it is updated every time Tird party Sales Order changed which is basic requirement.
    Once PR is created / updated, system (Credit Management) cannot the creation of PO & subsequent documents. This is becaus Credit Management is desinged to block creation of Sales Order, Delivery Document & PGI & nothing more.
    That is why I suggested you to go to Z-Development & apply a User Exit.
    Hope this clarifies.
    Thanks,
    Jignesh Mehta

  • To Put a Schedule line block while saving Sales Order

    Hi Experts,
    I have a requirement of putting an 'AH' block at schedule line. In the User exit USEREXIT_SAVE_DOCUMENT_PREPARE  i have coded it in the following manner.
         loop at xvbep where posnr = xvbap-posnr.
           xvbep-lifsp = 'AH'.
           modify xvbep index sy-tabix.
          endloop.
    However it is not putting the block when the Sales order gets saved.
    Please help me out.
    Regards,
    Anjali
    Edited by: Anjali Steeve on Oct 7, 2009 1:26 PM

    HI anjali,
    Try doin the same in this Form Routine: FORM USEREXIT_MOVE_FIELD_TO_VBEP  
    Guess it should work.
    Best Regards,
    Navin Fernandes.

  • Sales order wise stock revaluation

    hi
    in case of make to stock material we run standard cost estimate every month and revaluate the stock. ck11n ck40n
    in case is of make to order stock, is valuated at sales order cost estimate. Please explain how this sales order wise stock will be revaluated.

    Hi Imdad
    First of all, why do you want to revaluate at all? When it is a sales order stock, it should be valuated at the sales order cost estimate and it is valuated as such.. Now why would you like to revaluate it?
    Anyways, if you want to do this, then MR21 is the only option... You must specify both Material/Sales order in MR21 in order to revaluate it
    But, I would ask you to re-think on why would you want to do this.. Moreover, revaluating stock every month is not a good accounting practice...I hope you have taken your auditors in confidence
    Regards
    Ajay M

  • Stock sales order wise

    hi
       all 
      i m using make to order scenario i want the stock of the finished goods n there dependent requirements stock sales order wise as i have defined the startegy make to order for the finished goods n there dependent requirements n i have also used the special indicator in the BOM  but i have not used individual requirement in the material master of the dependent requirement 
      thanks and regards
      surendra

    Hi suredar
    If you use Strategy MTO 20 and run MRP in MD 50 for sales order with line items. Then automatically the stocks will be mainted as per the sales order. You cannot change the issue of dependent requirements.
    Thanks and Regards
    J . Saravan

Maybe you are looking for