How to Display 'purchase order text' in MM03 using report program
Hi Friends,
Can anybody suggest me how to display 'purchase order text' in MM03 using report program.
'Purchase order text' tab displays purchase long text of particular material .
I coded as:
SET PARAMETER ID 'MXX' FIELD 'E'.
SET PARAMETER ID 'MAT' FIELD k_final-matnr.
SET PARAMETER ID 'WRK' FIELD k_final-werks.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
It displays Purchasing tab other than Purchase Order Text tab of MM03.
Please suggest me how can i solve this.
Is there any parameter id to set values for Purchase Order text tab
>
Madhu Mano Chitra wrote:
> I want how to navigate to MM03 'Purchase Order text' tab/ view using ABAP code.
> could any suggest me
You can call a transaction and pass it a BDC table that tells it where you want it to go. You have to work out for yourself what to put into the BDC table. The code below works for tcode CATSSHOW.
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata.
DATA opt TYPE ctu_params.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'CATSSHOW'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'SO_STATU-LOW'.
bdcdata_wa-fval = '20'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'ANDZEIT'.
bdcdata_wa-fval = SPACE.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'PAST'.
bdcdata_wa-fval = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
IF p_selscr = SPACE.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=ONLI'.
APPEND bdcdata_wa TO bdcdata_tab.
ENDIF.
opt-dismode = 'E'.
opt-defsize = 'X'.
CALL TRANSACTION 'CAPP' USING bdcdata_tab OPTIONS FROM opt.
Similar Messages
-
How to capture Purchase order text from MM02
Hi Friends ,
i have a requirement like i have to capture the purchase order text from MM02
from one program.
Pls give helpful code .
Thanks & Regards
Jagadeeshwar.Bachuhi
check this code
Hi,
declare the paramters like:
To fetch Long Text lines for READ_TEXT function module
DATA:BEGIN OF dt_lines OCCURS 0.
INCLUDE STRUCTURE tline. " Long Text
DATA:END OF dt_lines.
Variable declarations for Read_TEXT function module
DATA : dl_name TYPE thead-tdname, " Object Name
dl_lan TYPE thead-tdspras. " Language
Constants
CONSTANTS:
Object ID for Long Text of Sales Item Text
c_best TYPE thead-tdid value 'Z026', ID
c_object TYPE thead-tdobject . " Object
Object will be VBBK, and the Object name will be the concatenation of Sales order and Item No(for Item texts) and only Sales order for Header texts.
Language will be default sy-Langu.
In the loop of Sales orders call this fun module and use by passing all the above 4 paramters ID,OBJECT,NAME and LANG.
You double click on that text
GOTO -> header you will know the all above paramters.
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).
regards
siva -
How to capture purchase order text view in mm01
Hello All,
Im doing recording for one material type in BDC but im not able to capture purchase order text view while creating material.
Its not getting recorded only pls guide bcoz i have to enter purchase and sales text for new materials.
Regards,
SunnyHi Sunny,
I have a different sugesstion. Never use BDC if u have BAPI available for the same functionality.
use this BAPI BAPI_MATERIAL_SAVEDATA for material creation. Even u can create the po texts here. Check the parameters MATERIALLONGTEXT and EXTENSIONIN. in FM documentation. It is pretty clear.
Different long texts (basic data texts, purchase order texts, internal comments, sales texts, material memos) can be created for a material. This requires the fields APPLOBJECT, TEXT_NAME, TEXT_ID, and LANGU or LANGU_ISO in table parameter MATERIALLONGTEXT to contain entries. Depending on the content of field TEXT_ID, the field TEXT_NAME must have the following structure:
The material number is transferred first. If it has fewer than 18 characters, the remaining characters must be filled with blanks. If it is a material memo (LTXT), the plant key must also be transferred from character 19 onwards; in the case of a sales text (0001), this must be the sales organization and distribution channel. The combinations allowed for the four different fields are indicated in the following table:
APPLOBJECT TEXT_NAME TEXT_ID LANGU
MATERIAL Matl no. (18 char.) BEST, GRUN, or IVER Language
MDTXT Matl no. (18 char.) LTXT Language
Plant
MVKE Matl no. (18 char.) 0001 Language
Sales organization and
distribution channel
Thanks,
Vinod. -
How to Make Purchase Order TEXTS Mandatory
Hi.........
I want to make some Purchase Order texts mandatory(for ex Header text) so that i should appear in PO Print and user should not be able to proceed unless he make an entry.
Please help me out......
ThanksHi,
In spro>mm>pur>po>define screen layout select filed selection AKTH Create for ref.data item make it
required entry
BR
Diwakar -
Getting data in Purchase Order Text column of CJI3 Report
Hi,
In cji3 there is column of Purchase order text where we get the text from Item header of PO i.e; VENDOR SERVICE.
Now if we wish to display the text of services used in the Item detail corresponding to same line item of PO then how to get that.
Please suggest a way out for finding that data.
regards,
PujaHi
CJI3 is a standard SAP report, which you could not change without ABAPer's help.
Please also check SAP Note 325546.
Hope it may be useful.
Tnx.
Abdul -
How to Display Purchase Order Number IN G.R.P.O
Hi Guys,
i am unable to find solution regarding Getting Purchase order number and displaying in Goods Receipt P.O. Report automatically when we copy from purchase Order ie Copy From button .My problem is we are Expecting Purchase Order Number in Goods Receipt P.O automatically when they copy From Purchase. Order.Can any suggest me reagarding with Good solution asap.
Regards
ANANDHi Anand,
When Your Goods Receipt P O Form is Active Click on form Settings in Menubar( 5ty Icon Form Right) Then one window will be opened then click on table format folder and then check the check box against base ref and base key under Visible column
If you are not adding any comments on GRPO then by default it will show as based ob purchase order XXX.
Hope it helps you
Regards
Vishnu -
How to pull out Purchase Order text in ME11/ME12/ME13
Hi,
Kindly let me know how to extract Purchase Order text from TEXT tab in ME13.
I have got Info Record note but I am unable to get Purchase Order text.
I am using the following FM which is given below.It seems error.
Please kindly let me know how to do this.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'BT'
language = sy-langu
name = g_tdname
object = 'EINE'
TABLES
lines = ig_read1
EXCEPTIONS
Thanks,
Bala RajaYour need to use READ_TEXT FM Properly:
text name -> you need to concatenate info record ,plant '0' purchase org
language : EN
text id BT
Object EINE
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'BT'
language = sy-langu
name = g_tdname
object = 'EINE'
TABLES
lines = ig_read1
EXCEPTIONS
Thanks
Seshu -
Hi,
I need to add a new field(column) "Purchase Order Text" in my alv report from MM03 view "Purchase Order Text". This field will have the values that are entered as text in the view in a particular language.
I suppose we can obtain this text using "Read_Text" function module.
But, I am unable to use the appropriate tdobject and tdid for executing the function module.
Please suggest me if using "Read_Text" is the correct way or is there any other way to do it. I simply want to display the Purchase Order Text values.
Thanks & Regards,
Tejas Savlahi,
use this.
Data:i_potxt LIKE tline OCCURS 0 WITH HEADER LINE,
w_thead LIKE thead.
w_thead-tdname = wa_final-ebeln.
w_thead-tdspras = 'EN'.
w_thead-tdid = 'F03'.
w_thead-tdobject = 'EKPO'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = w_thead-tdid
language = w_thead-tdspras
name = w_thead-tdname
object = w_thead-tdobject
TABLES
lines = i_potxt
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8. -
Hi Experts,
I need your help, is there transaction that i can see the Purchase Order text as report? I can see the purchase order text in MM03, but I need to see several materials with ours purchase orders texts like MM60.
I found the function module READ_TEXT, but for this i need make the improvement.
thanks,
GustavoHi,
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'F01'
language = 'E'
name = PO no. + Item no.
object = 'EKPO'
IMPORTING
header = it_header
TABLES
lines = it_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
Hope the above helps.
Regards,
Vivek -
Updating Material master purchase order text -LSMW
Dear Experts
How can update Purchase order Text through LSMW, while am doing recording system is not recording this field from material master
Regards
Ajeesh.sDear Expert
Please throw some light on this issue
Regards
Ajeesh.s -
hi friends
how to upload purchasing order text in mm01 transaction.
when i record purchasing order text it is storing in as a module pool program screen when i watch in the after recording , it does not have field and table name.
how to upload it?
thanks®ards
deepikaHi,
You can use the function module CREATE_TEXT for uploading the long text in the purchase order but this one has to be done after you have created the Purchase order succesfully. To use the above function module use the following steps.
1) Upload the longtext seperately into an internal table using GUI_UPLOAD and then use the following code to upload that text.
TYPES : BEGIN OF ty_upload,
matnr(18) TYPE c,
txline(5000) TYPE c,
END OF ty_upload.
DATA : it_upload TYPE STANDARD TABLE OF ty_upload,
wa_upload TYPE ty_upload.
DATA : v_tdid TYPE tdid,
v_tdobject TYPE tdobject,
v_en TYPE spras VALUE 'EN'.
CALL FUNCTION 'IQAPI_WORD_WRAP'
EXPORTING
textline = wa_upload-txline
outputlen = '132' ( Give the length depending upon your requirement)
TABLES
out_lines = it_outlines
EXCEPTIONS
outputlen_too_large = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
v_sno = 1.
CLEAR it_outlines.
LOOP AT it_outlines.
READ TABLE it_outlines INDEX v_sno .
IF sy-subrc = 0.
it_tlines-tdline = it_outlines-tdline.
APPEND it_tlines.
CLEAR: it_tlines,it_outlines.
v_sno = v_sno + 1.
ENDIF.
ENDLOOP.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = v_tdid
flanguage = v_en
fname = v_matnr
fobject = v_tdobject
save_direct = 'X'
fformat = '*'
TABLES
flines = it_tlines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc = 0.
Here if sy-subrc is Zero means the text is updated successfully.
Here for getting the tdid and tdobject go to the Tcode ME21 and there inside that one get the values for them and in the PO text of the header text tab.
Hope this one will help you.
Regards,
Venkat. -
LSMW MM02 - CHANGE PURCHASE ORDER TEXT
I need to change the purchase order text in mm02 using the LSMW.
Can you help me?LSMW has a standard direct input for long texts, hence it is not necessary to do a recording.
help.sap.com gives real good help for loading loading long texts with LSMW, further has this been discussed many many times here in MM and in the data migration forum.
try to search a bit, you dont really need more than the words you already have used on the subject to get a good variety of answers -
Purchase order Text and Basic data text needed from MM03 tcode
Hi
I need Purchase order text and Basic data text to be fetched by material number.
Purchase order text and Basic data text are present in MM03 Tcode.
Can anyone please guide me how to do it.
Kind Regards
Sajidhi
Purchase order text
GotoMM03 ->view purchase order text.
In purchase order text screen, below you find one icon 'Editor'
click on this icon. It will open another screen.
In this screen -> click Goto Menu->Header.
It will open the details about Purchase order text.
TextName (Generally it is material name)
Language
Text ID : BEST
Text Object: MATERIAL.
Pass the above to READ_TEXT to get the text
*Basic data text *
Basic Data Text in MM03 -
The long text for purchase order text field in mm03
Hi,
Please provide me long text for purchase order field.in mm03 the view purchase order text having the long text for purchase order.this is enter when ever your creating the material.but we have table and field name for that and also how to handle this long text.please provide me urgently.
Thanks & Regards,
Radhakrishna.Hi,
A sample code for ur requirement.
TABLES : ekko, "Purchasing Document Header
ekpo, "Purchasing Document Item
thead. "SAPscript: Text Header
DATA: t_theads LIKE stxh OCCURS 0 WITH HEADER LINE.
DATA: t_tlines LIKE tline OCCURS 0 WITH HEADER LINE.
DATA: v_ebeln_ebelp(15) TYPE c.
TYPES: BEGIN OF t_download,
ebeln LIKE ekko-ebeln,
ebelp LIKE ekpo-ebelp,
tdobject LIKE stxh-tdobject,
tdid LIKE stxh-tdid,
tdspras LIKE stxh-tdspras,
count(4) TYPE c,
tdformat LIKE tline-tdformat,
tdline LIKE tline-tdline,
END OF t_download.
TYPES: BEGIN OF t_header,
line1(20) TYPE c,
line2(20) TYPE c,
line3(20) TYPE c,
line4(10) TYPE c,
line5(10) TYPE c,
line6(10) TYPE c,
line7(10) TYPE c,
line8(10) TYPE c,
END OF t_header.
DATA: g_filename TYPE string.
DATA: gt_header TYPE STANDARD TABLE OF t_header.
DATA: gs_header TYPE t_header.
DATA: gt_download TYPE STANDARD TABLE OF t_download.
DATA: gs_download TYPE t_download,
gt_tlines LIKE tline OCCURS 0 WITH HEADER LINE.
DATA: v_subrc TYPE subrc.
DATA: v_nb_lines TYPE i.
DATA: v_ok TYPE i.
DATA: v_ko TYPE i.
DATA: v_ow TYPE i.
DATA: p_fname TYPE string.
DATA: g_append.
SELECTION SCREEN *
SELECT-OPTIONS : s_ebeln FOR ekko-ebeln.
PARAMETERS:
p_filedn(132) TYPE c OBLIGATORY,
p_file(132) TYPE c OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_filedn.
PERFORM file_f4_get CHANGING p_filedn.
START-OF-SELECTION.
*Select all the purchase order corresponding to select criteria
CLEAR t_theads. REFRESH t_theads.
SELECT *
FROM ekko
WHERE ebeln IN s_ebeln.
*Select all the text for P.O. header
SELECT * FROM stxh
APPENDING TABLE t_theads
WHERE tdobject = 'EKKO'
AND tdname = ekko-ebeln.
*Select Item of each P.O.
SELECT *
FROM ekpo
WHERE ebeln = ekko-ebeln.
CONCATENATE ekpo-ebeln ekpo-ebelp
INTO v_ebeln_ebelp.
*Select the text for P.O. item.
SELECT * FROM stxh
APPENDING TABLE t_theads
WHERE tdobject = 'EKPO'
AND tdname = v_ebeln_ebelp.
ENDSELECT. "select ekpo
ENDSELECT. "select ekko
DESCRIBE TABLE t_theads LINES v_nb_lines.
LOOP AT t_theads.
Read the text from pool
CLEAR thead.
REFRESH t_tlines.
CALL FUNCTION 'READ_TEXT' "#EC *
EXPORTING
id = t_theads-tdid
language = t_theads-tdspras
name = t_theads-tdname
object = t_theads-tdobject
IMPORTING
header = thead
TABLES
lines = t_tlines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
MOVE-CORRESPONDING thead TO gs_download.
gs_download-ebeln = thead-tdname+0(10).
IF thead-tdobject = 'EKPO'.
gs_download-ebelp = thead-tdname+10(5).
ENDIF.
gs_download-count = 0.
LOOP AT gt_tlines.
gs_download-tdformat = gt_tlines-tdformat.
gs_download-tdline = gt_tlines-tdline.
gs_download-count = gs_download-count + 1.
APPEND gs_download TO gt_download.
ENDLOOP.
CLEAR gs_download.
ENDLOOP.
END-OF-SELECTION.
Hope this helps.
please reward points if useful.
Regards
rose -
MASS-Display of Purchase Order Text in Material Data
Hi,
I want to display via SE16 the Purchase Order Text for a list of Materials but I don't know in which table this kind of information is stored. Con anyone please help me by telling me in which Table I can find the desired Information. If there is a SAP transaction which I can use to obtain this kind of information I'll gladly use it but I prefer to work with SE16 and Tables.
Thanks for your answers.
Regards
BogdanHI,
With my SAP rights I'm not able to do that. This is why I'm asking if tehre's another way to retrive this Info in another way using "SAP standard tools", like transaction or tables.
Für Deine Antwort Jürgen vielen Dank im voraus.
Gruss,
Bogdan
Maybe you are looking for
-
I like to edit my web pages easily, - click to see html, edit it, (file name already there), save it - hit restore on browser - see what I did - Just changed from IE which gave me NotePad, which is just fine for me Just changed to FireFox and it disp
-
Issue in Download file - If the file name is same
Hi Experts, I have a requirement to download the company code hierarchy data into a file. On selection screen I am giving the file path along with the file name If I run the report it is downloading the data into the particular file in the file path
-
Apple iphone 4 no ringer, mute switch is off, no volume indicator on screen. tried hard restart and reconfigured via itunes, have IOs 6.1.2, no jailbreak. Can hear ringer with earphone- Have tried almost everything, buit nothing happens. Any suggest
-
Can I run a soft without install sql server?
I just wrote a winform C# program and use SQL server 2012 for data. Can I run this program on other machine without install sql server ? If I can't. Are there other program simpler than sql server help me run it ? THANK ALL !
-
I have problem on my Blackkberry Pearl 8100 (OS4.5) bcuz after succesfull installed my BLACKBERRY APP WORLD 2.1 and ERROR PROMPT happened... The ERROR PROMPT says: (Uncaught exception: java.lang.OutOfMemoryError) Plz. help me how to reslove this prob