Adding new texts in sales order item text
Hi , we have a requirement where we need to add new texts in the sales order item texts. Ne pointers on how to do it will be appreciated.
Hi,
You can Use FM: SAVE_TEXT.
Here the sample code:
refresh: wlines, wheads.
clear: wlines, wheads.
wheads-tdname = it_text-tdname_so2.
wheads-tdobject = p_object .
wheads-tdid = p_id .
wheads-tdspras = 'E'.
append wheads.
wlines[] = it_tline[].
call function 'SAVE_TEXT'
exporting
client = sy-mandt
header = wheads
savemode_direct = 'X'
tables
lines = wlines.
commit work.
Regards,
Similar Messages
-
Text determination - sale order item text to be copied to delivery item tex
hi,
I have defined a text type and assigned to the text determination procedure and assigned those to the relevant item categories in the sales order item
How cn i configure the system so that the delivery item text should copy the same text from the sales order item to the delivery item.
Appreciate your help on this.
Thanks
keshiniDear keshini,
To copy the sales order item text to the delivery document item text
-->You do the text determination for the sales order item and delivery item also through VOTXN transaction,
-->Define and maintain same TextId's in the sales order item text procedure and delivery item text procedure ,
-->Maintain the access sequence ,in the delivery item text procedure access sequence you put the Text Object as VBBK for that delivery itemText ID.
-->Assign the access sequence to the item text ID.
I hope this will help you,
Regards,
Murali. -
Adding New ZZFIELD at sales order item level
Hi,
I have added the new "ZZFIELD" field in the "Additional data B" Section, but the client has requested that the new field ZZFIELD to appear in the first screen "SAPMV45A 4900". I have noticed that there is a field catalog when I click the configuration in the right upper corner of the "All items section".
How do I accomplish this?
Thanks in advance.
Abel.hi,
can you please check this,
it would helpful.
Basics of modification in pricing* The following communication structures are relevant in pricing:
- KOMK (pricing communication header)
- KOMP (pricing communication item)
- KOMG (allowed fields for condition structures)
For technical reasons, the communication structure KOMG is used, which
combines KOMK and KOMP, and which contains all fields which can
generally be used for pricing. When entering new fields in KOMK or KOMG,
the fields are automatically included in KOMG.
Fields for pricing are integrated into the following INCLUDES:
- header data in KOMKAZ (INCLUDE in KOMK or in KOMG)
- item data in KOMPAZ (INCLUDE in KOMP or in KOMG)
The routines for assigning values to the new fields in order
processing are found in member MV45AFZZ. Use the following user exits:
- USEREXIT_PRICING_PREPARE_TKOMK (header fields)
- USEREXIT_PRICING_PREPARE_TKOMP (item fields)
The routines for assigning values to the new fields in billing
are found in member RV60AFZZ. Use the following user exits:
- USEREXIT_PRICING_PREPARE_TKOMK (header fields)
- USEREXIT_PRICING_PREPARE_TKOMP (item fields)
Examples for using new fields in pricing
Example 1
In the first example, parts of a document field are to be used in
pricing. You want to use the first three digits of the product hierarchy
(PRODH) for pricing, for example. Proceed as follows:
1. Check the data elements in the standard system.
2. Since there is no such data element you have to create the new
data element ZZPRODH1. Also create a domain with the length u201C3u2033 and the
data type u201CCHARu201D for the new data element.
Remember that new data fields must start with the letters u201CZZu201D or u201CYYu201D,
since SAP reserved these letters to protect them from being overwritten
during a release upgrade.
3. Check whether the product hierarchy (PRODH) is found at header
or at item level.
In table VBAP, document field PRODH is defined as an item field.
4. Integrate the field name ZZPRODH in the communication structure
KOMP using the INCLUDE KOMPAZ and allocate the data element PRODH to it.
5. Activate the structure.
6. Check in which table the field PRODH exists.
The field is in table VBAP (sales document: item data).
7. Assign a value to the new field in the FORM routines for sales
order processing and billing using the appropriate user exits:
In sales order processing the user exit is found in member MV45AFZZ. The
complete statement is:
FORM USEREXIT_PRICING_PREPARE_TKOMP.
MOVE VBAP-PRODH(3) TO TKOMP-ZZPRODH.
ENDFORM.
The routines for assigning a value to the new fields in billing are
found in member RV60AFZZ. The statement is as follows:
FORM USEREXIT_PRICING_PREPARE_TKOMK
MOVE VBRP-PRODH(3) TO TKOMP-ZZPRODH.
ENDFORM.
8. Allocate the specifications A, V and 001 to the field ZZPRODH in
table T681F.
Example 2
In the second example, you want to use a partner function for pricing
which was created in Customizing for partner maintenance.
Assume that the partner function was created for a sales representative
of the partner type PE. Z1 is defined as a mandatory function for the
customer master record, therefore automatically set in the document and
available in the internal partner table XVBPA.
To use the new partner function for pricing, proceed in the same way as
for the previous examples.
1. Create a new data element, in this example, the data element
ZZVRTZ1 with the domain PERNR.
2. Include the field ZZVRTZ in KOMK using KOMKAZ and allocate the
data element ZZVRTZ1 to it.
For order processing, assigning a value to the field is carried out in
the user exit for member MV45AFZZ. The entries in the user exits are
protected during a release upgrade. The statement is as follows:
FORM USEREXIT_PRICING_PREPARE_TKOMK.
PERFORM XVBPA_LESEN (SAPFV45K) USING u2018Z1u2032 VBAP-POSNR SY_TABIX.
MOVE XVBPA-PERNR TO TKOMK-ZZVRTZ
Thanks andregards
Durga.K -
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 -
Sale order item text through BAPI_SALESORDER_CREATEFROMDAT2
Hi,
We are creating a sale order through a 'Zprogram'. Uploading the required details from a excel sheet and passing to a BAPI_SALESORDER_CREATEFROMDAT2.
We are using the 'order_text' parameter to create the item text. If there are multiple lines in the same item text likes this
(we are passing it in a single line)
Order type ORDER_ID PO number u2026u2026 Item Note - Zi01
STD 2 10 Currency - RS
Test order -1
Test item - 2
It is creating the sale order with the item text and the item text when viewed normally its appears one below one. But if we click the 'detail' button and view it through the editor mode it is appearing in the same line with # characters in between.
TAX_CURRENCY = Rupees #TAX_UNIT_PRICE =0.0000# Test order = 1
It is replacing the enter statement with '#.' We can split the text where # appears and pass it as a separate line .but this will create a problem when the data itself contains a # character.
Please advise how we can avoid this and can create the sale order item text correctly.
Regards,
Charumathi BalachandranAs you said, How are creating single line text from the multi line text.
I hope you are using a CONTACTENATE statemetn to do so. Please the SEPARATOR being used for this.
I hope you have copied texts from excel sheet to SE38 editor. Please copy text from Excel to Notepad, then Notepad to SE38.
Edited by: Priyanka Chowdry on Dec 20, 2010 11:21 AM -
Sales order item text to delivery item text
Hi All,
Please find my query below :
sales order is maintining item level text . is there any posibility to update same text at the item level in delivery ? Means after creating delivery the sales order item text tranfered to delivery item text.
How can i update the sales order item level text to delivery item level text.
is there any user-exit or any configuration process or any other process. please let me know
Thanks in advance
Regards
SudhakarCheck this [link|http://saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf]
Refer to page 19. you will have to assign the requirement to the access sequence of the header/item text determination, this, you can ask your functional consultant to do it,. If you want to code your own requirement, then refer to the link that I provided you above.
KR,
Advait -
Process to populate the new field added by AET in Sales Order item
Hi
We are on CRM 7.0 , EP1.
I have added a new field in Sales order item view (UI comp : BT115IT_SLSO , View :Items).
The field is called MTO (made to order), it should be populated based on settings in material master.
I would like to know how can I populate this field with custom logic.
Thanks
SwapnilDear Swapnil,
You can use the following steps to set the default value in field Made To Order:
1. Enhance Component BT115IT_SLSO and View Items
2. Redefine method DO_PREPARE_OUTPUT method of the View Controller Class and implement the following sample code:
super->do_prepare_output( ).
if iv_first_time = abap_true.
lr_ent->set_property_as_string( iv_attr_name = 'ZXXX' " Attribute Name
iv_value = 'YYYY' ) " Value to be set
endif.
This will make sure that the logic to set the value in this field is called only once and not after every event.
You might not like to redefine the Getter and Setter method because these methods will be triggered after each event in that view.
Hope this helps.
Thanks
Vishal -
In which tables can I find the sales order item texts?
Experts,
In SD, we have texts on sales order item level. These texts can be filled manually or automatically via access sequences. My question is very simple: in which table can I find these texts? I want to extract them for a big number of sales orders.
Reward points if helpful answer.
Thankshi
try in
TVAPT Sales document item categories: Texts
TVAKT Sales Document Types: Texts
TVAUT Sales Documents: Order Reasons: Texts
TVAST Sales Document Blocking Reasons: Texts -
How to read Sales order Item Text of item node?
Hi Sap Guru's,
I have urgent requirement, i want to read Sales order item text of item node.
can anybody give detail code.
Thanks in Advance,
Venkathi venkat,
take a look at this code
data:
git_line type standard table of tline.
data:
gwa_head type thead,
gwa_line type tline.
data:
v_first type c.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = '0002'
language = sy-langu
name = '1000000122000010'
object = 'VBBP'
IMPORTING
HEADER = gwa_head
tables
lines = git_line
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
loop at git_line into gwa_line.
at first.
move 'X' to v_first.
endat.
if v_first eq 'X'.
write: / gwa_line-tdline+10.
clear v_first.
else.
write: / gwa_line-tdline.
endif.
endloop. -
Function Module or BAPI to update Short text for sales order item(vl02n)
Hi All,
I need to update the Short text for sales order item in vl02n transaction from an internal table with Delivery number and other relevant details .
Does any body know any Function Module or BAPI which can accomplish this purpose .
Or else writing BDC is the only option I have got ? .
Please clarify .
Thanking you in advance .
With Regards,
Suriya .Hi
You can try using BAPI_SALESORDER_CHANGE if you want to change sales order
Regards
MD -
How to configure Sales order item text copy to Purchase requisition item
Hi,
How to configure sales order item text copy to Purchase requisition text then copy to PO item text.
Regards
JackHi Rajesha,
Thanks for your reply, some of the items in sales order are procured externally by us and our customer maintains text related to price and specification in the item details of the sales order, MRP creates planned order for these materials and these planned orders are always converted in pur requisition, we want that text from the sales order item details should be copied in to the purchase requisitions converted from planned orders.
is there any user exit which can be called at the time of saving a purchase req or user exit for converting planned order in to pur req.?
if there is any such exit available, then I think I can read the pegged requirement of the planned order where sales order item will be found then read the text in the item then copy this text in pur req then save pur req may work.
but this will be a bulky development, please let me know if we can shorten the development.
Thanks again
Anand -
Wrong short text for sales order item
Hi guys,
I have an issue for the short text for sales order item. It is werid that I get the different short text depends on how we enter the material. If we only enter the material #, we get the short text for sales order item from material master data. If we enter the material #, plant and storage location, we get the short text for sales order item from customer material infor record. However, the customer material infor record is only maintained for inter-compnay transaction. System should not pick it for third-party transaction.
I found a code in FV45PFAP_VBAP_FUELLEN:
Bei Primärbedarfen ist MAAPV-ARKTX nicht relevant
if vbak-vbtyp ne vbtyp_pbed.
vbap-arktx = maapv-arktx.
endif.
Kundenmatinfo hat höhere Priorität
if knmt-postx ne space.
vbap-arktx = knmt-postx.
endif.
if da_arktx ne space and
svbap-tabix = 0 and
vbapin-matnr = vbap-matnr.
vbap-arktx = da_arktx.
endif.
But it is nothing customized. Who can tell me what is wrong here?
Thanks,
DLHi,
Text coming from source (MMR, CMIR etc.) is being "pulled" via the access sequence. Check the Text analysis in your sales order in Tab Texts, at item category level. -
Maintain a drop down as sales order item text
Hi,
I need to add another text type to sales order item text,. However instead of entering text isnt it possible to have a drop down where users can select a text?
Any ideas?
Thanks
KeshiIt is not possible to select a text using drop down menu. You only can add a text type and populate the text during transaction.
Alternatively you can do the following.
Create some text elements and maintain texts for them. say 5 texts.
Now create a text type in normal text determination.
Using some user exits, you can automatically decide based on your requirement the text element from where the text has to be populated for this text type.
This should work fine for you.
Reward if this helps you -
LSMW - Direct Input - Sales order - item text
Hi,
I'm having a problem similar to the problem posted by Laurent Guilloteau on 2/3/2006 titled:
LSMW - Direct Input - Sales order - item texts
While this thread shows the issue as being answered, I'm not clear on what action to take.
I'm using an LSMW with program RVINVB10 to load sales orders to SAP.
I'm successfully loading the orders, including header level text, however the item text is not showing on the order.
I have source structures defined as follows:
Source Structures
REC1 VBAK - Header
REC4 VBPA - Order Partners
REC6 BTEXHKOM - Header Text Header
REC7 BTEXLKOM - Header Text Lines
REC2 VBAP - Order Items
REC8 BTEXHKOM - Item Text Header
REC9 BTEXLKOM - Item Text Lines
REC3 VBEP - Order Schedule Lines
In actions 'Read Data' and 'Convert Data', I see text for the two text structures, at the header and item level. But after execution of Direct Input program, I don't see text in at the item level of the sales order, however I do see text at the header level.
Does anyone have any insight on what's causing the item level text not to show on the order?
Best regards,
StuartHi all,
Many thanks for the suggestions. One of our expert developers got involved and provided the solution.
In order to have item level text populate, the VBAP-PSTYV (the sales document item category) field also needs to be populated. The VBAP-PSTYV field value is dependent on the sales document type. (Or, at least it is for the configuartion set up in my example) The sales document type is VBAK-AUART.
Stuart -
How to copy sales order item text in to purchase requisition
Hi Experts,
We enter text for the sales order items in the sales order item details.
we have done settings for the purchase requision to copy text from sales order into purchase requisition and this works for purchase requisitions automatically created from sales order.
we need to get text from sales order to be copied in purchase requisitions which are created by converting the planned order.
we have tried SPRO settings SPRO->Materials Management>purchasing--->text for purchase requisition.
but this settings does not works for Pur Req. created by converting the planned order.
is this because planned order does not have segment for text like sales order and purchase requisition?
Please let me know if it is possible through standard SAP or with the lease development, any help will be appreciated.
Thanks
AnandHi Rajesha,
Thanks for your reply, some of the items in sales order are procured externally by us and our customer maintains text related to price and specification in the item details of the sales order, MRP creates planned order for these materials and these planned orders are always converted in pur requisition, we want that text from the sales order item details should be copied in to the purchase requisitions converted from planned orders.
is there any user exit which can be called at the time of saving a purchase req or user exit for converting planned order in to pur req.?
if there is any such exit available, then I think I can read the pegged requirement of the planned order where sales order item will be found then read the text in the item then copy this text in pur req then save pur req may work.
but this will be a bulky development, please let me know if we can shorten the development.
Thanks again
Anand
Maybe you are looking for
-
ICloud child account - Can't log into Apple ID or iCloud with child account
Nightmare! Created three kids accounts. Loaded the ID on iTouchs. Then went to https://appleid.apple.com/account/home to change info... couldn't log in. I also couldn't log into iCloud with the new ID's. After a call to apple (no help) and thinkin
-
Entourage (2004) creates duplicate inbox messages after upgrade to Tiger
I recently upgraded to Tiger in order to sync my iphone. All works well except incoming mail messages duplicate themselves in my Entourage Inbox. Some of the duplicate messages cannot be opened completely and cannot be deleted. I unsuccessfully searc
-
How to invoke processes viw Web Services
I am trying to test out how we can create/call processes from external programs via Web Services. I have gone into Studio, I have created a Process called "Customer Call" in a "Process/Customer" Folder which has an id of "CustomerCall". Then I have g
-
10.5.7 Update not showing in Installed Updates log
Hello everyone! Not sure if this is some type of problem or not but I'm checking with you guys before I do something drastic like reinstall Leopard or something. I installed the 10.5.7 update yesterday on my iBook G4. After I installed it, the comput
-
When is Apple going to fix keyboard shortcuts?
iOS6 has been out for more than a year now. When is Apple going to get around to fixing the keyboard shortcuts. They worked perfectly on iOS5 but they only work about 10% of the time with iOS6. Will this issue be resolved with iOS7?