Output and sales text maintainenance
Hi Experts
Please advise me on these chnage requests
1. How to assign a sales dcounem type to a output type here the Docuemnt type Debit memo request
a, How and where to assign the default printer
b.what changes need to assigned to a output procedure
Please advise the whole process
2. sales text has to printed in the quotaion output
a. I know some changes have to be made in the Form ,besides this what all the functinal changes have tobe made
b. Should we maintain the text in Material master sales text view , does this automatically take in the Form print the Output
c. what confirguration changes needs to be followed Pls advise
3.For a consolidated invoice to get we have the Spilt criteria in standard SAP , diffrent ship to Parties with the regionall code
Pls advise me to get the consolidated Invoice
Should we write a routine in the copying controls and write a new routine Please advise how to get consolidated invoices
Thanks in advance for your patient replies
Hi there,
1. To assign a sales document type to a output type goto T-code V/43 and assign the necessary output procedure and output type.
1. a) Goto T-code NACE select your document type and goto condition record ( if already maintain it , then go in change mode) select the necessary combination of which you want or you maintain the record, filed out the necessary fields and click Tab : Communication" and in Output devices column provider your printer details * if you want immediately print do not forget to check the box "Print immediately".
1. b) Goto your output procedure and add your output type condition with necessary requirement field.
2. a,b & c) Sales Text is printed from Material Master , if you maintain any text in Sales Text tab here, it will be printed on every sales document. For Qoutation also it will print from Material Master, but maintain proper copy control so that it can be populated in the preceding documents also. Ensure other necessary requirement to be maintain in Smart Forms. No other configuration required other then this.
3. To get a consolidated invoice you need to have following creterias:
i) Same Payer
ii) Same Billing document type
Also you can use the T-code VF21 for consolidating your invoices into one invoice list it is already there in Standard SAP
Hope I met your requirement revert me back
Regards
Abdullah
Similar Messages
-
How to insert sales text (MM02) into a single record of a Ztable.
Hi,
I'm extracting data from different data base tables and populating a Ztable which has Matnr as primary key and sales text as a field.
I have already used READ_TEXT to display the text and it is displayed in multiple records which in turn leads to duplication of Material numbers.
Now I want to avoid duplication of records (Matnr) as this being a primary record, and display the sales text of a particular material number into one single record.
Can anyone tell me how to insert sales text (MM02) transaction into one single record.
Thanks,
Govindsorry i am not enough clear about your requirement...
as i can understand i am explaining to you.
suppose your itab contains repaeating matnr.
matnr
1
1
2
2
2
3
3
like this.
data : text(200),
matnr like mara-matnr.
loop at itab.
call READ_TEXT fnmodule.
loop at tline.
concatenate text tline-tdline into text.
endloop.
matnr = itab-matnr.
at end of matnr.
itab1-matnr = matnr.
itab1-text = text.
append itab1.
clear text.
endat.
endloop.
NB change the code as per your requirement
regards
shiba dutta -
How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR)
Hi
Am working on a Report based on Purchase order & Sales, Could any body tell How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR).
the Field i need to get are : SALES TEXT, PO TEXT.
Sunil.Hi Sunil,
For getting Material PO text and sales text, you have to rely on Purchase Order and Sales Order. And use READ_TEXT function module to fetch the text.
Below are examples of PO text and Sales Text:
1. PO text:
CALL FUNCTION 'READ_TEXT'
EXPORT
ID = 'F03'
LANGUAGE = SY-LANGU
NAME = '450000011200010' conacte PO number and line item number
OBJECT = 'EKPO'
TABLES
LINES = INT_TLINES "you will get text in this table
2. Sales order text:
CALL FUNCTION 'READ_TEXT'
EXPORT
ID = '0001'
LANGUAGE = SY-LANGU
NAME = '0000000036000010' conacte SO number and line item number
OBJECT = 'VBBP'
TABLES
LINES = INT_TLINES "you will get text in this table
ref: STXH and STXL tables.
Hope it will solve the problem.
Regards
Krishnendu -
Not able to save report output in a text file and RTF file
I am using Oracle Developer6.0 . I am facing problem with reports. I am invoking reports from form using run_product.
1. I could not able to save the report in text file . Whenever i try to save the report output in a text file.It gives dump and application get closed.
2. In RTF format , it execute the query which i have given at the design time while creating a report . But while running i am passing query either through lexical parameter or passing value of where criteria user parameters. It display the output for the specified value. But when i save this report output in rtf file . It execute design time query and save that in a rtf file.
If any body is having any idea about it . Please let me ASAP . It is very urgent for me.
Thanks in advanceTry the following:
Do not generate the report to .rep file, but rename/copy the .rdf file to .rep file and execute it. -
Sales text and config for a material
Hi,
I need to know on which table are the maintained Sales text, languages and configuration for a material are stored on R/3
Thanks for any comments
KamranHi vahed kamran,
As said by Aparna, the text are stored in table STXH. we need to fetch them by using the fields
TDOBJECT Texts: Application Object
TDNAME Name
TDID Text ID
TDSPRAS Language Key
we can use READ_TEXT Function module to get the text.
For Example
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = '0001'
LANGUAGE = 'E'
NAME = XNAME
OBJECT = 'VBBP'
TABLES
LINES = i_XTLINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6.
Best regards,
raam -
Seeking to fetch thcorrect sales text and comment for a material number
Ladys and Gents,
Currently I have the problem to fetch correct sales text and comment text on the data base for a certain material.
For this purpose Ill can use the CALL FUNCTION 'READ_TEXT' as bellow which works quite good. I just have to call it two time, once for the sales text and next time to fetch the comment text. But first I need to know for which languages a sales text is maintained before I call this function and give the language as an input like E. I would be very thankful for any comments.
/Kam
PS:
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = '0001'
LANGUAGE = 'E'
NAME = l_tdname that contains mat.Number
OBJECT = 'MVKE'
TABLES
LINES = i_sales_text contains the return text
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.hi check this...
http://help.sap.com/saphelp_nw04/helpdata/en/e0/7846ec17e111d2b429006094b944c8/frameset.htm
regards,
venkat -
Sales text and Purchase Order Text
Hi,
in what tables are stored Sales text and Purchase Order Text of the material master ?
Best RegardsHi
All long text is stored in STXH and STXL.
Object is MATERIAL.
Text-Id for basic data text is GRUN
Text-Id for purchase order text is BEST
For sales order text it is text object MVKE with text-id 0001
Go to SE37 function builder. Enter READ_TEXT and do a single test ( F8 )
Enter your parameters and execute. Example below.
NAME is a comibation of materialnumber (00000000008000000)WITH leading zeros
if numeric and sales org (1000) plus distribution channel (10)
Import parameters - Value
CLIENT - 010
ID - 0001
LANGUAGE - E
NAME - 000000000008000000100010
OBJECT - MVKE
ARCHIVE_HANDLE - 0
LOCAL_CAT
Just for future reference with regards to getting text id's etc.
eg: PO texts.
--> Go into the material master PO text
--> Double click into the required text.
--> Click the "GO TO" menu option.
--> click Header.
and all the info you need is there.
Thanks.. -
Uploading sales text and Purchase order text for material master
Hi,
I have created, material master with LSMW byt not updated SALES TEXT and Purchase order text with LSMW now i want to uplaod the sales and po text for material master can you give some link or ref. code to upload the text i have near 1000 items for which i want to uplaod text when i have done the recording with SHDB i have not found filed in recording.
regards,
zafarHi,
I have made the code in se38
as below but still it is not working
REPORT ZTEST_TEXT.
data: headerl like thead occurs 0 with header line.
data itab3 like tline occurs 0 with header line.
headerl-tdobject = 'MATERIAL'.
headerl-tdname = '00000000000LSMW123'. "(Material : 000000000300000560, Sorg : 0001, Dist channel: 01)
headerl-tdid = 'BEST'.
headerl-tdspras = 'E'.
append headerl.
move '*' to itab3-tdformat.
move 'Testing PO text' to itab3-tdline.
append itab3.
call function 'SAVE_TEXT'
exporting
header = headerl
insert = ' '
savemode_direct = ' '
tables
lines = itab3
exceptions
id = 1
language = 2
name = 3
object = 4
others = 5.
IF SY-SUBRC = 0.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = headerl-tdobject
NAME = headerl-tdname.
ENDIF.
break-point.
regards,
zafar -
Build Array and Output Values to Text or Excel File
I know this is a simple question but I need some help. I'm reading a DC voltage in LabVIEW a while loop. I want to store all the read values into an array and export that array as an text or Excel file. I had a VI that I build before for this but I cannot seem to find it and I can't remember how I did it before. Any help is appreciated. I think I can do the exporting part but I do help with building the array (storing all the data values).
I run into a problem while using the "Write to Text File Function". Initially I took about 60 measurements and wrote to a text file. That works but I increased the amount of measurements to be taken to 600 and when I did that the output in the text file are all Chinese letters (or that's what it seems like). Is this because I'm writing too much data?
When I use the "Write To Spreadsheet File VI" to write the measurments it works fine for the 600 measurements. The problem with this is I cannot insert any text. Using the "Write to Text File Function" I inserted some text before the measurements and "end of lines", to format the data. Attached is a screenshot of my VI.
Attachments:
measurements.PNG 45 KB -
How to download material sales text and purchase order text information
Here is situation:
goto MM03 transaction,
Take any material -- and select below views
1. sales text
2. purchase order text
i have to write the download program with the sales text and purchasing text information of all the materials.
could you pls tell me in which table I will get all the above sales text and purchase order text infrmation.
I think it will store in standard text. I checked STXH table also for getting information text object, text id, text name, language, etc.
If anybody knows .. please share.
Thanks in advance.
Regards
RaghuDeclare internal tables as follows: - An example
TYPES: BEGIN OF TY_PO_LINES,
INCLUDE STRUCTURE TLINE.
END OF TY_PO_LINES,
TY_PO_LINES_T TYPE STANDARD TABLE OF TY_PO_LINES.
TYPES: BEGIN OF TY_PO_TEXT,
TDOBJECT TYPE TDOBJECT
TDNAME TYPE TDOBNAME,
TDID TYPE TDID,
SPRAS TYPE SPRAS,
TDLINES TYPE TY_PO_LINES OCCURS 0,
END OF TY_PO_TEXT,
PO_TEXT_T TYPE STANDARD TABLE OF TY_PO_TEXT.
DATA: PO_TEXT TYPE TY_PO_TEXT_T
PO text:
Looping at your internal table which consists of PO number,
SELECT TDID TDSPRAS FROM STXH INTO A INTERNAL TABLE say PO_TEXT
TDOBJECT = EKKO "PO Header Text
TDNAME = PO NUMBER
SELECT TDID TDSPRAS FROM STXH INTO A INTERNAL TABLE say PO_TEXT
TDOBJECT = EKPO "PO line item text
TDNAME = PO NUMBER
ENDLOOP
Looping at PO_TEXT
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = PO_TEXT-TDID
LANGUAGE = PO_TEXT-TDSPRAS
NAME = PO_TEXT-TDNAME
OBJECT = PO_TEXT-TDOBJECT
TABLES
LINES = PO_TEXT-TDLINES
ENDLOOP
Follow the same above logic for material with suitable TDID you need to extract
Hope this helps,
SKJ -
Hi friends,
Please somebody tell me what is sales text and Purchase order text???and why these are used???Hi Reema ,
The usage of texts in SAP is very generic and it is used for all entities and documents . For example the texts exist for Vendor master / CUstomer master and in Sales as well as Purchase orders at item and header level .The long texts are used to maintain certain informative texts which the user wants to have and major benefit is that the additional long texts can be provided to the user through functional customising in IMG - SPRO you do not need any ABAP exit or enhancement for this.
Now you can maintain these texts programatically using the FM :
CREATE_TEXT
SAVE_TEXT
while you can read the existing texts using the FM ' READ_TEXT' .
For this purpose you can also go thru this blog /people/deepak.bhalla/blog/2005/01/24/storing-and-retreiving-of-texts .
I am giving extract from same below :
Please let me know if you need anything further on this .
There are following ways of storing text in SAP.
1. Using Text Object and Text ID
2. Using Standard text with placeholders
<U>1. Using Text Object and Text ID:</U>
I am assuming that we already have a data in structure required by function module save_text for tables paramenter lines.
1. Use Transaction SE75 to create Text Object and Text ID.
2. Choose first radio button Text Object and ID's
3. Click at create. It will create Text Object.
4. Create Text ID for Text Object.
Now this created Text ID and Text Object can be used to Save and Retreive texts using following function module.
CALL FUNCTION 'ZSAVE_READ_TEXT'
EXPORTING
Save_read_indicator = 'X'
header = p_header
TABLES
lines = p_line.
Exporting parameter Save_read_inidcator type char1. default 'X' for Save.
Header should be of type thead
Tables parameter lines should be of type tline.
Header values should be populated as follows.
p_header-tdobject = name of the text object created.
p_header-tdname = It can be any Unique name.
p_header-tdid = name of text id created.
p_header-tdspras = sy-langu.
p_header-tdtitle = title of text.
Table P_lines will contain all data that is to be saved.It may be through Text control.
call function module save_text as follows to Save text.
If save_read_indicator = 'X'.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = p_header
IMPORTING
FUNCTION =
NEWHEADER =
TABLES
lines = p_line
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5.
ELSE.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = TEXT_ID
LANGUAGE = SY-LANGU
NAME = Same as TDNAME in Save_text
OBJECT = TEXT_OBJECT
TABLES
LINES = LI_LINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
Endif.
<U>2. Using Standard text with placeholders</U>
Here I am assuming that for all placeholders we will have value availble.
1. Maintain standard text with place holder using transaction SO10.
for example :
Dear &1,
Your purchase requisition &2 was approved on &3 .
2. Use following following function module to read Standard text.
CALL FUNCTION 'READ_STDTEXT'
EXPORTING
id = 'ST'
language = sy-langu
name = name of standard text
USE_AUX_LANGUAGE = ' '
USE_THRUCLIENT = ' '
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
lines = p_std_text
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
REFERENCE_CHECK = 5
OTHERS = 6.
3. Use following code to replace Placeholders returned in table p_std_text.
Loop at p_std_text.
SEARCH p_std_text-tdline FOR '&1'.
IF sy-subrc = 0.
REPLACE '&1' WITH p_name INTO p_std_text-tdline.
ENDIF.
SEARCH p_std_text-tdline FOR '&2'.
IF sy-subrc = 0.
REPLACE '&2' WITH p_name INTO p_std_text-tdline.
ENDIF.
SEARCH p_std_text-tdline FOR '&3'.
IF sy-subrc = 0.
REPLACE '&3' WITH p_name INTO p_std_text-tdline.
ENDIF.
MODIFY p_std_text.
Endloop. -
Header and Item Texts for Sales Order
Hi,
Can any one help me on Header Text and Item Text...........
<b>STXH & STXL</b>
TDOBJECT :__________
TDID:_____________
TDNAME :_______________
Regards,
Raghunath.SHi
Double click on the related text
it will open Text editor
from Menu GOTO-> header
for SO HEADER Texts
then you see the 4 paramters like OBJECT (VBBK),ID,OBJECTNAME (sales Order No) and LANG
FOR SO ITEM texts
OBJECT (VBBP table), ID, OBJECTNAME(SO no plus ITEM No) and LANG
You have to pass these 4 parameters to READ_TEXT fun module to fetch the corresponding texts
see the doc on READ_TEXT
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).
<b>Reward points for useful Answers</b>
Regards
Anji -
Trigger delta and extract header and item texts for sales order
Hi,
I need to force a delta as well as extract the header and item texts when any (and only) change is made on the sales order texts.
Nothing else is changed on the order except the header or item texts.
Please advise how this can be achieved in the user exit of the VA02 transaction. Please suggests suitable FMs that could be explored.
Thanks
ShreyasHi,
I need to force a delta as well as extract the header and item texts when any (and only) change is made on the sales order texts.
Nothing else is changed on the order except the header or item texts.
Please advise how this can be achieved in the user exit of the VA02 transaction. Please suggests suitable FMs that could be explored.
Thanks
Shreyas -
Header Text and Item Text for Sales Order
Hi,
Can any one help me on Header Text and Item Text............ ASAP.
<b>STXH & STXL</b>
TDOBJECT :
TDID:
TDNAME :
Regards,
Raghunath.SHi Raghunath,
Go to the text <b>in plain page mode</b>, and then you do via the menu '<b>GoTo</b>' -> '<b>Header</b>' and you get the parameters you need ( object, name, id, ...).
Repeat this operation for each text.
<u>Tips :</u> If you want to handle those text, use FM : READ_TEXT, EDIT_TEXT, and SAVE_TEXT...
Hope this helps,
Erwan -
How to get the Sales Text?
Hi,
I need a Function which will help me to read the Sales Text found in the MM03. I am using the following function but it seems I am not getting the NAME right. In the table STXL when I checked the NAME contains the MATERIAL(X7000114BLCK), SALES Org(1000) and Distribution Channel(20) like this "X7000114BLCK 100020". How could I make up this? or is there another easy Function where I could give the Sales Order No, Material or Line Item to get the Sales Text which comes in MM03.
The Funtion that I used;
call function 'READ_TEXT_INLINE'
exporting
id = '0001'
inline_count = 1
language = 'E'
NAME = PO_OBJ
object = 'MVKE'
tables
inlines = inlines
lines = lines
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
others = 7.
Thanks,
KishanHi Hymavathi,
I did like this;
DATA v_tmp(18) TYPE c.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = wa_sales-matnr
IMPORTING
output = v_tmp.
CONCATENATE v_tmp 'XXX' INTO PO_OBJ.
The answer that I get is this - "X7000114BLCKXXX" the spaces beteeen the MATNR and XXX is not there. How could I get this?
Thanks,
Kishan
Maybe you are looking for
-
Can i get an older version of ITunes back?
I just downloaded the newest version in ITunes and I don't like it at all. Can I get my last version back? I now have 11.0.0.163.
-
Purchase Order - Default Company Code depending on Purchasing Org in Me21n
Hi Gurus, I have requiremnet to default Company code to a value depending on Purchasing Organisation in Purchase Order Create/Change Transaction ME21n , ME22n.,( Also -ME31K, ME32K ) Purchasing Org and Company code can be seen in Me21n -> Header ->
-
How many Communication Channels do we need?
Hi Friends, I am doing a simple IDOC-XI scenario. I have created two software components for the sender and receiver systems. Do i have to create a single communication channel or two?. Coz the Idoc from the sender system comes as an inbound into t
-
I'm trying to help an elderly friend. She has some pdd files from the days when Photoshop would only allow work files to be saved in .pdd format. Can anyone give me any guidance as to what modern software may be able to read them, or is there anythin
-
Capture ALV container event and change data in screen header
Hi, I have a REPORT calling a custom screen with a header section and an ALV container displaying ITEMS. <b>Situation:</b> If I use the FILTER button on the ALV container, it works fine but I wish to capture the details, so that I can change my heade