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 Balachandran
As 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
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. -
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 -
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. -
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, -
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 -
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 -
Update Sale Order Header Text through Enhancement
Hi Experts,
I Have a requirement to update the sale order Header Text , when the sale order is opened in VA02 and saved.
Here in I tried using edit_text, it updates sale order header text directly in DB during run time even before the save action is completed.
But I need to just fill the header text and that has to be saved during the save action only.
I tried coding the same in the user exit (userexit_save_document) but this user exit gets triggered only when there is some changes made to the document when opened in VA02 & Saved.
Is there any user exist to pass sale Order Header text and save when save button is clicked irrespective of the document been changed or not.
Thanks in advance
SathishHi Brad Bohn,
My actual requirement is to trigger an Idoc when the user goes to VA02 transaction and clicks save.
IDoc gets triggered only when there is some changes to that document, that is through NAST table entry based on the output configurations in NACE transaction.
Now that the user wants to trigger an IDoc even if there is no change (ie. to reprocess the IDoc) when he just opens a sale order in VA02 and click save.
It is not possible to trigger an IDoc through configurations when there is no actual change in VA02 and saved.
So it has to be forcefully sent by making some additions to the Order through coding, so I choose that Text box to fill some additional data and save .
Kindly Let me Know any thing could be done for this scenario.
Thanks in advance
Sathish -
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 -
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 -
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,
Preethihi,
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. -
Copy Sales Order item texts completely to other item in same sales order
Hi;
I need to know how we can copy item level text to other item texts in same sales order. We are maintaining most of data may duplicate but not always. So I need to copy the the earlier text & paste in item created newly.
Pl. answer.
Thanks ;
avinashDid you get answer for this query? I have a same situation and wondering if you already have a solution
thanks -
LSMW - Direct Input - Sales order - item texts
Hi Gurus,
To transfert all orders from old system to new SAP system, I make this with LSMW and program RVINVB10.
The creation of header and item of orders is good but I have a problem with item texts.
In LSMW, I have create one structure et I have affected this to the struct BTEXHKOM and BTEXLKOM.
In BTEXHKOM, the field LAISO = 'FR' and TDID='ZM03' (Id of customer text).
In BTEXLKOM, the field TXTPARAGRAPH='/' and TXLINE='BLABLABLABLA' (no more 72 char).
In actions 'Read Data' and 'Convert Data', I see this two structs. But after execution of Direct Input program, I don't see text in my item of sales order.
I think I miss something.
Can you help me ???
Thanks a lot
Laurent GuilloteauHi Laurent Guilloteau,
I am facing a similar issue.
We are trying to upload sales order data using LSMW Standard Batch/Direct input using program name RVINVB10 and program type D. We are not able to upload item text but we are not having any problem in uploading remaining data.
the details we are passing to BTEXHKOM structure are......
BTEXHKOM-OLDNR = IHEADER-OLDORD_NO.
BTEXHKOM-LAISO = 'EN'.
BTEXHKOM-TDID = 'Z009'.
and the for structure BTEXLKOM
BTEXLKOM-OLDNR = IHEADER-OLDORD_NO.
BTEXLKOM-TXPARGRAPH = '/'.
CONCATENATE LITEM-DEPTID LITEM-DEPTNAME
INTO BTEXLKOM-TXLINE SEPARATED BY ' '.
we have three input source structures.
IHEADER Header structure
LITEM Line item structure ( Material data )
IPARTN Partners structure
The structure relationships are
BTEXHKOM <<< IHEADER.
BTEXLKOM <<< IHEADER.
Please let me know if I am doing some thing wrong or some thing else need to be done.
Thanks,
Chindam.
Maybe you are looking for
-
Problems with Monitor after Hard Drive Replacement
I never had any problems with my iBook G4 until the past 6 months. I sent it in once because it wouldn't start up. They were able to fix the problem without replacing the hard drive. It malfunctioned again and the second time they had to replace the
-
Hi, I have this synchronous scenario : RFC > (XI without Integration Process) > SOAP. Imagine that there is a problem with SOAP System and i get (don't worry about the error itself): <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP=
-
Getting the error access denied trying to modify the workbook with identifier in Disocverer Admin
Hi All, I have exported a workbook created by business user as an .eex file logging in as discoverer admin from a Production enviornment (transactional databse) and trying to import it to a different environment called reporting environment ( non tra
-
Font changes on Blog main page
Hi everyone! Does any of you know if it is possible, on iWeb Blog main page, to modify the other posts than the first one ? I lowered the size of the text in my posts when editing them, but when appearing on the main page of the blog, they get bigger
-
Is it alright to erase now?
I have just installed a 40gb WD and did a OS X10.4 upgrade from 10.3.9 . When install was complete, I was asked if I wanted my old system transfered to my new drive. I answered yes and all is working fine. Would it cause any problems if I erase my ol