cancel
Showing results for 
Search instead for 
Did you mean: 

stock transfer order

Former Member

hi all,

Can anybody explain in breif (step by step) about *STOCK TRANSFER ORDER"

Thankyou in advance

bhavana

Accepted Solutions (1)

Accepted Solutions (1)

ranjeetrajendra_jain
Active Contributor

Hi Bhavana

Check the following link for explanations.

Stock Transfer

Steps:

For Stock transfer between two storage location use MB1B with movement type 311.

For stock transport order between two plants of the same company code with one step

1) Create a purchase order - ME21N

2) Create a outbound delivery - VL10D

3) Create a Post Goods Issue - VL02N

The two step process is similar to the one step process with the additional step of creating a goods receipt.

Further:

Whenever you need to transfer the materials from one plant to another plant belonging to one company or belonging to two company code stock transfer order is raised by the delivering company.

STO:

Transfer of goods from one location to another location,it may be between plants within the same company code or in different company code's plants.

within the company code, bet plants, receiving plant will raise the STO in Supplying/issuing plant-ME21n,

Supplying plant will deliver the goods to receiving plants , then we need to pick n post the Goods Issue-VL02n, nw when we can observe that the STO qty will be added into receiving plant and reduced in Delievering plant.

To do this, we need do prior customizatin in SPRO-IMG,-material should be created in both plants( receiving & Supplying)

-maintaing the stock only in supplying plant

-create a dummy customer in supplying plant's sales area(if u have one sales area, create in tat comp code n sales area)

-Assign this customer number to receiving plant's details along with the sales area,

-Assign the STO doc type(UB) to Supplying plant, along with checking rule

-Assign the Del type (NL/NLCC) to Supplying n receiving plant.

You create a STO from MM route i.e., ME21N and then enter the details of the supplying,receiving plant and the materials.Once you complete the STO,then it goes for a delivery followed by an intercompany invoice.

Remember that the Material should be there in BOTH supplying and receving plant.

Internal Procurement (Stock Transfer With Delivery):

In a company, goods movements do not only occur in the form of goods receipts and goods issues. Depending on the organization of the company (for example, decentralized storage) and its sales policy, internal stock transfers might also be necessary.

The stock transfer with delivery is a plant to plant scenario. You are posting a goods issue in plant BP02 and a goods receipt in plant BP01.

This type of stock transfer can only be carried out from unrestricted-use stock of the issuing plant to unrestricted-use stock of the receiving plant.

You post the placement into storage at the receiving plant in a second step. Only then is the event completed and the transferred quantity part of unrestricted-use stock.

Functions:

Creating a Planned Independent Requirement

Creating a stock transport order in plant BP01

Generating a delivery in plant BP02

Picking of the material and posting the goods issue in the delivering plant

Posting the goods receipt in the receiving plant

Note: The quantity posted from stock is first of all managed as stock in transit of the receiving plant. Only once the goods receipt has been posted is the quantity posted to the unrestricted-use stock of the receiving plant. This enables the quantity "on the road" to be monitored.

The transfer posting is valuated at the valuation price of the material in the issuing plant.

Delivery costs can be entered in the stock transport order.

Internal Procurement (Stock Transfer without Delivery):

The cross-plant, internal procurement of materials can be carried out within one company code (intercompany) or by using several company codes (cross company). This process can be dealt with using standard functions such as material requirements planning, purchase requisition, stock transport order, transportation planning and the handling of internal deliveries.

The following functions are provided to support the Internal Stock Transfer without Delivery:

Create Stock Transport Order

Post goods issue for stock transport order

Post goods receipt for stock transport order

Note: Quantity "on the road" can be monitored

Delivery costs can be entered in the stock transport order

Internal Procurement (Cross-Company Stock Transfer):

You post a stock transfer from company code to company code the same way as you post a stock transfer from plant to plant, except that both plants belong to different company codes.

During the stock transfer, two accounting documents are created in addition to the material document:

-An accounting document for the removal from storage at the issuing company code

