Read item code from Sales Order with formatted search
hi,
i'm tring to read tha values of the item or items of a sales order (before save it) with a formatted search.
i have no problem to read the value of card code or cardname but i can't read the item's value.
i tried with this [code]Select $[RDR1.ItemCode][/code] (i found it on the forum) but it doesn't work.
somebody can help me ?
thank you
Hi, Alessandro!
I think the trouble is that you are trying to assign a FS to the header of the document. You are getting the information of the current row, so you have to bind a formatted search to some column of the "table - part" of the document.
And also you can try:
SELECT $[$38.1]
38 - the value of "Item" (when you point a mouse to the cell, information you want from)
1 - the value of "Column" (the same...)
It will get an info of this cell in a current row.
HTH!
Similar Messages
-
Item text from sales order to purchase requisition
Hi Experts,
I have below queries ,
1. What are the controls to generate/create a purchase requisition from a sales order.
Is this possible that a Pur. req generated from a sales order but sales order is not its account assignment.
How item text from the sales order can be copied to purchase Requisition, does settings in purchase requisition in SPRO (Purchasing Purchase req-text for purchase req----define copying rules) works only for automatically created Pur req.??
item text from sales order can be copied for PR created through MRP or planned orders converted to PR.??
I will appreciate if someone can provide me documentation on basics of sales and distribution at my email
[email protected]
Thanks in advance
anandhello, friend.
i can only answer part of your question as i am not sure of the others. however, yes... you can automatically create a purchase requisition from the sales order.
one example is third party sales. because of the item category group that you specified in the material master, the sales document determines an item category (and schedule line) that controls the creation of the purchase requisition. here, the system knows that you must source the material from your vendor for delivery to your customer.
further, as in the above case, when your company creates the PO with reference to the PR, your company appears as the buying entity but the ship-to address is that of your customer.
i did not understand your question on account assignment. please elaborate and we'll see if we can come up with the answer.
if you wish to see documentation, you could refer to SAP's article on Third Party Sales. other scenarios such as just-in-time inventory for trading companies or make-to-order companies may also apply.
regards. -
Production order from sales order with multiple line item(for one material)
Dear Gurus,
I am working in MTO scenarios. If there is several line item in a sales order for one material, multiple production order( same as no. of sales order line item) is getting created against each of the line item.My requirement is,since the material code is same in each line item and sales order is one, one production order should be generated for all line item. please tell me how to do it.
(Here for one material, multiple line item is required for some specific reason)
Regards
Rajib PathakHi,
This is not possible.
In Std SAP will create one production order for one sales order. The stock is also allocated to thet particular sales order only. Because each and every sales order may vary in any one of the parameters. Considering this, SAP has designed like this.
Regards,
V. Suresh -
Sales invoice carrection & item deletion from sales order after PGI
Hello Sir ,
i want to change the item price after billing , account document is created .
what can i do for it ?
and second is . i want to delete line item from sales order after PGI
like after delivery customer want to change the goods .
please ans me asap
Thanks
Arvind
Edited by: saparvind on Nov 5, 2009 5:30 PMHi ,
i want to change the item price after billing , account document is created .
what can i do for it ?
Once the Billing document and corresponding Accounting document created, then you have to cancel the BILLING DOCUMENT to change the Price.
To change the Price , If it is Manual price directly you can change in the Billing document.
If the Price is coming from the CONDITION RECORDS then you have to UPDATE the pricing to the CARRY OUT NEW PRICING in the Billing documents, with Option B
i want to delete line item from sales order after PGI
like after delivery customer want to change the goods .
For this you have to reverse the PGI in the Transaction code VL09 and then cancel the DELIVERY in VL02N---Delete.
Now you can change the Goods in the Sales document in VA02.
Please check the above and revert.
thanks,
santosh -
G/L Account is missing in item data in sales order with reference to quotation
Dear SAP Guru,
I have a problem in accordance with G/L Account missing sales order. Initially, please find the below lines.
1. If I do the sales order without reference to quotation there is no error in G/L Account missing.
2. If I do the sales order with reference to quotation there is an error that G/L account is missing in item data.
I have checked the VKOA, the settings are fine.
Kindly anyone of you resolve this issue.
Warm Regards
Vidya SagarG/L account is missing in item data.
Many times, it has been discussed on this issue in SCN and please search with the same text so that you will find many threads asking various areas to check. Take the inputs from there and post here still if you have issue.
G. Lakshmipathi -
Reading line item text from sales order
Hi,
I have a sales order which has an item text, I need to get the value from the text. I want to test the READ_TEXT function and I am giving values as
Import parameters Value
CLIENT 400
ID 0011
LANGUAGE EN
NAME 0001171445000010
OBJECT VBBP
ARCHIVE_HANDLE 0
LOCAL_CAT
It is not giving me any value. Am I giving any thing wrong? In the NAME I gave the value as sales ord num + item number, is this correct. Please help me.
Thanks,
Veni.Hi
Name is the Concatenation of Order No and Item No.
pass the 4 parameters ID,OBJECT,NAME and LANG
use the correct declarations for the parameters and use
ID = '0011'
LANGUAGE = 'EN'
NAME = '0001171445000010'
OBJECT = 'VBBP'
See the doc
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).
Reward points if useful
Regards
Anji -
Reading item text of Sales order
Can i use the text entered in Sales order-line to identify sales order-line item ?
ex in Sales line 1 --> text entered is COLUMN 3
In sales line 2 --> text entered is column 4.
how will i come to know COLUMN 3 belongs to Sales line 1 ?Hi rag,
sorry for the insufficient explanation.
I don't know your smartforms detail.
I think you defined a table node for the item output. In the DATA tab, you will have the LOOP defined for an internal table INTO a header line or ASSIGNING a field-symbol. If the internal table structure is like VBAP, it has the field UEPOS.
Then, the filter will be defined for the node where you create the output line. In the node, you have a TAB called conditions. Here you can define the condition as <itabs headerline> = space.
If you do not get the item data UEPOS value in the smartforms interface, you may change the calling program and the interface or you can create a code node in the loop and get the value from database. The result can be used in the condition.
Regards,
Clemens -
Getting Item Text from sale order items
Hi All,
I am trying to get sale order item text using Include text in smartforms.
my text object is VBBP and my text id is 0004.
What should I pass in Text Name ?.---Order Number or Item Nunmber or Both.
If both can you guys explain how to pass both ?.
will be REVARDED.Hi,
When you see the texts in the line item of va03..
Double click on the text..
Then in the menu..Goto -> Header..
There you can find the Text name..
Generally if it is Item text..Then the text name will be
order number + line item
Thanks
Naren -
Delivery - Sales Order executes formatted search
Hi
Found a very strange behaviour of B1:
When making a new Delivery, which contains a formatted search in the lines, based on an sales order the value of the delivery (position) gets newly calculated -> the formatted search gets executed!. This is imho very very strange because when referencing an order i want the value SIMPLY from there (All other fields get copied too).
the formatted search is based on a saved query:
SELECT $[$38.11.NUMBER]*$[$38.U_AnzMenge.NUMBER]
-Autorefresh Yes
-When altering Column
-Display Saved Values
Any suggestions?
TIAHi there,
Can try:
SELECT 'Price'=CASE WHEN $[$38.44.NUMBER]=0 THEN 2*2
ELSE
(SELECT T0.Price From RDR1 T0 INNER JOIN ORDR T1 ON T0.DocEntry=T1.DocEntry
WHERE T1.DocNum=$[$38.44.NUMBER] AND T0.ItemCode=$[$38.1.0])
END
This query only workable for local currency or currency specify in your Delivery Order. If your Sales Order line detail have different currency then you will need to modify the query.
Hope this help... -
Reading item text of sales order using READ_TEXT but getting error
Hi Experts,
I want to read the Billing item text which is processed through from delivery.
For that I am using FM READ_TEXT, but getting error.
Text 0090014392 ID 0001 language EN not found
I am providing data in FM...
ID : 0001
LANGUAGE : E
NAME : 0090014392 (Billing Document Number)
OBJECT : VBBP
but still I am getting the error...
Can anyone provide solution?
Regards,
SURYA
Edited by: suryabasu on Mar 10, 2011 5:49 AMhii
try with this,
select single tdtxtlines
from stxh
into v_textline
where tdid = '0001'
and tdname = wa_tname-name
and tdobject = 'VBBP'.
if v_textline ne 0.
call function 'READ_TEXT'
exporting
id = '0001'
language = sy-langu
name = wa_tname-name
object = 'VBBP'
tables
lines = it_tline
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
endif.
read table it_tline into wa_tline index 1.
regards,
Sri. -
Item text from sales order to delivery
Hi All,
I have GTIN number in item texts and it has value to it, but in the delivery only text is comming as GTIN number, no value is comming for it. Can some one please help me how to check why it is not comming and how to resolve this.
I have to show the same text with value in the Invoice also. I donot even see txt there, no value also.
Please help me.
Thanks,
Veni.Hi Siva,
VOTXN is not valid for me, so used VOTX only. I selected the radio button for sales document -> item, text types. Pressed 'All' push button. Here I see that checkbox for Billing document is not checked, these are disabled here, How should I check the billing document check box.
Thanks,
Veni. -
How 2 Copy Header & Line Item Text from Purchase Order 2 Out Bound Delivery
Hi SD Gurus,
I want to copy header and line item text from Purchase Order to Out Bound Delivery (This is required in Stock Transfer Process).
I have been able to do successful config. for copying header and line item text from Sales Order to Outbound Delivery but config. doesn't seems to be same for copying text from PO to OBD.
Is there any way to achieve the same? Can some expert show the way to achieve this.
Thanks in advance.
Warm regards,
Rahul MishraHi Ravikumar thanks for u quick reply.
This is wht is currently coded.
concatenate values to get item text for read text function
invar3+0(10) = invar1. "PO number
invar3+10(5) = invar2. "PO line number
SELECT SINGLE * FROM stxh WHERE tdobject = 'EKPO'
AND tdname = invar3
AND tdid = 'F01'
AND tdspras = sy-langu.
IF sy-subrc = 0.
invar4 = invar3.
reading the text for the document items.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'F01'
language = sy-langu
name = invar4
object = 'EKPO'
TABLES
lines = it_itab.
I have seen some PO's which have info rec texts in that, which gets pulled by the above code...first thing is its id is F02 which exist in STXH table also there is other text with F01 id, and hence the table it_itab gets both these text hence no pbm.
but i came across a PO which has only one text which is info rec text with id F05 and is not store in stxh and hence doesnot get pulled by read_text fm. How do i change my cod to get this text which should not hamper other PO's as well.
As mentioned in above msgs, this F05 could be retrieved by providing object name as EINE.
anyhelp will be appreciated and rewarded.
thanks -
Route schedule not updated in some line item of a sales order
Hi Gurus,
All order are processed through the EDI interface automatically. Order
XXXXXXXXX for USA customer 40000XXXX is maintained in route reschedule
setup T-code VL52 on specific departure day thursday.
above are line item of same sales order, with same shipping point and route .
Why only some salesorder lines missing the route schedule ??
Please Help
Regards
AbhilashWhen you post a query here, you need to have patience until some members go through your post. Please dont expect somebody should respond to you immediately as everybody has their own priorities.
Coming to your query, it could be due to many reasons as per the following note:-
Note 1750978 - Route Schedule does not populate on sales order
Go through the Resolutions given in the above note and check with your system
G. Lakshmipathi -
Copy Pricing Conditions from Sales Order to Billing
Hi,
Is there anyway to copy pricing conditions for item level from Sales Order to Billing Document at the time of creation of Billing Document.
ThanksThis question is not on topic for the Web Dynpro ABAP forum and has been locked.
-
Subcontracting Order with Item Category L from Sales Order
Hi ,
I am looking for the way to create an Purchase requisition automatically from a sale order with Item Category "L" Subcontracting.
I tried but it is creating a PR with Item category "S" Third Party.
Can any body tell me where I am missing.
Thanks ,
LekhramHi,
From the sales order look at your schedule lines to find which Schedule Line category is being called for your master data and document type of Sales Order.
Go to config for schedule line category and change the item category assigned in its details. This item category is not to be confused with your SD item category. This one is of purchase requisition that gets generated from SO# in the case of Third party.
IMG> Sales and Distribution>Sales>Schedule Lines>Define Schedule Line Categories
It would be 5 - Third Party. Change it to 3 - Subcontracting.
Reward if helpful.
Regards
Maybe you are looking for
-
How do I get a song to stop at the end in garageband on ipad 2?
When a song in Garageband (on ipad 2) reaches the end, it immediately loops back to the beginning and starts playing again. I'd like to use Garageband as an accompaniment to live performance. So, how do I get the song to stop (and not restart) at the
-
In Design CS 5.0 (7.0.4) slow file performance
I work on a large catalog in a workgroup setting of 5 people. We work with files on our desktop then store them on the server when we are done. All images are linked to a locatoin on the server. We are having issues with our files being slow and unre
-
Overriding a javascript delivered function but then calling the original
I have a tabular form (updateable report) and am on Apex 3.2. On this particular form, I have the updateable report set to "partial page refresh = yes". When doing so, it appears to want to call a javascript function called $a_report to paginate from
-
Camera Raw Apparently Missing On Second Installation Of Elements 10
I have installed Elements 10 onto my desktop which works fine. When opening a .NEF file or when opening a JPEG using 'Open As Raw', the Camera Raw interface comes up. I have also installed Elements 10 onto my netbook. Whilst the prgram itself works f
-
HTML Template generated at Runtime.
There are some SAP transaction which generates code (HTML Code to be shown on user desktop thru IE)at runtime rather than having HTML templates. In this situation, what are different ways to edit the Template which is generated at Runtime. TIA