Copy Fields Into Sales order Item Text
Hi All,
I got a requirement where i need to copy the populated custom fields including the appropriate field labels into item text in sales order creation and i am provided with Text Procedure: Z1 and Text ID: 00002. kindly help me.
Thanks,
Preethi
hi,
I have tried with save_text. but its not copied to the item text tab.
(goto->item->texts)
here is my code:
DATA : gt_text TYPE TABLE OF tline WITH HEADER LINE,
gt_textname LIKE thead-tdname,
gt_textobject TYPE TABLE OF thead WITH HEADER LINE.
CONSTANTS : c_0002 TYPE thead-tdid VALUE '0002',
c_vbbp TYPE thead-tdobject VALUE 'VBBP'.
CONCATENATE xvbap-zzrelid xvbap-zzsorg2
xvbap-zzsorg3 xvbap-zzsorg4
xvbap-zzsorg5 xvbap-zzsorg6
xvbap-zzsorg7 xvbap-zzsorg8
xvbap-zzsorg9 xvbap-zzsorg10
xvbap-zzcusttrdgrp INTO gt_textname.
gt_textobject-tdid = c_0002.
gt_textobject-tdname = gt_textname.
gt_textobject-tdobject = c_vbbp.
gt_textobject-tdspras = sy-langu.
APPEND gt_textobject.
CONCATENATE 'relationship Owner:' vbap-zzrelid INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 2 :' vbap-zzsorg2 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 3 :' vbap-zzsorg3 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 4 :' vbap-zzsorg4 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 5 :' vbap-zzsorg5 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 6 :' vbap-zzsorg6 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 7 :' vbap-zzsorg7 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 8 :' vbap-zzsorg8 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 9 :' vbap-zzsorg9 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 10 :' vbap-zzsorg10 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = gt_textobject
savemode_direct = 'X'
TABLES
lines = gt_text
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
kindly resolve y it is not copied to the item text tab and also in which user exit i need to place my code.
Thanks,
Preethi.
Similar Messages
-
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 -
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. -
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 -
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. -
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 -
Want to copy an entire sales order item and add it as a new item to same SO
Hi,
I want to copy an entire sales order item and add it to the same sales order with a different quantity. When I use the regular BDC and add it gets me only the default values for fields like Forwarding Agent etc. But doesnt actually copy any changes. Is there some standard SAP function module or some other mechanism I can use to exactly copy the original item along with all the changes values e.g pricing conditions, forwarding agent etc.
Thank you for reading.How will this help me for copying an item? This function module is only useful for the following
1. Delete the whole order
2. Delete order items
3. Change the order
4. Change the configuration
In order to change the order items I first need to know the items.
Is there any function module which can read all the values in a sales order item, then I can pass them to BAPI_SALESORDER_CHANGE probably -
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 -
Want to pass STRS2 field into sales order and contract.
Hi Friends.
I am creating Sales order using function module IDOC_INPUT_ORDERS and Contract using SD_SALESDOCUMENT_CREATE.
Now I want to pass STRS2(House number field into Sales Order/Contract). In IDOC I tried to pass E1EDKA1-STRS2, but its not coming into Sales order output.But SD_SALESDOCUMENT_CREATE dont have an option to pass the field value.
So in that case how can I achieve the desired functionality, Is there any user exit or let me know the suitable method to achieve the functionality.
Thanks
GowrishankarYes I tried that also.I passed the value from program to user exit MV45AFZZ and updated the structure XVBADR in USEREXIT_SAVE_DOCUMENT_PREPARE, but its not getting reflected in Sales Order/Contract.
Anyone have suggestion..plz let me know.
Thanks
Gowrishankar -
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, -
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 -
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 -
Create additional field in sales order item and copy to purchase order item
Dear SAP Gurus,
I am hoping that someone could help me by providing me with how to implement the following 2 requirements in the SD order and in the purchase order.
1. I am wanting to add a custom field to the SD sales order item copying a value from the vendor customer master.
2. I then want to add a custom field to the purchase order item and copy the value from my custom field in 1. to this new custom field..
Can you please advise how I would go about implementing the above requirements? I am assuming that there are exits to allow me to implement these 2 requirements.
Many thanks
HenryHi,
For the first requirement you can use the USEREXIT_MOVE_FIELD_TO_VBAP in report MV45AFZZ.
For the second, as I think that you will create a RFQ you can try to use the enhancement MEREQ001.
Regards,
Eduardo -
Sales order item text to purchase requisition
Hello Team,
we have scenario in which we create the sales order and while creating the sales order we put the production memo text at the item level under text tab in it.
We have define copying rules for the production memo text under PR customizing text types to get it copied from the sales order. But when we are creating the PR for the sales order then the production memo text is not flowing into the purchase requisition.
I checked some OSS notes and found recently released note 448814 which says that text does not gets copied to PR when PR is created manually from the sales order ( question no 24 and 25 in the note ) due to technical reasons and it gets copied only when the PR gets created directly from the sales order.
Could you please help me to know if this is standard problem or some other settings exists and if anyone have other solution to it. ?
Thanks and Regards,
Deepak GuptaHi Jurgen,
Thanks for the reply. I was expecting to know if others have came across similar kind of issue and after following up with SAP, if they have provided some other solution.
Thanks
Deepak -
How to add three fields in Sales order item level and supress/hide many
Hi Gurus,
My client requirement is :
1. Three fields to be added at Sales order Item level and they should flow till billing.
2. Supress/hide most of the fields in Sales order, so that end user will be happy( thru SHDO how to do)
Please share your experiences and help me.
BEST REGARDS
SrikanthHi Subba Rao
in VA01 screen - Material /qty/ after entering this client wants to enter three more details say X/Y/Z
and after that he dont want to see maximum fields displayed in VA01 Screen.
I think it makes sense.
Regards
Srikanth
Maybe you are looking for
-
Movies I've purchased on my iPod Touch don't show up on the device anymore
I've downloaded several movies from iTunes on my iPod Touch which no longer sync. They still show up on my MacBook Pro and in the sync screen on my laptop but I can't get them to show up on my iPod? What am I doing wrong?
-
I downloaded iOS 5, now how do i get it to work on my iPod touch?
I downloaded iOS 5, now how do i get it to work on my iPod touch?
-
URGENT! Share session object in JSP and JServlet
Dear all, I am new to OAS. I am now trying OAS by build a simple Shopping Cart application. Currently, I use JSP to build user interface and Servlet to build bussiness logic. So I use JSP cartage and JServlet cartage to build the application. However
-
Showing Visual composer iviews within Web Page Composer (wpc)?
I am able to integrate KM iviews from the PCD into my web page composer pages, but when I try showing Flex 2 iviews generated by Visual Composer the flash runs on top of everything else on the page. The flash is simply put at page coordinates 0 x 0 w
-
How can I save current document in my Reader plugin?
I tried PDDocSave - compiler fails. API overview tells - this is available in PRo or STD