-An accounting document for the placement into storage at the receiving company code

The stock posting is offset against a company code clearing account.

To display the value of the cross-company-code stock in transit with a report, choose Environment à Stock à Stock in transit Cc.

The following functions are provided to support the cross company stock transfer:

Create sales order to customer

Run single-level MRP

Creating a purchase order

Creating delivery

Picking and post goods issue

Posting goods receipt

Create inter-company billing document

Invoice receipt

Create delivery, picking and post goods issue to customer

Billing

Notes: The issuing plant enters a delivery for the stock transport order and a billing document. This is an inter-company billing document (billing type YBIV). Pricing takes place as normal.

When the goods arrive, the receiving plant posts a goods receipt for the purchase order. The unrestricted-use stock increases and an accounting document is created.

The invoice is checked with reference to the purchase order.

Stock transport order processing in receiving plant

Delivery processing in supplying plant Picking batch determination in delivery Goods issue processing in the supplying plant Billing processing in supplying plant

Goods receipt processing in receiving plant Invoice verification processing in receiving plant Purchase order monitor processing in receiving plant

Stock Transport Order:

http://help.sap.com/saphelp_47x200/helpdata/en/4d/2b911d43ad11d189410000e829fbbd/content.htm

http://help.sap.com/saphelp_47x200/helpdata/en/4d/2b917843ad11d189410000e829fbbd/content.htm

http://help.sap.com/saphelp_47x200/helpdata/en/4d/2b918543ad11d189410000e829fbbd/content.htm

Former Member
0 Kudos

hi

This is my senario can u help me out in mapping this in SAP

1) Material transfer to branch from factory and then delivered to customer.

bhavana

Answers (3)

Answers (3)

ranjeetrajendra_jain
Active Contributor
0 Kudos

Bavana if you need a complete document iwth configuration and business setting post you email id

Former Member
0 Kudos

bhavanasharma09@gmail.com

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi

STO PROCESS

Stock Transfer Orders comes into picture when the stock is moving / Transferring between two different plants with two Different Company Codes or Stock Transfer between two plants with One Company Code the Difference are given below:

P.O Order types and Delivery Types

STO: - Stock Transfer Order – Intra Company

Stock Transfer between Two Plants with One Company code.

The Purchase Order Type is Used in this case is "UB".

And the Delivery Type Used here is "NL".

Goods Movement type: 641

Item Category in delivery is NLN

STPO: - Stock Transfer Purchase Order – Inter Company

Stock Transfer Purchase Orders between Two Plants with Two Different Company Codes.

The Purchase Order Type is Used in this case is "NB".

And the Delivery Type Used here is "NLCC".

Goods Movement type: 643

Item Category in delivery is NLC

A. Configure Intercompany Stock Transport Order

Material should exist in both the plants (Delivering & Ordering),

