Automated insertion of text into Sales order header
Hi Guru's,
we are recently working on specific request for automated creation of sales documents.
On each sales order there is a need to update specific fields on header level with default values - no problem.
There is also need to insert specific text into Header text: "Service reendered YYYY-MM-DD" into each single order generated by this automated way.
Do you know any functionality that we can implement into our solution or any other solution which is coming to your mind?
THANK YOU!!!
Hi
Please try with the following user exits.
USEREXIT_MOVE_FIELD_TO_TVCOM_H
You can use this user exit to influence text determination for header texts. For example, you can include new fields for text determination or fill fields that already exist with a new value.
USEREXIT_MOVE_FIELD_TO_TVCOM_I
You can use this user exit to influence text determination for item texts. For example, you can include new fields for text determination or fill fields that already exist with a new value.
Regards,
P Gomatheeswaran.
Similar Messages
-
How to update TEXT in Sales order header
Hello ,
I have requirement in which I am creating SO via IDOC calling BAPI_SALESORDER_CREATEFROMDAT2.
Question: Can any one help me in finding a solution to update the TEXT in sales order header which is confogured IN TEXT CONTROL in SD.
I have tried various option using CREATE_TEXT but it is only updating STXH table , the text is not coming in the sales order.
If someone knows about this , <removed by moderator>.
Edited by: Thomas Zloch on Nov 15, 2010 4:20 PM - please do assign priorities > normalSounds like a text determination config issue - have you assigned the text in VOTXN? Have you run the text determination analysis from VA02 in the document?
-
Marketing text in sales order header
Hi All,
Please let me know from where does the text gets reflected in sales order header. Header has a tab TEXTS, in which we have series of texts.
Do we have option to save the texts in any table/structure
Thanks in advance
regards,
satyaHi
Go to SO10 and check the material text . Now go to VOTXN and check wheather the assignment is there for sales header or not
Regards
Srinath -
Create the Header Text In Sales Order Header
Hi All,
I want to create a new header text in the sales order header level, Would you mind give me some manual to create this ?
Regards,
LukeHi Luke,
Please goto T-code VOTXN->Sales Document->Header->Text object VBBK
You could create Text ID and access sequence.
Assign the access sequence to text ID.
Assign the text ID to the procedure.
Assign the procedure to sales order type.
Please also refer the following online documentation:
http://help.sap.com/saphelp_47x200/helpdata/en/dd/55f993545a11d1a7020000e829fd11/frameset.htm
Hope it helps.
Regards,
Smile
Edited by: Smile Zhang on Jul 3, 2008 7:22 AM -
Reading the block message or text from sales order header.
Dear All,
Please let me know how to read the block text which is present in the sales order header under texts tab.
thanks in advance
regards,
ShobanHI
Please look intothe follwoing code, which helps you to understand how to read the header slaetext.
DATA: BEGIN OF text_head.
INCLUDE STRUCTURE thead.
DATA: END OF text_head.
DATA: BEGIN OF TEXT_LINES1 OCCURS 10.
INCLUDE STRUCTURE TLINE.
DATA: END OF TEXT_LINES1 .
DATA: text_id LIKE thead-tdid VALUE '0001'.
DATA: text_spras LIKE thead-tdspras VALUE 'EN'.
DATA: text_name LIKE thead-tdname.
DATA: text_object LIKE thead-tdobject VALUE 'VBBK'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = text_head-tdid
language = text_head-tdspras
name = text_head-tdname
object = text_head-tdobject
TABLES
lines = text_lines1
EXCEPTIONS
id = 1
language = 2
name = 3
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
CASE sy-subrc.
WHEN 1. RAISE invalid_id.
WHEN 2. RAISE invalid_language.
WHEN 3. RAISE invalid_name.
WHEN 4. RAISE NOT_FOUND.
ENDCASE. -
Automated Custom Delivery Block on Sales Order Header
Hi Experts,
Please advise how to add Custom Delivery Block and assign to Header Level Configuration (take note configuration). Please, I know the table TVLSP and TVLS but I don't know how to modify them. I know also how to develop and assign the value to User-Exit. However, the existing Delivery Blocks are not approriate so I need to create a new Delivery Block (as maintained in TVLS). And also it is not possible to change only VBAK-LIFSK in user-exit MV45AFZZ (USEREXIT_SAVE_DOCUMENT_PREPARE) as written in SAP quote:
"The delivery block at header level is only effective if this block is assigned to the corresponding delivery type in the Customzing table (TVLSP). Regardless of the settings in Customizing, the delivery block is always effective at schedule line level."
Please advise if this is possible to configure.
Thanks a lot for your answers!
Edited by: Cecilio Cruz II on Jan 10, 2011 10:32 AMHi,
You can try creating the block in SPRO >> Logistics Execution >> Shipping >> Deliveries >> Define reasons for Blocking in Shipping >> deliveries : Blocking reasons / Criteria
and Delivery Blocks.
In the first one, you create your delivery blocks and in the second you assign them to deliveries. They are created in table TVLSP.
Hope this helps
Regards,
Mukund S -
Transfer of Header text from Sales Order to Delivery
Hi Experts,
I had a requirement to populate Terms of delivery text in Sales Order Header text with some predefined value which I have accomplished using MV45AFZB - User Exit USEREXIT_CHECK_VBAP which transfers the text on save of the document to sales order header (terms of Delivery Text ) .
Now the issue is the same text is required to be copied to delivery - Terms of Delivery header Text. But this is not happening/Its occuring one out of 4 times . I am not able to find out the reason for this.
Please help in this regard.
ThanksThis can be set in conifugration. Transaction VOTXN. The delivery header text can be set to be referenced from the sales order.
-
Sales Order Header Text....
Hi All,
I have given some text in sales order header. I want a field and table name of text entered in sales order header.
Yusuf.Hi,
Try this table STXH ( SAP script text file header)
For more details on tables in sd go to link given below
http://www.erpgenie.com/abap/tables_sd.htm
Award points if helpful
Regards,
Amrish Purohit -
Test maintain in sales order header not getting copied to delivery
Dear All,
I have maintained the text in sales order header.Initially system was copying the the text to delivery header but now it is not copying.I have not changed any setting.Please guide what could be the reason.
Regards,
DeeptiHi,
Check the language texts, ie: perhaps the language of SO is EN because the language of customer is EN but the language of delivery is DE, and in VOTXN you have a flag for language with wrong option.
I hope this helps you
Regards,
Eduardo -
Storing sales order header text prior to SAVE
Hi.
I have a requirement to manually create a header text during sales order create based on certain criteria. I believe I would need to put this text into the internal storage/memory so that it would be as if the user entered it. Then upon save, this header text would be associated with the newly created order. I just cant figure out how to accomplish that.
I cannot find any method to create the text since there is no sales order number (TDNAME) available at the time.
Can this be done? Any help would be greatly appreciated.
Thanks.
Mike.SAP handles this somehow, so I'm going to take a guess at how it works....I think there's a text table and inside there the TDNAME will have the temporary SD doc number (like &0000000001 or something).... If you can find that and add your texts with the TDNAME same as rest of the internal text table, and 00000 appended for the POSNR (0=Header level in SD speak), SAP should insert these for you at SAVE... A suggestion: I haven't tried this and can't verify since my installation doesn't run logistics.
-
Archived Data - Sales Order Header Text
We have archived the object SD_VBAK and I notice that some of the sales order header text also been archived. Now, the question is from where I retrieve back those header text. I am building the info structure but I need to know the object name for the header text.
Please help.The texts are archived using the class TEXT, and as such cannot be added as a object into the infostructure.
I would suggest you try building a new fieldcatalog, in which you could try introducing the field TDLINE from table TLINE. I dont know if this would work, but you could try.
Otherwise, I think the only way to read the text would be by writing a program to do so.
Hope this helps.
Sudha -
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. -
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 -
Header Text And Item Text in Sales Order
Dear ALL
First one:
I have two different problems with text in sales order, when i create sales order after giving all the information like customer and material.
If i navigate through the Go To-- > Header ---> Text then there is a dump is any idea what all i need to check?
Error Message
A RAISE statement in the program "SAPLOLEA " raised the exception
condition "CNTL_ERROR".
Since the exception was not intercepted by a superior program
in the hierarchy, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
The termination occurred in the ABAP/4 program "SAPLOLEA " in
"AC_SYSTEM_FLUSH".
The main program was "SAPMV45A ".
The termination occurred in line 27
of the source code of program "LOLEAU02 " (when calling the editor 270).
Second one:
when i am creating the sales order without enter the quantity , customer and material if i navigate through the Header Text or item Text i can able to go but there in no dump, the moment i enter the quantity for the material then it over writes all the text in item and header.
Any suggestions please?
Thanks & Regards,
VeerDear Veer,
Please take the help from the technical people to fix the issue because it may related activation some Z developments which are related to the text.
Check the text determination procedure configuration settings also whether the text is calling from the Customer master and Material master.
If the text is calling from the master data maintain the text in the master data then try.
I hope it will help you
Regards,
Murali. -
Third Party : Sales order Header text should copy to PO Header text
Hi,
I need to copy sales order header text to PO Header text
in the third Party sales order scenario.
Can anybody suggest how to do it.
Thanx in advance.
Regards,
RRS.I doupt that this is possible without using a user exit.
The 3rd sales order will create a PR, the PR has no header text (just a header note = internal use), the PO is created in reference to the PR. And it is not possible to copy PR header text to PO header text.
Maybe you are looking for
-
Slow System Performance after binding Machine to OD
Hello, I've recently installed Leopard Server using standard configuration. I bound two machines to test and I noticed immediately that I took a performance hit speed wise just doing regular stuff like opening applications and browsing internet takes
-
I had ITunes installed up n running last November. Few weeks ago I started getting error messages and said to reinstall ITunes to fix the problem. So I went to control panel and deleted all Apple related programs, quick time n Itunes and reinstall
-
Cannot read multiple resultsets from transaction datasource
I get a SQL exception "This object was closed() and cannot be used anymore." when I try to access the first row of the second result set from a stored procedure. This occurs when the code is running within an EJB using a transaction-capable datasourc
-
Partial payment for f-47 request
Hai When i process a payment throughf110, entire payment request gets cleared, i will have no option of making partial payment. Is there any process or can any config change be effected to make partial payment. Kindly guide me. Thanks.
-
Pre-Comp with Collapse Transformation / Masking / Expression Controls / Etc
Is there an issue with Pre-Comps and with the Collapse Transformation enabled? I have a Pre-comp that has various layer modes in it and in the main comp, the Pre-Comp has collapse transformation enabled to see the layer modes so the text can blend in