Authority check for sales order and stock transport order

In my code i have a requirement to enter sales order and Stock transport order. However i want that a WM resource should not be allowed to enter sales order and an SD resouce should not be allowed to enter stock tranpsort order. Please suggest.

Hi,
Another way to solve this is create a Z table with field user name and Resource type and compare the user id ( sy-uname) with the Z table and allow accordingly.
In production environment controlling authorization in this approch is much easier.
Hope this helps.
Regards
Bikas

Similar Messages

  • Procurement cycle in third party order and stock transport order.

    please provide me in steps the procurement cycle in third party order and stock transport order.

    Hi,
    STO Process: -
    1.Create a vendor for the company code of receiving plant, using account group :0007 using T-Code XK01.
    2. Assign this vendor to Delivering plant
    Go to XK02 >Purchasing view>Extras>Add. Purchasing data>Plant
    3. Create internal customer with the sales area of the vendor. Go To XD01
    4. In Pricing procedure determination relevant to STO, assign document Pricing Procedure and customer pricing procedure appropriate for STO to get the pricing in the invoice.
    5. Maintain condition records for the relevant pricing condition.
    6. Some more setting for STO: Go to MM> Purchasing > Purchase Order > Set up STO > define shipping data for plants > Go to Receiving plant >assign customer here & Supplying SA (for billing) to Receiving plant here
    7. Go to MM > Purchasing > Purchase Order > Set up STO > define shipping data for plants > Go to Supplying plant and assign the sales area of receiving plant.
    8. Go to MM > Purchasing > Purchase Order > Set up STO > assign delivery Type & Checking rule
    Assign the delivery type to document type. In this case, Delivery type NLCC is assigned to Document type NB
    9. Go to MM> Purchasing > Purchase Order > Set up STO > Assign document Type, One step Procedure, Under delivery tolerance
    Assign the document type NB to supplying plant and receiving plant
    10. After all settings , Create the STO using T-Code:ME21N and maintain pricing conditions of freight and Save.
    11. Create Delivery :VL10G
    Click on the Background Button after selecting line item
    A message is flashed : See log for information> next Click on Log for delivery creation Button >click on line item>click on document button to get Delivery document No
    12. Picking, PGI:VL02N
    13. Billing:VF01
    Save the document and its done
    14. J1IIN - Outgoing Excise Invoice
    15. MIGO - Goods Receipt against outbound Delivery
    16. J1IEX - Capture & Post Excise Invoice
    Pricing configuration for STO: -
    In SPRO > MM > Purchasing > Conditions > Define Price Determination Process > Define Schema Determination > Determine Schema for Stock Transport Orders > Here assign Calculation Schema "RM2000" i.e. Stock Transfer Document to Schema Grp Pur. Org, STO Type (For e.g. UB) and Supplying Plant.
    Calculation Schema "RM2000" has condition type P101 which will pick up the MAP of supplying plant automatically during creation of STO in ME21N ("Conditions" Tab).
    You can create new freight / delivery cost conditions in M/06 and assign in pricing procedure "RM2000" in M/08 and also assign the Accrual Key to this and do the Account Determination for this Accrual Key in OBYC
    At the time of PGI, following accounting entry will get generated;
    Stock A/c - Dr - 110 INR (Receiving Plant)
    Stock A/c - Cr - 100 INR (Supplying Plant)
    Freight Clearing A/c - Cr - 10 INR (Supplying Plant)
    Third Party Process Flow: -
    1) MM01 - General Item category Group should be BANS in basic view of material master.
    2) VA01 - Creation of sales order with VA01 transaction in SD module
    3) When sales order is created system automatically creates a PR for the material with item category as "S"--> Third Party Item
    4) ME21N - Directly PO with item category as "S" and delivery address as customer address
    5) MIGO - Statistical GR by MM ( When it is made goods are received and delivered)
    6) MIRO - Invoice by MM for vendor
    7) VF01 - Billing by SD on Customers

  • Diff between stock transfer order  and stock transport order

    pls any body tell me diff between stock transfer order  and stock transport order .is both are use for same pursose?pls explain

    Check
    very imp stock transfer and stock transport order

  • APO Process Order and Stock Transport Order

    Using APO Process and Stock Transport Orders are generated. Plant A generates the orders so that plant B can make and ship the product back to plant A against the stock transport order using VL10b.
    I see the stock transport order and process order in R/3. But when trying to ship the product to plant A, vl10b does not list any purchase orders?
    How do you associate a Process Order with a transport order?
    Something to do with the time horizons?

    I hope you have resolved this query at your end. In case yes, Please share your observations

  • Planned order conversion to Process Order and Stock Transport Order

    Hello Friends,
    Help me to setup the below scenario
    We have an requirement wherein MAT1 can be inhouse produced or can also get stock from other plant via stock transport order.
    For which in Material master I have configured
    MRP 2 view
    Procuremrent Type - X
    Special Procurement - 40 (wherin the splly plant is maintained)
    MRP 3 view
    Strategy group - 40 (as it is planning with final assembly)
    But when i run MRP system created Planed orders for PIRs. Selecting Planned Order conversion only Purchase req tab is available we do not have an option to convert to production order.
    Kindly help me correcting the settings, so that i should be in a position to convert planned order either to process order or Stock transport Purchase requisition.
    Thanks and Regards,
    Chandra

    Hi Chandra,
    Stock transfer is only possible with procurement type 'F'. when you take spl.procurement type 40, its a combination of F(procurement type) and U (Spl.procurement). it will over write the procurement type ('X' in your case) in material master. that is the reason u r getting only pur req.
    if you know the proportion quantity i.e how much inhouse and how much stock transport, then use quota arrangement.
    or
    don't use any spl procurement key. define the materials in both the plants. when converting planned order to pur req. manually assign supplying plant and item category 'U'. try this.
    Thanks & regards
    Dilip

  • Tables for delivery and stock transport orders

    Hi Members,
    I have a requirement where i have to display (in a report output) a requirement quantity of deliveries and stock transport orders which are displayed in MD04 transaction for particular material and plant.
    I don't know which tables these quantities sit into.
    If you know please help.
    Points will be suitably rewarded.
    Reagrds,
    Boby

    >
    Boby wrote:
    > Hi Members,
    >
    > I have a requirement where i have to display (in a report output) a requirement quantity of deliveries and stock transport orders which are displayed in MD04 transaction for particular material and plant.
    > I don't know which tables these quantities sit into.
    > If you know please help.
    > Points will be suitably rewarded.
    >
    > Reagrds,
    > Boby
    if you only have to display deliveries and stock transport orders you can take LIKP and LIPS for the deliveries and LTAK and LTAP for transport orders.
    for all the other elements displayed by MD04 we would have to know about your setup: are you using dispo-areas (which would populate tables MDMA ...) so in that case please provide more information.

  • How to avoid purchase req and stock transport order to take part in MRP.

    Please suggest how to avoid purchase req and stock transport order to take part in MRP.

    hi,
    check the settings for the MRP type...there you need to show which doc will be taken into considerations...
    SPRO >> MM >> CBP...
    Under CBP check for the MRP settings where it is placed(check under master data settings)...and check for the indicator for PR's and STO's release orders under tab "Additional external req. in the reorder point planning"..
    Regards
    Priyanka.P

  • Very imp stock transfer and stock transport order

    hi folks,
    please explain me in detail the difference between stock transfer and  stock transport order.
    regards,meena

    Hi:
    Stock Transfer is the physical movement of material from one location to another location,stock transport order is one way of doing the stok transfer.
    Stock can be transfer between plant to plant,company code to company code,storage location to storage location.
    However there are different procedures for stock transfers:
    1.Stock Transfer using one step procedure: Here Goods issue and Goods receipts happens in single step.
    2.Stock Transfer using Two stage procedure:The two-step procedure allows you to monitor the stocks in transit. After the goods issue is posted at the issuing point, the stock appears "in stock transfer" at the receiving point and is managed as such in the system.
    3.Stock Transport Order:
    This is transfer of material from one plant to other plant or co.code to co.code via SD route.
    Here a.receiving plant raise the stock transport order on issuing plant.
           b. Issiuing plant creates the outbounmd delivery against STO and PGI.IF it is in India,then excise 
               invoice creation.
           c. Receiving plant post the goods receipt against outbound delivery and post the excise ivoice.
           d. Invoice verification.
    The main advantage of Stock Transport order is you have a more control because you can have  purchasing document behind itand you can check the PO history which would gives all the details for Delivery as well GR documents.
    However ftor STO via SD you need to configure the set up stock transport order in MM>Purchasing>Purchase Order-->Set Up Stock Transoport order.
    Also on a data maintanace side you need to maintain the custmor and vendor relations.
    Hope this would helps you.
    Cheers
    Rahul
    Awards plz.if helpful.

  • Authority-Check for Sales Document Type

    Hi All...
    I would like to incorporate Authority-Chack for the field Sales Document Type "TVAK-AURT"...
    Can any one give me the sample code or exact code..?
    I have written Authority-check for Sales Organization as follows...
    authority-check object 'V_VBAK_VKO'
                     id 'VKORG' field i_sales-vkorg
                     id 'VTWEG' field '00'
                     id 'SPART' field '00'
                     id 'ACTVT' field '03'.
            if sy-subrc ne 0.
            delete i_sales.
    BUT HOW TO WRITE FOR V_VBAK_AAT..??

    Please check object: <b>V_VBAK_AAT</b> for the same.
    EG:
    authority-check object 'V_VBAK_AAT'
    id 'AUART' field L_AUART
    id 'ACTVT' field '03'.
    Kind Regards
    Eswar
    Message was edited by: Eswar Rao  Boddeti

  • Difference between Sales Order and Stock Transfer Order(STO)

    Hi Gurus,
    What exactly is a diference between Sales Order and STO?
    Thanks and Regards
    Rohit

    Hi,
    Sales Order Stock
    Sales Order Stock are stock with Special Stock type E. It can fall into the usual stock categories such as unrestricted, blocked etc. but "belongs" to a sales order.  For example, you create a sales order for a part and assign a sales item category that generates an individual requisition, the requirement has an account assignment linking it to the sales order schedule line, you convert that requisition to a Purchase Order.
    When you receive the Purchase Order, the stock is placed in sales order stock. It will show against the sales order/sales order line. It can only be delivered against that sales order line. Any availability check etc for that material on any other sales order will not take it into account as it is not available except to the sales order line the stock is assigned to.
    Stock Transfer Order
    the cross company Stock Transport Orders can be done by:
    - Configure using transaction OMGN
    - Depending upon the sending and receiving plants, maintain sales organization and customer data in customizing.
    - Maintain the supplying plant as a vendor and attach the plant to the vendor in the Vendor Master.
    - Material type has to be HALB or HAWA.
    - Ensure that the company with sales Organization has a plant to take care of stocking.
    - The PO used is NB and not Stock Transfer PO.
       Configure SD for inter-company billing to enable picking up the pricing procedure for billing.
    - Carry Out delivery through process delivery due list and billing through process billing due list.
    Otherwise, You need  to configure your Stock Transport Order settings for your Cross-Company:
    Business Transaction to work.
    1. Customer No. for the Goods Receiving Plant - OMGN
    2. Availability Check- Checking Rule (if necessary) - OMGN
    3. Assign a Delivery Type for the Delivering Plant - OMGN (for Stock Transport Orders, NLCC)
    4. PO type (which i belive you have done) - OMGN
    5. Assign Vendor No. to the Supplying Plant (done) - VK02
    6. Assign Customer No. to the Purchasing Plant for the Inter-Compnay Invoice (but you need to assign this to the Sales Organization pre-assigned to the Purchasing Plant),
    IMG-SD-Billing-InterCompany Billing-Define Internal Customer No. by Sales Org
    ***and by the way for the Invoice to work between Cross-Compnay Plants, you need also to have a Sales Org for the Supplying Plant and a Pricing Determination Procedure.
    REgards,
    vineela

  • Cross Sales & User exits & stock transport orders

    Hi all,
    <b>
    Can anyone tell me about Cross Sales & User exits ?
    Also what is stock transport orders ? Can i get some config. steps for that ?</b>
    My id : [email protected]
    Rajarshi

    Hi,
    Mail order catalog retailers frequently use cross selling to increase sales. When a customer orders an article over the phone, the order taker can suggest additional articles that the customer might buy. For example, if the customer orders a VCR, you might suggest purchasing some blank tapes; for a cellular phone, a leather carrying case.
    The sales transaction takes place as normal: The customer chooses an article and the order taker enters it on the sales order screen. The order taker can press Enter after each article, or wait until the customer has finished selecting the article he or she wants.
    If the order taker presses Enter after entering the data for one article, then a dialog box appears automatically, displaying a list of articles to be suggested to the customer. These cross selling articles are ones that pertain specifically to the purchased article.
    If the order taker waits to press Enter until the customer has finished ordering, then the dialog box appears automatically, this time showing all of the articles in the sales order, along with their corresponding cross selling articles.
    The articles that appear in the cross selling dialog box always depend on which articles are in the sales order. If you want to have the system suggest articles based on the customer's past purchasing history or other factors, see Dynamic Product Proposal in the standard SD documentation.
    The cross selling dialog box displays the following information:
    Article number
    Description
    Sales unit of measure (each, 3-pack, etc.)
    Price per unit of measure (calculated either by the standard R/3 pricing scheme or by a custom pricing scheme you have defined)
    Availability check
    Delivery flag (that is, whether the cross selling articles can be delivered independently of their corresponding main articles in the sales order, or whether the cross selling articles can only be shipped either together with or after the main articles have been shipped)
    To set up cross selling, you must make the following settings in Customizing:
    Create the conditions tables, access sequence, and calculation schemes for determining cross selling articles, since the cross selling function relies on the conditions technique. (Alternatively, you can use the analysis discussed in "Activities" below to create the data automatically.)
    Create a cross selling profile with the following attributes:
    Determination of cross selling articles via function module
    Price calculation scheme
    Scheme using conditions technique
    Flag indicating how the cross selling dialog is to appear
    Flag indicating whether an availability check is to be performed
    Assign the cross selling profile to a sales area, document scheme, and customer scheme.
    USEREXIT
    Userxits allow us to add our own functionality to SAP standard program
    without modifying it . These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP.
    Reward ipoints if useful
    Regards,
    Amrish Purohit

  • BAPI for cross company-code stock transport order

    Hello experts,
    I need to create cross company-code stock transport orders, is there any bapi that can perform this? If you guys have some sample code it will be great.
    PD: i found the bapi BAPI_PO_CREATE1, but i don't really know if it'll work for this requirement.

    Hi Team,
    I have created two company codes 5000 and 5005 and then assigned the plants 5000 and 5005 to company code respectively.
    Here my supplying plant is 5005 and receiving plant is 5000.
    Also I have created a vendor 1000 with account group 0007 and assigned the supplying plant 5005 to it.
    1. How do we assign sales and distribution (SD) organizational units to the supplying plant?
    2. Whether we have to create customer master (using Tcode XD01) for the supplying plant?
    3. While creating the customer master, the company code and sales area (sales organization, distribution channel, division) must be of supplying company code / plant?
    4. Whether we have to create customer master for receiving plant?
    5. While assigning the customer master to plant, which sales area info (sales organization, distribution channel, division) has to give?
    Please give the detail from customer master creation and assigning it to plant.
    Thanks in advance,
    Regards,
    Shyjith
    REPLY -
    Hi Shyjith,
    1. Create vendor 1000 as internal vendor in company code 5000 & assign supplying plant 5005 in additional data in Purchasing tab.
    2. Create receiving plant as 5000 as internal customer in company code 5005 & respective sales area of 5005 , if you have no other numbre range for internal customer.
    3.In SPRO do the following settings,
      a.efine shipping data for both receiving & supplying plant --- SPRO - MM -- Purchasing -- Purchase order --- Set up stock transport order -- define shipping data for plants
       b. Assign delivery type as NLCC to supplying plant 5005.
    Craete Purchase order with vendor as 1000 & plant in purchase order as 5000 ( If not defined any external number for customer)
    Please note if you have defined external muber for customer 5000, the n you have to define that number, when you will be defining shipping data for receiving plant as customer.
    Thanks,
    Charu

  • Link between batch stock and stock transport order no.

    hello all,
    my client want the report for stock in hand against batch and sto no..in standard tcode mb52(stock in hand) we can see the stock against batches.but i want the report for which sto no. stock is recieved corresponding to batch.
    pls tell me from which table and field i should pick data for stock against sto no.
    thanks in advance for ur valuable input
    regards
    simran
    caution-- we are using two step procedure with stock transport order for transferring the material between plants

    S

  • Account Postings in case Subscontarcting and Stock Transport Order.

    Hi All,
    Please help in understanding what account keys(G/L Accounts ) will be hit in the follwoing scenerios:
    1. Standard Subscontarcting Process during GR.
    2. Stock Transport Order , Delivery Type NL
        Movement Type , 641 and 101.
    3. Stock Transport Order , Delivery Type NLCC
        Movement Type , 643 and 101.

    Hi
    1. Standard Subscontarcting Process during GR:
    For eg) You are giving Components A & B to the SC-Vendor....and Getting back the Finished Product "C" from the SC-Vendor....
    Now during GR...If you have activated Price Diff. account for SC Materials for your Plant  in  OLMB -
    > GR -
    > Activate Price Diff. Acc. for SC Material for your Plant....then foll. posting lines will be created..
    Stock Acc. of F/G Product "C".... ..      BSX          Debited 
    GR/IR Clearing Acc.              .......       WRX         Credited
    SC-Vendor service Charges  .........       FRL          Debited
    Stock Acc.of Components A & B..........BSX          Credited
    Change in Stock Acc. of Comp. A&B....GBB-VBO  Debited(+)
    Change in Stock acc.of F/G Product "C".....BSV    Credited(-)
    Price Diff Acc......................................PRD   As per situation
    2. Stock Transport Order , Delivery Type NL
    Movement Type , 641 and 101:
    At Supplying Plant( During movement type:641)
    Stock Account of Supp.Plant.....BSX Credited
    Stock Acc. ofb Rec. Plant ........BSX Debited
    If you maintain Std. Price for the material at Receiving Plant and if there is any Price difference...then Price Diff.Acc. will be triggered....ie) AUM....
    At receiving Plant( for M.type:101) there will not be any acc.documents gennerated...
    3. Stock Transport Order , Delivery Type NLCC
    Movement Type , 643 and 101.
    At Supplying Plant(M.Type:643):
    Stock Acc.......................................BSX  Credited(-)
    Cost of Goods Sold Acc...................VAX  debited(+)
    At Receiving plant( M.Type:101):
    Stock Acc.......................................BSX Debited
    GR/IR Clearing Acc..........................WRX Credited(-)
    Reward if useful
    Regards
    S.Baskaran

  • Commercial Invoice and Stock Transport Order

    Hello Experts,
    My client is using stock transport orders which sometimes results in cross border goods movement. I am not able to find any functionality for creating commercial invoices to be used for these types of shipping.
    Any ideas?
    rgds
    GAR

    Hi Gar,
    Usually when there is a crossing of borders, it is a movement between 2 different companies code, therefore the intercompany purchase is the usual flow.
    If you mean that the flow is between plants of the same company code between different countries, maybe you are talking about "Plants abroad" functionality.
    http://help.sap.com/saphelp_45b/helpdata/en/34/60b1a0ae724effe10000009b38f91f/content.htm
    Previously, the plants of a company code had to belong to the country of that company code.
    As of Release 4.0A, it is possible to deviate from this rule for European company codes with European plants.
    I never had to use this functionality at a customer site, but that sounds like your requirement
    Also allows internal billing document for intrastat reporting, so feel free to evaluate!
    Best Regards
    Franck Lumpe
    Freelance SAP Consultant