Internal customer should be assigned to the ordering plant ( MM -> Purchasing -> Purchase Order -> Setup stock transport order -> assign the internal customer to the ordering plant and assign the Sales area of the internal customer.

Assign its Sales area to the delivering plant

Assign the document type and Delivery type NB and NLCC

Assign the Supplying plant --> Receiving Plant --> NB

Take the delivering plant and assign the sales area.

Vendor master has to be created and assign the supply source (Delivering Plant).

Create a purchase order ME21N ---> Save

Delivery VL10 G ---> Calculation rule (appropriate) --> Assign the purchase order number here and execute.

Select the Delivery creation line and do the back ground process.

Start the log display and see the delivery document number by the documents button

Goto VL02N --> do picking and PGI --> Then do the MIGO with respect to the delivery document.

Billing (Intercompany pricing conditions should be set).

AND

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 believe 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-Company 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-Company Plants, you need also to have a Sales Org for the Supplying Plant and a Pricing Determination Procedure

--

INTERCOMPANY PRICING:

PI01 Intercompany: fixed amount per material unit

PI02 Intercompany: percentage of the net invoice amount

These condition types specify that the price charged by the delivering plant to the sales organization is shown as a statistical value in the sales order and an effective charge in the internal invoice.

The condition records you create and maintain for intercompany billing are the same kind of records that you create for pricing in general.

IV01 Inter-company Price ERLOS Revenue

IV02 Inter-company % ERLOS Revenue

STO CONFIG:

The following steps have to be followed in order to configure stock transport order between two plants.

1. Create a vendor for the Company code of the receiving plant using account group 0007 via T-Code XK01.

2. In the purchasing data view assign the supplying plant and the schema group

3. Create customer with the sales area of the vendor.

4. The shipping conditions, the delivering plant and the transportation zone determine the route in the STO.

5. In the pricing procedure determination relevant to the STO assign document pricing procedure and customer pricing procedure to get the pricing in the invoice.

6. Maintain condition records for pricing condition.

7. Maintain carrier as a partner in the customer master.

8. In OMGN select the supplying plant and assign the company code and sales area. Similarly select the receiving plant and assign the company code and sales area (The company code to which the plant is assigned to).

9. Assign the delivery type and checking rule to the document type.

10. And finally, assign the purchasing document type to the supplying plant and the receiving plant.

11. Create the STO using T-Code ME 21N and save.

12. Check for release strategy if any and release using T-Code ME 28.

13. Create delivery in background using VL10G.

14. If delivery is created, it is an indication of correct configuration and master data creation.

Stock transfer between two plants in different company codes is known as inter company stock transfer.

Material should be maintained in both supplying and receiving plant MM01

Stock should maintain only in supplying plant MB1C

Create receiving plant as a customer in supplying plants company code and sales area XD01

Assign this customer number in receiving plant details OMGN

Assign supplying sales area in supplying plant details OMGN

Assign delivery type NB for in combination of supplying/ receiving plants.

Create STO ME21N

As it is normal there in the item details we should get shipping date i.e. customer number

Go for Delivery VL10B

Shipping point *****

Select PO go for execute

then select the delivery then go for delvy ............create delvy,,,, delvy number generated.

Goods Issue VL02

Delvy doc **********

Click on picking

enter the picking qty

Click on PGI

in the mean time check in the PO history you will get the details

Goods receipt MIGO

Stock overview the stock will be updated....

Check the below link

http://help.sap.com/saphelp_47x200/helpdata/en/4d/2ba31643ad11d189410000e829fbbd/frameset.htm

Stock transfers that include deliveries and billing documents/invoices are only possible between plants belonging to different company codes.

If you want to carry out a cross-company-code stock transport order with delivery but without a billing document, you must set the Relevant for Billing (data element FKREL) indicator in Customizing of the item type to "blank" (Not relevant for billing).

The following applications are involved in this type of stock transfer:

• Purchasing (MM-PUR) in entering the order

• Shipping (LE-SHP) in making the delivery from the issuing plant

• Billing (SD-BIL) in creating the billing document for the delivery

• Inventory Management (MM-IM) at goods receipt in the receiving plant

Invoice Verification (MM-IV) at invoice receipt in the receiving

Transfer of goods from one location to another location, it may be between plants within the same company code or in different company code's plants.

within the company code, but plants,

receiving plant will raise the STO in Supplying/issuing plant-ME21n,

Supplying plant will deliver the goods to receiving plants ,

then we need to pick n post the Goods Issue-VL02n,

now when we can observe that the STO qty will be added into receiving plant and reduced in Delivering plant,

To do this, we need do prior customization in SPRO-IMG,-

material should be created in both plants( receiving & Supplying)

-maintain the stock only in supplying plant

-create a dummy customer in supplying plant's sales area(if u have one sales area, create in tat comp code n sales area)

-assign this customer number to receiving plant's details along with the sales area,

-Assign the STO doc type(UB) to Supplying plant, along with checking rule

-Assign the Del type (NL/NLCC) to Supplying n receiving plant.

Reward if useful.

Edited by: Subhajeet Behera on Feb 12, 2008 10:58 AM

Former Member
0 Kudos

Hi Subhajeet Behera ,

Thanks for your needful information. Can u send the same in a flow chart format.

Thanks in advance

bhavana

Former Member
0 Kudos

*&----


*

*& Report ZMAT112 *

*& *

*&----


*

*& *

*& *

*&----


*

REPORT ZMAT112 .

*----


*

  • MODULE : Material Management

*----


*

  • Objective : Report for PR Stock Transfer . *

  • *

  • This Report is generated to know the PR *

  • for StockTransfer Item Category Between *

  • supplying and Receiving Plant . *

  • *

  • Program : Updates Tables ( ) Downloads data ( ) *

  • Outputs List ( X ) Uploads data ( ) *

  • *

  • Technical Spec No *

  • Date Created 29.03.2005 *

  • Author *

  • Location *

  • LDB ..... *

*----


*

  • External Dependencies *

*----


*

  • *

*----


*

  • Amendment History *

*----


*

  • Who Change ID Reason *

  • ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ *

  • XXXXXXXXX AADDMMYYYY Where XXXX = Developers Name................. *

  • AA- Developers Initial ................................ *

  • ....................................................... *

  • ...................................................... *

  • ...................................................... *

*----


*

TYPE-POOLS : slis.

TABLES : eban,"Purchase Requisition

t001w."Plants/Branches

DATA : BEGIN OF it_prs OCCURS 0,

w_selcol,

banfn LIKE eban-banfn,

bnfpo LIKE eban-bnfpo,

badat LIKE eban-badat,

matnr LIKE eban-matnr,

txz01 LIKE eban-txz01,

mtart LIKE ekpo-mtart,

menge LIKE eban-menge,

meins LIKE eban-meins,

bsmng LIKE eban-bsmng,

menge1 LIKE eban-menge,

lfdat LIKE eban-lfdat,

afnam LIKE eban-afnam,

reswk LIKE eban-reswk,

werks LIKE eban-werks,

END OF it_prs.

DATA : ls_layout TYPE slis_layout_alv,

it_fcat TYPE slis_t_fieldcat_alv ,

wa_fcat TYPE slis_fieldcat_alv,

it_sort TYPE slis_t_sortinfo_alv,

ls_sort TYPE slis_sortinfo_alv,

it_events TYPE slis_t_event ,

ls_event TYPE slis_alv_event .

DATA : lh TYPE slis_t_listheader,

ls TYPE slis_listheader.

DATA : w_f_name(20),

fvalue(20),

menge(17),

menge1(4).

DATA : w_var TYPE i VALUE 1.

DATA : l_date(10).

DATA : l_date1(20).

DATA : l_repid LIKE trdir-name.

l_repid = 'ZMM001_PR'.

SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.

SELECT-OPTIONS : s1_werks FOR eban-reswk ,

s2_werks FOR eban-werks .

SELECT-OPTIONS : s_badat FOR eban-badat.

SELECTION-SCREEN END OF BLOCK block1 .

SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-002.

*

PARAMETERS : p_pstyp LIKE eban-pstyp." DEFAULT '7' MODIF ID 1.

SELECT-OPTIONS :s_statu FOR eban-statu NO INTERVALS

NO-EXTENSION.

SELECTION-SCREEN END OF BLOCK block2 .

AT SELECTION-SCREEN.

SELECT SINGLE * FROM t001w INTO t001w WHERE

werks IN s1_werks.

IF sy-subrc <> 0.

MESSAGE e002(zbdc).

ENDIF.

SELECT SINGLE * FROM t001w INTO t001w WHERE

werks IN s2_werks.

IF sy-subrc <> 0.

MESSAGE e002(zbdc).

ENDIF.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN .

IF screen-group1 = '1'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

START-OF-SELECTION.

ls-typ = 'H'.

ls-info = 'PR Stock Transfer'.

APPEND ls TO lh.

ls-typ = 'S'.

WRITE: sy-datum TO l_date USING EDIT MASK '__/__/____'.

CONCATENATE 'DATE :'(007) l_date INTO l_date1 SEPARATED BY space.

ls-info = l_date1.

APPEND ls TO lh.

CLEAR it_prs.

REFRESH it_prs[].

CLEAR it_fcat.

REFRESH it_fcat[].

PERFORM f002_fieldcat.

PERFORM f003_getdata.

END-OF-SELECTION.

IF it_prs[] IS INITIAL.

MESSAGE i000(8i) WITH 'No data Found'(m01).

EXIT.

ENDIF.

PERFORM f005_layout.

PERFORM f004_processdata.

*&----


*

*& Form f002_fieldcat

*&----


*

  • text

*----


*

  • --> p1 text

  • <-- p2 text

*----


*

FORM f002_fieldcat .

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'PAGNO'.

wa_fcat-seltext_m = 'Page Number'.

wa_fcat-no_out = 'X'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'BANFN'.

wa_fcat-ref_fieldname = 'BANFN'.

wa_fcat-ref_tabname = 'EBAN'.

wa_fcat-seltext_m = 'PR Number'.

wa_fcat-key(1) = 'X'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'BNFPO'.

wa_fcat-ref_fieldname = 'BNFPO'.

wa_fcat-ref_tabname = 'EBAN'.

wa_fcat-seltext_m = 'PR Item'.

wa_fcat-key(1) = 'X'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'BADAT'.

wa_fcat-ref_fieldname = 'BADAT'.

wa_fcat-ref_tabname = 'EBAN'.

wa_fcat-seltext_m = 'Requisition date'.

wa_fcat-key(1) = 'X'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'MATNR'.

wa_fcat-ref_fieldname = 'MATNR'.

wa_fcat-ref_tabname = 'EBAN'.

wa_fcat-seltext_m = 'Material No'.

wa_fcat-key(1) = 'X'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'TXZ01'.

wa_fcat-ref_fieldname = 'TXZ01'.

wa_fcat-ref_tabname = 'EBAN'.

wa_fcat-seltext_m = 'Material Description'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'AFNAM'.

wa_fcat-ref_fieldname = 'AFNAM'.

wa_fcat-ref_tabname = 'EBAN'.

wa_fcat-seltext_m = 'Requistion Nr'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'MENGE'.

wa_fcat-no_zero = 'X'.

wa_fcat-ref_fieldname = 'MENGE'.

wa_fcat-ref_tabname = 'EBAN'.

wa_fcat-seltext_m = 'Quantity'.

wa_fcat-do_sum = 'X'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'MEINS'.

wa_fcat-ref_fieldname = 'MEINS'.

wa_fcat-ref_tabname = 'EBAN'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'BSMNG'.

wa_fcat-ref_fieldname = 'BSMNG'.

wa_fcat-ref_tabname = 'EBAN'.

wa_fcat-seltext_m = 'PO Quantity'.

wa_fcat-do_sum = 'X'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'MENGE1'.

wa_fcat-seltext_m = 'Balance Qty'.

wa_fcat-do_sum = 'X'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'LFDAT'.

wa_fcat-ref_fieldname = 'LFDAT'.

wa_fcat-ref_tabname = 'EBAN'.

wa_fcat-seltext_m = 'Delivery Date'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'RESWK'.

wa_fcat-seltext_m = 'Supplying Plant'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ADD 1 TO w_var.

wa_fcat-col_pos = w_var.

wa_fcat-tabname = 'IT_PRS'.

wa_fcat-fieldname = 'WERKS'.

wa_fcat-seltext_m = 'Receiving Plant'.

APPEND wa_fcat TO it_fcat.

CLEAR wa_fcat.

ENDFORM. " f002_fieldcat

*&----


*

*& Form f003_getdata

*&----


*

  • text

*----


*

  • --> p1 text

  • <-- p2 text

*----


*

FORM f003_getdata .

SELECT banfn bnfpo badat matnr txz01 menge bsmng

afnam lfdat reswk werks meins

INTO CORRESPONDING FIELDS OF TABLE it_prs

FROM eban WHERE reswk IN s1_werks

AND werks IN s2_werks

AND badat IN s_badat

AND pstyp EQ p_pstyp.

  • AND statu IN s_statu

  • AND loekz NE 'X'.

LOOP AT it_prs.

SELECT SINGLE mtart FROM ekpo INTO it_prs-mtart

WHERE banfn = it_prs-banfn.

it_prs-menge1 = ( it_prs-menge - it_prs-bsmng ).

MODIFY it_prs INDEX sy-tabix.

ENDLOOP.

ENDFORM. " f003_getdata

*&----


*

*& Form f004_processdata

*&----


*

  • text

*----


*

  • --> p1 text

  • <-- p2 text

*----


*

FORM f004_processdata .

CALL FUNCTION 'REUSE_ALV_EVENTS_GET'

EXPORTING

i_list_type = 0

IMPORTING

et_events = it_events

  • EXCEPTIONS

  • LIST_TYPE_WRONG = 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.

READ TABLE it_events WITH KEY name = slis_ev_user_command INTO

ls_event.

IF sy-subrc = 0.

MOVE 'LINE' TO ls_event-form.

APPEND ls_event TO it_events.

ENDIF.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

i_callback_program = l_repid

  • I_CALLBACK_PF_STATUS_SET = ' '

i_callback_user_command = 'LINE'

i_callback_top_of_page = 'TOP'

  • 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 = ls_layout

it_fieldcat = it_fcat

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • it_sort = it_sort

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

it_events = 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 = it_prs

  • 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. " f004_processdata

*&----


*

*& Form TOP

*&----


*

  • text

*----


*

FORM top.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = lh

i_logo = 'LOGO'

  • I_END_OF_LIST_GRID =

.

ENDFORM. "TOP

*&----


*

*& Form F005_LAYOUT

*&----


*

  • text

*----


*

  • --> p1 text

  • <-- p2 text

*----


*

FORM f005_layout .

ls_layout-zebra = 'X'.

ls_layout-detail_popup = 'X'.

ls_layout-key_hotspot = 'X'.

ls_layout-box_fieldname = 'W_SELCOL'.

ls_layout-group_buttons = 'X'.

ENDFORM. " F005_LAYOUT

*&----


*

*& Form line

*&----


*

  • text

*----


*

FORM line USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

CASE r_ucomm.

WHEN '&IC1'.

IF rs_selfield-sel_tab_field = 'IT_PRS-BANFN'.

READ TABLE it_prs INDEX rs_selfield-tabindex.

SET PARAMETER ID 'BAN' FIELD it_prs-banfn .

CALL TRANSACTION 'ME53N'.

ENDIF.

ENDCASE.

ENDFORM. "line

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi,

STO is Stock Transport order. It is used for inter company transfer of goods. Plant to plant transfer and even transferring raw material to Third party contractors (Job Work).

The Process is you create a STO do delivery against the STO and create a Billing Document against the STO.

Material should exist in both the plants (Delivering & Ordering),

Internal customer should be assigned to the ordering plant ( MM -> Purchasing -> Purchase Order -> Setup stock transport order -> assign the internal customer to the ordering plant and assign the Sales area of the internal customer.

Assign its Sales area to the delivering plant

Assign the document type and Delivery type NB and NLCC

Assign the Supplying plant --> Receiving Plant --> NB

Take the delivering plant and assign the sales area.

Vendor master has to be created and assaign the supply source ( Delivering Plant).

Create a puchase order ME21N ---> Save

Delivery VL10 G ---> Calculation rule (appropriate) --> Assaign the purchase order number here and execute.

Select the Delivery creation line and do the back ground process.

Start the log display and see the delivery document number by the documents button

Goto VL02N --> do picking and PGI --> Then do the MIGO with respect to the delivery document.

Billing (Intercompany pricing conditions should be set).

Reward if useful.

Thanks,

Pramod