Transfer Orders with Header and Item confirmations inconsistencies.
Hi,
Is it possible to confirm Transfer order at Item level instead of Header level. I have a requirement i.e. Table level LTAK table Header level confirmation should be blank and Item level LTAP confirmation should be "X".
Could you please suggest me?
Thank you & Regards
Srinivas
Hi Rahul,
Thank you for your response.
Can you please explain elaborately. For single item delivery i need to create a Transfer order and confirm Transfer order at Item level instead of Header level. When I am confirming it is updating in LTAK & LTAP tables. Can you please explain do i need to maintain any prerequisite in configuration?
Thank you & Regards
Srinivas
Similar Messages
-
Any questions on Order Management Header and Item level?
Hi,
If you are interviewing somebody...And the position he wants is SD consultant.
What kind of questions will you raise on OM header level and item level??
Order management--Questions on Header level
Questions on item level
Thanks, would be better if you could also attach the answer.
Thanks!!Dear Hoo,
ORDER MANAGEMENT & SALES
1.Briefly describe the types and structure of the sales document and give examples of data
that you find on the different levels.
Sales*related business transactions are recorded in the system as sales documents. There are, broadly
speaking, four different groupings of sales documents:
Sales queries, such as inquiries and quotations
Sales orders
Outline agreements, such as contracts and scheduling agreements
Customer problems and complaints, such as free of charge deliveries and credit memo requests.
Header Data
The general data that is valid for the entire document is recorded in the document header. This data
includes the:
number of the sold*to party
number of the ship*to party and the payer
document currency and exchange rate
pricing elements for the entire document
delivery date and shipping point
Item Data
Whereas data in the document header applies to all items in the document, some data applies only to
specific items. This data is stored at item level and includes the:
material number
target quantity for outline agreements
number of the shipto party and the payer (an alternative shipto party or payer can be defined for a
particular item)
plant and storage location specifications
pricing elements for the individual items
Schedule Line Data
An item consists of one or more schedule lines. The schedule line contains all the data that is needed
for a delivery. For example, a customer orders 20 pieces of a material and you enter this as an item in
the sales order. However, you can only deliver 10 pieces now and the remaining 10 pieces next month.
In other words, you need to schedule two deliveries. The data for these deliveries (dates, confirmed
quantities) are stored in two separate schedule lines. In sales documents where delivery data is not
relevant *for example: contracts, credit and debit memo requests * the system does not create any
schedule lines.
Data recorded in the schedule lines includes the:
schedule line quantity
delivery date
confirmed quantity
2.What is the difference between an inquiry and quotation ?
. Inquiry: Request made to a vendor for a quotation for required materials or services.
No availability check is done for inquiry.
. Quotation: Offer from a vendor to a purchasing organization regarding the supply of materials
or performance of services subject to predefined terms and conditions.
A quotation consists of a number of items, in which the total quantity and delivery date of an
offered material or service are specified.
The total quantity can be subdivided into several partial quantities with different delivery dates in the
lines of a delivery schedule.
3.Do you always have to have a material master record number when you enter an item on a
sales document (inquiry and quote)? If not what would you have to use to be able to enter
information at item level?
No. Customer Material Information or Material Description.
4.If a customer doesn't place an order with you after you have sent him a quotation, what happens to
the quotation document?
Remains active till the end of validity period.
5.Can you have alternative items in a sales order?
Yes.
6.If you reference an inquiry when creating a quotation ,would the inquiry be updated?
Yes.
7.Can you copy one inquiry to many quotations ?
No.
8.Can you copy several previous documents into one sales order?
Yes.
9.Do you always have to copy the entire quantities at item level when you reference a
previous document?
No.
10.Can you make sure that business data in a sales order is only possible to maintain at header
level?
Yes.
11.From where is the delivering plant transferred into the sales order?
Customer Master, Material Master.
12.Which partner function is relevant for the delivering plant? The soldtoparty ,
billtoparty, payer, carrier or the ship* to* party?
Ship*to party.
13.Can you manually change the delivering plant in the sales order once it was defaulted from
the master data?
Yes.
14.For what or why do you use the incompletion log?
To have a complete document so that it doesnu2019t affect subsequent processes.
15.Can you have different incompletion logs for different item categories? Schedule line
categories?
Yes.
16.If a document is incomplete can you still save the document?
Yes.
17.Which reference status can a document have at item level? Which statuses at header level?
Item level: Partial, Full.
Header level: Full.
18.What's the advantage of using text as a reference instead of duplicating it?
Can be modified if needed.
19.What three sources provide data for the creation of a sales document?
Material Master, Customer Master, Previous referenced documents.
20.Can you change addresses of partners manually in the sales document?
Yes.
21.Name several input tools that make order entry faster and give a definition of them?
Customer Material Information, Product Proposal , Referencing Documents.
22.In which business environment would you use only the single*line entry screen to create
and save the order?
Telephone Sales, Simple Business.
23.If you do not specify the delivering plant in the sales order, what could the system then not
do?
Delivery Scheduling.
24.For what would you use the fast change function in sales entry?
Alternate Plants, Delivery or Billing Blocks
25.Name two ways to control that customers can receive only certain materials?
Material Listing, Exclusion.
26.What does the item category control?
General Data
. Should pricing be carried out for the item?
. When should an item be regarded as completed? A quotation item, for example, can only be
regarded as completed if the entire quantity has been copied into a sales order.
. Is it an item that refers to a material or is it a text item?
. Are schedule lines allowed for the item?
. May general business data, for example, the terms of payment at the item level, deviate from
those at the header level?
. Should a system message appear if the item cannot be fully delivered?
. Which fields are relevant for the incompletion log?
. Which partner functions are allowed at the item level and which are mandatory?
. Which output (for example, an order confirmation) is allowed for the business transaction and
which output determination procedure is used?
Shipping Data
. Is an item relevant for delivery?
. Should the weight and the volume of an item be determined?
Billing Data
. Is an item relevant for billing?
. Should the cost of the item be determined?
. Is it a statistical item? Pricing is carried out for statistical items. However, they are not added
to the value of the order, that is, the customer is not charged for them.
. Should a billing block be set automatically for an item? For example, this may be important for
items whose prices have to be clarified before billing
. Is it a returns item?
. Name the influencing factors for determining the item category in the sales document?
. Sales Document type, Item Category Group, Higher Level Item, Item Usage.
. Name the influencing factors for determining the scehdule line category in the sales document?
. Item Category, MRP Type.
. What does the sales document type control?
General Data
. Can the document be entered only with reference to a preceding document?
. Should the existing customer
. material info record be taken into consideration?
. Should the delivery date be proposed?
. Must a customer number be entered when creating a document? For example, product
proposals can be entered without reference to a particular customer.
. Which order probability is defined?
. Should the division be taken from the material master record for every item or should an
alternative division specified in the header take precedence over the item specifications?
. How should the system respond if the division entered in the header deviates from the division
in the items?
. Should a credit limit check be made?
. From which number range should the document number for internal or external number
assignment come?
. Which fields are relevant for the incompletion log? The validity period, for example, is
important for contracts and must therefore be specified in the document.
. Can an incomplete document be saved or must all data be complete?
. Which partner functions are allowed and which ones are mandatory?
Shipping Data
. Which delivery type should the delivery resulting from the order have?
. Should delivery scheduling be carried out?
. Should transportation scheduling be carried out?
. Should a delivery block be set automatically for a specific reason? For example, a delivery
block may be appropriate for a freeofcharge delivery.
. You can define shipping conditions for a sales document type. These are copied into the
document regardless of what is defined in the customer master record.
Billing Data
-->Which billing type should the invoice resulting from the order or the delivery have?
Should a billing block be set automatically for a specific reason? For example, a billing block may be
appropriate if a credit memo request should first be checked before it is used as the basis for a credit
memo.
-->Can the sales document type be determined by the system?
No.
-->In R/3, can you automatically substitute one product for another? How? What would you
have to create?
Yes. Product Selection / Material Determination.
-->Give a definition of replenishment lead time?
Total time for the inhouse production or for the external procurement of a product. In inhouse
production the replenishment lead time is determined to cover all BOM levels.
What's the difference between checking availability with or without replenishment lead time (RLT)?
With RLT : Availability check is done only upto end of RLT. If material is not available the date on
which RLT ends is displayed as Material Availability Date.
Without RLT : Availability check is unrestricted. Displays Delivery Dates as on which partial deliveries
can be made with available stock.
-->Name at least three item categories?
Standard Items : AFN, AGN, TAN.
Free of charge Items: AFNN, AGNN, TANN.
Non*stock Items : AFX, AGX, TAX.
Text Items : AFTX, AGTX, TATX.
-->Why would you use different item and schedule line categories?
Item categories are defined to provide additional control functions for the sales documents and thus
meet the demands resulting from the different business transactions.
The items in a sales document are divided into one or more schedule lines. These schedule lines differ
from each other with respect to date and quantity. For some schedule lines, material requirements
planning is not carried out; for other schedule lines, it is carried out. Also goods receipt, not goods
issue, is posted for a schedule line defined in a returns document.
-->Can you change existing standard item categories?
Yes.
-->Can you create new sales order types?
Yes.
-->Different dates will be calculated in order entry scheduling . Can you name the lead time
variables that will be taken into account?
Transportation lead time, Pick/pack time, Loading time, Transit time .
If you run out of stock in a specific plant can you check if there are quantities available in other plants?
Yes.
-->When you carry out availability check, which quantities or movements can the system take
into consideration?
The following elements can be included in the availability check:
Stocks : safety stock, stock in transfer, stock in quality inspection, blocked stock.
Inward and outward movements : purchase orders, purchase requisitions, planned orders, production
orders, reservations, dependent reservations, dependent requirements, sales requirements, delivery
requirements.
-->Give some examples of sales document types (description, not necessary the short code)
that already set up in the standard system?
Indicator used to control the processing of the various sales documents which are defined in the
system. E.g., OR, SO, BV, KR. Document types allow the system to process different kinds of business
transactions, such as standard orders and credit memo requests, in different ways.
-->Can you maintain texts for a specific customer and store them in the system? If yes, where?
Yes. Customer Material Information.
-->When the system checks availability which scheduling would it use first?
Backward Scheduling.
-->Name the influencing factors for the determination of the availability date?
The following data is required for determining this date:
Route from the shipping point to the ship*to party location
Shipping point from which the goods are issued
Loading group from the material master record
Weight group determined from the order using the order quantity.
-->Name the three delivery possibilities when there is not enough stock available?
One Time Delivery, Complete Delivery, Partial Deliveries.
-->Can you think of an example why you would have to create a text for a customer and copy it
to the sales order?
Customer specific instructions.
-->What is the function of item category group?
The item category group determines how a material is processed in the sales order. It defines, for
example, that pricing does not take place for a free of charge item, such as a business gift; or that
inventory management is not carried out for a service. When processing sales and distribution
documents, the system uses the item category group to determine the item category. The system
determines the item category based on the item category group of the material and the current
business transaction, and proposes it in the respective document.
When creating the material types non*stock material and services, DIEN is proposed in both cases for
the item category group, because the order processing for both material types is identical: for
example, pricing is carried out for both, but no availability check.
-->On sales order, when the system confirms 20 pieces to be available at a certain date, would
these 20 pieces still be available for other new sales order coming in later?
No.
-->What is a delivery group and why would you use it?
The complete delivery and delivery group functions enable you to combine some or all of the items in a
sales order so that they are delivered to the customer together. The system determines automatically
the latest delivery date possible for the delivery group and adjusts the schedule lines accordingly.
Corresponding requirements for material requirements planning (MRP) are changed or re*determined.
-->What is backorder processing?
The backorder processing functions enable you to list relevant sales documents for specific materials
and process them from the point of view of availability. You can assign available to promise (ATP)
stock to outstanding order quantities. In addition, you can withdraw already confirmed quantities and
reassign them to different items.
Backorder processing is only available for materials with individual requirements.
-->Can you link items in a sales order? If yes, when would you do that?
Yes. Promotional Items.
-->For what would you use BOMu2019S in sales? What two methods of BOM processing do you have
in sales order entry? How can you control if the system should/should not explode a BOM in
the sales order.
A bill of material (BOM) describes the different components that together create a product. A BOM for
a bicycle, for example, consists of all the parts that make up the bicycle: the frame, the saddle,
wheels, and so on. When you enter the material number of a bill of materials that is relevant for sales
order processing, the system displays the material that describes the whole bill of materials as a main
item. The components are displayed as sub*items.
Processing by Main Item : ERLA & Processing by Sub*Item : LUMF
BOM explosion can be prevented by specifying Item Category Group as NORM.
Credit limit checks is an example of a very close link between which two SAP modules?
SD & FI.
-->What are the two techniques in delivery scheduling?
Backward Scheduling & Forward Scheduling.
-->How does a third party deal work? Do you use a special sales order type for that? How could
the system know that you want to process a third party deal?
By specifying item category as TAS using double*line entry in the sales order.
No special order type is available.
By the item category group and/or material type in Material Master .
Name the several steps in consignment processing.
Consignment fillup, Consignment issue, Consignment pickup, Consignment return.
Whatu2019s the difference between consignment pick*up and consignment return?
In consignment pick*up, customer returns consignment stock. When goods issue is posted, the
relevant quantity is deducted from the customer's special stock and is added back to regular stock at
the plant where the goods are returned. Total valuated stock remains the same since the returned
stock was regarded as part of inventory even while it was at the customer's premises.This transaction
is not relevant for billing.
In consignment return, customer wishes to claim on consignment goods which have already been
issued. When goods issue is posted, the relevant quantity is added to the customer's special stock at
the plant where the goods are returned. Since the ownership of the goods is passed from the customer
back to the company, the transaction is relevant for billing. In this case, the customer receives a credit
memo for the returned goods.
-->Can you control that an end user cannot copy a quote of customer A to a sales order for
customer B? If yes, where?
Yes. By customizing Copying Control for header data.
Give some example for data that is copied from the customer (soldto, payer, shipto) to the sales
order as well as for data that is copied from the material?
General data, payment terms, shipping details, delivery agreements, delivering plant.
-->What is returnable packaging processing?
Returnable packaging consists of materials that are stored at the customer location but which remain
the property of the company. The customer is only required to pay for the returnable packaging if he
does not return it by a specified time.
Name the two outline agreements in R/3 standard and explain the difference between them.
Agreements are arrangements between business partners regarding the granting of conditions over a
specified time period. The agreement contains conditions which apply over a particular time period and
which are settled together at the same points in time. An agreement can be settled once or
periodically. The two outline agreements include Contracts and Scheduling Agreements.
Unlike a contract * which only contains an overall target quantity or value * a scheduling agreement
also contains specific order quantities and delivery dates.
-->How many documents do you create when you release, deliver and invoice the first order
from a contract?
Three : Sales order, Delivery note, Invoice.
-->What types of output can you have in sales?
Printer, Telex, Fax, Mail, EDI.
-->Can you automate output processing ? Do you always have to specify it manually?
yes. No.
-->Where would you specify which data should be copied (at header, item and schedule line
level)when you copy from one document to another one?
Customizing Copy Control.
I hope it will help you,
Regards,
Murali. -
Need information about FI document with header and no items
Hello Experts!
I need your help for understanding the following subject :
How is it possible when using F.13 to obtain a fi document with header without items sometimes,
and fi document with header and items anothers times?
We didn't saw/found customizing topics about that ( to enable or not header without items) Some exists?
The only difference in the two cases are the document's type involded which are not the same.
Regards,
JosianeHi,
We verify and compare everything. it's the same everywhere except the document type of the invoice
first case, F.13 create conciliation fi document with header and no items
invoice ( doc. type YB )
payment ( doc type ZT)
conciliation ( doc type XZ )
2th case, F.13 create conciliation fi document with header and none items
invoice ( doc. type YT )
payment ( doc type ZT )
conciliation ( doc type XZ )
We match / compare every fields and value between invoice of 1st and 2tch case, every fields and value between payment of 1st and 2th case.
( we create tests case in own integration system for reproduce )
We alse match / compare customizing of invoice type document YB and YT and they seems identical...
The procedure is the same with F.13 to do conciliation in both cases.
we got same amount, same currency etc etc.
We still didn't understand why with invoice type YT the conciliation document created is not the same as invoice type YB ...
Nobody have idea ? -
Query to display BOMs Header and Item
Hello SAP gurus
I am trying to create a query to display BOMs with header and item. For that I am using tables MAST, STKO and STPO.
The table join is:
MAST -> STKO -> STPO
MAST - WERKS, STLNR and STLAL
STKO - STLNR and STPOZ
The system dont show anything...
Can someone help me?
Thanks in advance.
Adelmo SilvaYes, it works but...
If I have 2 alternatives, the system show everything even if i select alternative 1 or 2.
I am missing something... because system is showing all alternatives...
System is showing something like this:
Material BOM AltBOM BOM St Item ICt Component Valid from Quantity Un
726121012 00131075 1 01 0010 L 109219 17-12-2007 0,200 KG
726121012 00131075 1 01 0020 L 109230 17-12-2007 0,003 KG
726121012 00131075 1 01 0030 L 109232 17-12-2007 1,166 M2
726121012 00131075 1 01 0040 L 726004012 17-12-2007 0,120 M3
726121012 00131075 1 01 0010 L 109526 17-12-2007 0,200 KG
726121012 00131075 1 01 0020 L 109232 17-12-2007 1,166 M2
726121012 00131075 1 01 0030 L 726004012 17-12-2007 0,120 M3
Edited by: Adelmo Silva on Jan 9, 2008 9:07 AM -
Error in confirmation of Transfer orders at Header level (TC LRF2)
Hello All,
A transfer order has single item. It has got confirmed at the item level for the full quantity. The confirmation switchbox at item level is checked in by the system automatically. But in header level the switch box is not checked in.
While trying to confirm the Transfer order at header level, the error message shows that the Transfer order is already confirmed. But the Transfer order still exists in LRF2.
Thanks in Advance.
Regards,
Sasi.Hi Marcos
Note 566995 is an old correction note, which is probably already implemented on your system but it describes the standard system design regarding confirmations posted in mass processing transactions:
When you enter an operation confirmation via the order info system or the mass processing the system now sets the confirmation type to 'Automatic final confirmation' as well as the indicator 'Post open reservations'. Thus the system automatically generates a final confirmation when you confirm the whole planned quantity and the operation receives status CNF (finally confirmed) instead of PCNF (partially confirmed).
System is designed that way because a mass processing transaction will be generally executed in background mode and a huge number of confirmations can be posted at the same time. Therefore, user will not be able to enter any value to the confirmation.
If you don't want this behaviour you could use the BAPI
BAPI_PRODORDCONF_CREATE_HDR to develop your own mass processing transaction to post confirmations.
BR
Caetano -
How can we revise the pricing both at header and item level of sales order?
Dear All,
Now there's one issue of the pricing to me. i want to revise the pricing both at header and item level of sales order. but after i finished the cutomize and tested it, it's more different as i thought. i found that the pricing can revise at the one side only,for example, if i revise the pricing at item level and it's grey and can't be revised at the header. on the other hand, it's the same result what's happened at item.
So, in my opinion, we can't revise the pricing both at header and item, right? if not, please give me more advices and teach me how to solve the problem. thanks a lot.Dear Lakshmipathi,
Thanks a lot for your kindly and useful answer for me and I learn more for the pricing technology.
I didn't notice the way that you reminded ago therefore I also saw the button at the condition tab. And your suggestion makes me know more.
And I had tested the way that you said, I met with a question. Below is my opinion for my testing.
I had created one SO and the pricing was $10, then I revised the pricing from 10 to 15 by VK11. It can't be updated automatically at SO and I must update it manually by clicking the "Update" button. This is OK for my testing, but I have another question to disturb you for the use of "Active" button. When I click the button and nothing is responsed, it's quite different what you said. So, please give more detail for the Active button. Thanks a lot. -
Transaction to Mass Update Header and Item text in Purchase Order
Dear All
Whether any Transaction in SAP to mass update the Header and Item text in Purchase Order.
One Single Text For Ex :" This is a Dummy PO" .
This text needs to be updated in large number of POs.
Please let me know your views
Reg
ShyamHi Shyam,
You can make use of BAPI_PO_CHANGE for this. See the documentation of this BAPI in SE37 for more information.
"You can transfer header and item texts in the PoTextHeader and PoTextItem tables. You import texts
for services in the PoServicesText table. Texts can only be replaced complete."
Regards,
Purnima. -
Sales order condition change for Header and Item level..
Hi Gurus,
My requirement is as below..
Business wants to create new sales order from reference.. While creating slaes order fron reference , need to populate header/Item level condition tab data from originally paid by the invoice for that refence sales order not from refence sales order condition price.
I would like to how to bring this one, any user exit or copy control and any VOFm routine need to populate this kind of requirement.
Any one have any idea please let me know.. It very urgent, give reward points for right solution..
thanks,Hi,
Here are the answers to your question
> Is it possible to add/change condition types on the sales order (header and item level) for which invoice has been created already?
I mean is it possible to add some surcharge condition to already invoiced order and than as result debit memo?
The answer is No. You cannot add or change the condition once it is invoiced.
> And one more question : Are there some time restrictions when debit/credit memo can be created? (I believe not, but I would like to have this confirmed, as I am not SD expert.)
The answer is No again. There is no time restriction and you can create debit or credit memo immediately when the invoice is released to accounting.
Hope this helps
Thanks
Mukund S -
Outbound file interface - Header and item record transfer issue
Hi.
Pls help me complete this work by today:
I have to pass header and item record into file in application server.
I am retrieving Header record from table MCHB & RESB
and item record from MKOL & LFA1
I have to create separate file per plant ( plant is multiple selection field)
I have a check box (p_sob) for special stock selection in my selection screen .
If p_sob is initial
Header record should come from MCHB and RESB
and corresponding item entries from MKOL and LFA1
If some batch entries entries only exists in MCHB and not in MKOL then item fields will be blank
However if some entries exists only in MKOL and not in MCHB then header fields will be filled by correponding item fields.
Can anyone tell me the basic frame of the program.
Regards,
Simran*& Form sub_populate_header
Subroutine to populate header table
FORM sub_populate_header.
DATA: l_clabs TYPE char13, "Valuated stock
l_bdmng TYPE char13, "Requirement quantity
l_avqty TYPE char13, "Available quantity
l_slabs TYPE char13. "Consignment stock
DATA: i_mkol_tmp type standard table of ty_mkol initial size 0.
LOOP AT i_mchb INTO wa_mchb.
READ TABLE i_mkol INTO wa_mkol WITH KEY matnr = wa_mchb-matnr
werks = wa_mchb-werks
lgort = wa_mchb-lgort
charg = wa_mchb-charg
BINARY SEARCH.
IF sy-subrc EQ 0.
*Mark those MKOL records for deletion
wa_mkol-mark = c_mark. "marked for deletion
ELSE.
*Population of Plant,material number,batch,storage location and
*valuated stock
wa_header-werks = wa_mchb-werks. "Plant
wa_header-matnr = wa_mchb-matnr. "Material number
wa_header-charg = wa_mchb-charg. "Charg
wa_header-lgort = wa_mchb-lgort. "Storage location
wa_header-clabs = wa_mchb-clabs. "Valuated stock
l_clabs = wa_header-clabs.
SHIFT l_clabs LEFT DELETING LEADING space.
*Population of material description
READ TABLE i_makt INTO wa_makt WITH KEY matnr = wa_header-matnr.
IF sy-subrc EQ 0.
wa_header-maktx = wa_makt-maktx. "Material description
ENDIF.
*Population of Requirement quantity
READ TABLE i_sum INTO wa_sum WITH KEY charg = wa_header-charg
BINARY SEARCH.
IF sy-subrc EQ 0.
wa_header-bdmng = wa_sum-bdmng. "Requirement quantity
l_bdmng = wa_header-bdmng.
SHIFT l_bdmng LEFT DELETING LEADING space.
ENDIF.
*Population of Available quantity
l_avqty = l_clabs - l_bdmng.
SHIFT l_avqty LEFT DELETING LEADING space.
wa_header-avqty = l_avqty. "Available quantity
APPEND wa_header TO i_header.
CLEAR wa_header.
ENDIF.
ENDLOOP.
*Deleting batches from MKOL which exists in MCHB
i_mkol_tmp[] = i_mkol[].
DELETE i_mkol_tmp WHERE mark = c_mark.
*Sorting I_MKOL
SORT i_mkol_tmp BY matnr werks charg lgort.
LOOP AT i_mkol_tmp INTO wa_mkol_tmp.
*Population of Plant,Material number,charg & Storage location
wa_header-werks = wa_mkol_tmp-werks. "Plant
wa_header-matnr = wa_mkol_tmp-matnr. "Material number
wa_header-charg = wa_mkol_tmp-charg. "Batch number
wa_header-lgort = wa_mkol_tmp-lgort. "Storage location
APPEND wa_header TO i_header.
CLEAR wa_header.
ENDLOOP.
ENDFORM. " sub_populate_header
*& Form sub_populate_item
Subroutine to populate item table
FORM sub_populate_item .
LOOP AT i_mkol INTO wa_mkol.
wa_item-lifnr = wa_mkol-lifnr. "Vendor number
wa_item-slabs = wa_mkol-slabs. "Consignment stock
READ TABLE i_lfa1 INTO wa_lfa1 WITH KEY lifnr = wa_mkol-lifnr
BINARY SEARCH.
IF sy-subrc EQ 0.
wa_item-name1 = wa_lfa1-name1. "Vendor name
ENDIF.
ENDLOOP.
ENDFORM. " sub_populate_item
*& Form sub_batch_stock
Subroutine to output batch record from table (MCHB & MKOL) into
file in application server
FORM sub_batch_stock .
DATA: l_record TYPE string, "String
l_clabs TYPE char13, "Valuated stock
l_bdmng TYPE char13, "Requirement quantity
l_avqty TYPE char13, "Available quantity
l_slabs TYPE char13, "Consignment stock
l_tabix TYPE sytabix. "Index
LOOP AT i_header INTO wa_header.
*Separate file per plant
AT NEW werks.
*Creation of file
PERFORM sub_create_file.
Open File on the application server for processing
OPEN DATASET g_file_name FOR APPENDING IN TEXT MODE
ENCODING DEFAULT.
IF sy-subrc NE 0.
*Display error message
MESSAGE e055 WITH g_file_name. " Error in opening file
ENDIF.
ENDAT.
AT NEW charg.
CONCATENATE c_header " Header indentification
wa_header-werks " Plant
wa_header-matnr " Material number
wa_header-maktx " Material description
wa_header-charg " Batch number
wa_header-lgort " Storage location
l_clabs " Valuated stock-unrestricted use
l_bdmng " Requirement quantity
l_avqty " Avalable quantity.
INTO l_record SEPARATED BY
cl_abap_char_utilities=>horizontal_tab.
Transfering header record to file
TRANSFER l_record TO g_file_name.
CLEAR: l_clabs,
l_bdmng,
l_avqty,
l_record.
ENDAT.
LOOP AT i_mkol INTO wa_mkol WHERE matnr = wa_header-matnr
AND werks = wa_header-werks
AND charg = wa_header-charg
AND lgort = wa_header-lgort.
*Population of Vendor number and consignment stock
wa_item-lifnr = wa_mkol-lifnr. "Vendor number
*Storing Consignment stock into local variable to change datatype
*from QUAN to CHAR
l_slabs = wa_mkol-slabs.
SHIFT l_slabs LEFT DELETING LEADING space.
wa_item-slabs = l_slabs. "Consignment stock
*Population of Vendor name
READ TABLE i_lfa1 INTO wa_lfa1 WITH KEY lifnr = wa_mkol-lifnr
BINARY SEARCH.
IF sy-subrc EQ 0.
wa_item-name1 = wa_lfa1-name1. "Vendor name
ENDIF.
CONCATENATE c_item " Item identification
wa_item-lifnr " Vendor number
wa_item-name1 " Vendor name
l_slabs " Consignment stock-unrestd. use
INTO l_record SEPARATED BY
cl_abap_char_utilities=>horizontal_tab.
*Transfering Item record into file
TRANSFER l_record TO g_file_name.
CLEAR: l_slabs,
l_record.
ENDLOOP.
AT END OF werks.
Close File
CLOSE DATASET g_file_name.
CLEAR g_file_name.
ENDAT.
ENDLOOP.
ENDFORM. " sub_batch_stock -
Header and Item Texts for Sales Order
Hi,
Can any one help me on Header Text and Item Text...........
<b>STXH & STXL</b>
TDOBJECT :__________
TDID:_____________
TDNAME :_______________
Regards,
Raghunath.SHi
Double click on the related text
it will open Text editor
from Menu GOTO-> header
for SO HEADER Texts
then you see the 4 paramters like OBJECT (VBBK),ID,OBJECTNAME (sales Order No) and LANG
FOR SO ITEM texts
OBJECT (VBBP table), ID, OBJECTNAME(SO no plus ITEM No) and LANG
You have to pass these 4 parameters to READ_TEXT fun module to fetch the corresponding texts
see the doc on READ_TEXT
READ_TEXT
READ_TEXT provides a text for the application program in the specified work areas.
The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
Function call:
CALL FUNCTION 'READ_TEXT'
EXPORTING CLIENT = SY-MANDT
OBJECT = ?...
NAME = ?...
ID = ?...
LANGUAGE = ?...
ARCHIVE_HANDLE = 0
IMPORTING HEADER =
TABLES LINES = ?...
EXCEPTIONS ID =
LANGUAGE =
NAME =
NOT_FOUND =
OBJECT =
REFERENCE_CHECK =
WRONG_ACCESS_TO_ARCHIVE =
Export parameters:
CLIENT
Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
Reference field: SY-MANDT
Default value: SY-MANDT
OBJECT
Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
Reference field: THEAD-TDOBJECT
NAME
Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
Reference field: THEAD-TDNAME
ID
Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
Reference field: THEAD-TDID
LANGUAGE
Enter the language key of the text module. The system accepts only languages that are defined in table T002.
Reference field: THEAD-TDSPRAS
ARCHIVE_HANDLE
If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
The value '0' indicates that you do not want to read the text from the archive.
Reference field: SY-TABIX
Default value: 0
Import parameters:
HEADER
If the system finds the desired text, it returns the text header in this parameter.
Structure: THEAD
Table parameters:
LINES
The table contains all text lines that belong to the text read.
Structure: TLINE
Exceptions:
ID
The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
LANGUAGE
The parameter LANGUAGE contains a language key that does not exist in table T002.
NAME
The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
Possible errors:
The field contains only blanks.
The field contains the invalid characters * or ,.
OBJECT
The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
NOT_FOUND
The system did not find the specified text module.
REFERENCE_CHECK
The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
WRONG_ACCESS_ TO_ARCHIVE
The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
<b>Reward points for useful Answers</b>
Regards
Anji -
Linking Sales Order Header and Item into a DSO
I am trying to combine my Sales Order Header and Item into a DSO.
I created individual DSOs for each extractor and loaded successfully. I then created a new DSO with the Document number as the key field and loaded the data. However, when I check the new DSO, the data is not combined but seperated on one line.
To make it clearer
DSO1
CH1 CH2 CH3 KF1
DSO2
CH1 CH4 CH5 KF2
In my new DSO3, I used CH1 as the key field and when I load data, I expect to see
CH1 CH2 CH3 CH4 CH5 KF1 KF2
But I get
CH1 CH2 CH3 KF1
CH1 CH4 CH5 KF2
Is there something I'm doing wrong?Hi Siggi
I'm not sure what you mean.
What I am trying to achieve on the long run is to combine Sales Order and Billing into a cube. But first i need to get the orders into a DSO and also Billing into another DSO. And then combine into a consolidated DSO before going to a cube. Please correct if this approach is wrong.
In the meantime, I am trying to combine the sales order item and header into one DSO. -
Delivery tolerance at header and item level in sales order
Dear All,
My client wants to maintain delivery tolerance at both header and item level. NOTE: The tolerance at sales order header is different than the delivery tolerance at sales order item.
eg if i maintain 3% plus and minus tolerance at item, the header level tolerance can be 2%.
Also if there are more than 1 line items, the system should give warning message, when it finds that the delivery tolerance at item level can be maintained but that of the header level cannot be maintained and vice varsa.
Awaiting an early help and thankful for the same in advance.
Regards,
Avnesh KamdarHi Avnesh,
Delivery tolerance can be made in the customer master,sales org data ---delivery tab.
Delivery tolerance is always at item level.
Reward points if it helps.
Regards
Karan -
How to header and item data of sales order using bapi interface
hi friends,
i am geetha, i having a problem like how to upload sales oder header and item data through va01 tcode using BAPI FUNCTION MODULES.
i need bapi function modules for header adn item data and brief explation on that , how to pass importing and tables parameters to get exact output .
regards
geetha.Use : BAPI_SALESORDER_CREATEFROMDAT2
Sales order: Create Sales Order
Functionality
You can use this method to create sales orders.
You must enter at least sales order header data (via ORDER_HEADER_IN structure) and partner data (via the ORDER_PARTNERS table) as input parameters.
Enter the item data via the ORDER_ITEMS_IN table. You can allocate item numbers manually, by filling in the relevant fields, or the system does it, according to the settings for Customizing, by leaving the relevant fields blank.
If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
Credit cards can be transferred via the BAPICCARD structure, on the one hand, data for card identification, on the other, data for a transaction which has taken place in an external system.
Once you have created the sales order successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announced via the RETURN parameter.
If no sales area has been created in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If a clear sales area cannot be created, you will receive a system message, and the sales order will not be created.
Notes
1. Mandatory entries:
ORDER_HEADER_IN : DOC_TYPE Sales document type
SALES_ORG Sales organization
DISTR_CHAN Distribution channel
DIVISION Division
ORDER_PARTNERS..: PARTN_ROLE Partner role, SP sold-to party
PARTN_NUMB Customer number
ORDER_ITEMS_IN..: MATERIAL Material number
2. Ship-to party:
If no ship-to party is entered, use the following: Ship-to party =
sold-to party.
3. Commit control:
The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that can be carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.
4. German key words:
The following key words must be entered in German, independantly of
the logon language:
DOC_TYPE Sales document type, for example: TA for standard order
PARTN_ROLE Partner role, for example: WE for ship-to party
Further information
You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD.
Parameters
SALESDOCUMENTIN
ORDER_HEADER_IN
ORDER_HEADER_INX
SENDER
BINARY_RELATIONSHIPTYPE
INT_NUMBER_ASSIGNMENT
BEHAVE_WHEN_ERROR
LOGIC_SWITCH
TESTRUN
CONVERT
SALESDOCUMENT
RETURN
ORDER_ITEMS_IN
ORDER_ITEMS_INX
ORDER_PARTNERS
ORDER_SCHEDULES_IN
ORDER_SCHEDULES_INX
ORDER_CONDITIONS_IN
ORDER_CONDITIONS_INX
ORDER_CFGS_REF
ORDER_CFGS_INST
ORDER_CFGS_PART_OF
ORDER_CFGS_VALUE
ORDER_CFGS_BLOB
ORDER_CFGS_VK
ORDER_CFGS_REFINST
ORDER_CCARD
ORDER_TEXT
ORDER_KEYS
EXTENSIONIN
PARTNERADDRESSES
Exceptions
Function Group
2032 -
Different division at header and item level in Order
Hi Gurus,
i am facing this issue where while creating quotation in CRM i entered sold to party, selected the org data ( OA/DI/OP ). i entered the product with quantity. now at item level in Organization tab my sales area is showing as ( OA/DI/01). system is picking the division maintained for product which is 01) so division is different at header and item level. i need the header division to be used at item level as well.
how can i achieve this?
Thanks and Regards
Sudhir GroverHi Sudhir,
Make sure the settings in the SPRO>CRM>Master Data>Products>Special Settings for Sales Operations--> Define Division settings is activated with Header Div. Act.
Also check the details in the IMG activity documentation for define division settings.
Hope this helps.
Regards,
Chandrakant -
How to make pricing field as output only in sales order header and item lev
Hi ,
I want to make the field PRICING DATE as output only both at header and item level. How can i do pls guide me in detail.
Regards
SunainaHi Sunaina ,
Through User Exit you get this requirement plese take help of ABAPer to activate the user exit according to your requirement.
Try With this User Exit
Program MV45AFZZ
USEREXIT_FIELD_MODIFICATION
This user exit can be used to modify the attributes of the screen fields.
To do this, the screen fields are allocated to so-called modification groups 1 - 4 and can be edited together during a modification in ABAP. If a field has no field name, it cannot be allocated to a group.
The usage of the field groups (modification group 1-4) is as follows:
Modification group 1: Automatic modification with transaction MFAW
Modification group 2: It contains 'LOO' for step loop fields
Modification group 3: For modifications which depend on check tables or on other fixed information
Modification group 4: is not used
The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit.
This FORM routine is called up by the module FELDAUSWAHL.
See the Screen Painter manual for further information on structuring the interface.
I hope it will help you,
Regards,
Murali.
Maybe you are looking for
-
Keyboard and trackpad freeze if I don't use them for 11 seconds
If I stop using input (either with the built-in keyboard or trackpad) for 11-12 seconds (it's consistent), I'm locked out of using the keyboard or trackpad for anywhere between 4 and 60 seconds. The computer continues to function normally (if a movie
-
TAX_UNIT_ID needs to be set
Hi Friends, I have the following problem while running the QuickPay with Transport Allowance that was defined using the Element Design Wizard. UDF Error in formula TRANSPORT_ALLOWANCE_FIXED_CALC at line 38: Database item requires context TAX_UNIT_ID
-
I am using my Mac book air to play movie on my TV via Airplay, but i also want to browse and work on my mac book while i am playing the movie via Airplay. How can i do that
-
Help I have a powerbook G4. I was using it when I heard a pop. I noticed that the power light on the power connecter turned off and my charing icon turned off. the computer continued to run until the battery died. I even turned it off and on several
-
Using DataServices and Assemblers with Strings
I have a Java Assembler which obtains a list of strings, on Flex it throws a run-time error saying that i am not using the IManaged interface. When you use custom AS classes you use the [Managed] metadata and that solves it but like i said, i am not