Maybe you are looking for

  • Connect sequence with Cisco VPN & BT FON

    I have an issue with the connection sequence using Cisco VPN & BT Openzone/FON I cannot connect the VPN until I have logged in to BT FON/Openzone This would be ok, but I use a tabbed browser & it is trying to connect all tabs at once over an unsecure

  • I inadvertently created a certificate and can't get rid of it!

    I inadvertently created a 'Terence Watts's CA' certificate in my keychain (long story, boring, not necessary ) which is not trusted and is going out with all my emails with a 'not trusted' message... I deleted it - several times - but the darn thing

  • How to identify a change on parameters value using match code

    Hi everybody, I would like to know if it's possible to identify automatically a change on a parameters using match code. For example : In my wiew i set XXX in  my parameters, so i execute XXX treatment. Now if i change this value to YYY, i would like

  • Where did my Nik, Topaz and onOne plugins go?

    I just upgraded to CS6 from CS5 on a iMac running OSX 10.7.4. When I opened the CS6 application, none of my Nik, Topaz or onOne plug-ins showed up in the usual places (automate, filters, plug-in, etc.). How do I access them in CS6? I have not yet uni

  • How do i re-write

    Hi ! If i were to re-write this query with joins, how would i do it ? Anyone ? DELETE FROM XCM_VO01_VEHOFINT VOIA WHERE VOIA.COUNTRY_ISO3_C = 'DEU' AND VOIA.CUST_BRAND_C = 'F' AND VOIA.CUCON_CNTCT_ST_S > to_date('2005-10-24', 'YYYY-MM-DD') AND EXISTS