Item text needed in Smartform for Purchase Order
Dear Friends
i am creaing a smartform form for a Purchase Order , where i am to show item text , & material po text
also but i am not getting how to show them , i have tried with Function Module Read_ text but if for any item text is not maintained it throw a error text xxxxxxxxxx code f01 not found in language en .
kindly somebody help me with the elaborated steps
regards
digvijay rai
Requirement : Need to display the item text in the scripts Tcode me23n.
problem: the below subroutine program which i wrote reads the entire paragraph but when the values transfered to the script, the script variable accepts only one line. can you please help to pass the entire value to scripts.
Actual output
th respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the exchoose warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.D
Displayed output
th respect to the materials. The only warranties for SAP Group products and s
code written in scripts :
DEFINE &VALUE& TYPE STRING(500)
PERFORM ITEMTEXT IN PROGRAM ZDISPLAYINGITEMTEXT
USING &EKKO-EBELN&
USING &EKPO-EBELP&
CHANGING &VALUE&
ENDPERFORM
Item Text : &VALUE&
REPORT ZDISPLAYINGITEMTEXT.
DATA : name type thead-tdname,
p_ebeln TYPE ekko-ebeln, " Purchase order Number
p_ebelp TYPE ekpo-ebelp.
types :strin(450).
data : p_valu type strin.
data : p_valu1 type strin.
data: lines type table of tline with header line.
data: IT_LINE LIKE STANDARD TABLE OF itcsy INITIAL SIZE 0 WITH HEADER LINE,
IT_TEXT1 LIKE STANDARD TABLE OF itcsy INITIAL SIZE 0 WITH HEADER LINE,
W_LINE LIKE IT_LINE.
Types : stri(450).
data f_name type stri.
FORM itemtext TABLES i_intab STRUCTURE itcsy
i_outab STRUCTURE itcsy.
*BREAK-POINT.
READ TABLE i_intab INDEX 1.
MOVE i_intab-value TO p_ebeln.
READ TABLE i_intab INDEX 2.
MOVE i_intab-value TO p_ebelp.
*parameters: p_ebeln type ekko-ebeln,
p_ebelp type ekpo-ebelp.
concatenate p_ebeln p_ebelp into name.
call function 'READ_TEXT'
exporting
id = 'F01'
language = sy-langu
name = name
object = 'EKPO'
tables
lines = lines
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
loop at lines. " INTO w_line.
BREAK-POINT.
*move w_line to it_text1.
*append it_text1.
*write:/ it_line.
*p_valu = f_name.
*p_valu1 = w_line.
concatenate p_valu lines-tdline into p_valu.
*p_valu = f_name.
endloop.
message p_valu type 'I'.
READ TABLE i_outab INDEX 1.
MOVE p_valu TO i_outab-value.
MODIFY i_outab INDEX sy-tabix.
*loop at lines.
write:/ f_name.
*endloop.
*READ TABLE i_outab INDEX 1.
MOVE lines TO i_outab-value.
MODIFY i_outab INDEX sy-tabix.
endform.
Similar Messages
-
Custom SmartForm for Purchase Order Printing
Hi,
I need a customized smartform for purchase order, which is called after the standard transaction ME9F.
I adjusted "Conditions for Output Control" by using transaction NACE ( Erased the name of the form MEDRUCK, Entered my customized smartform's name under smartform Form part and chose the type as smartform )
However, I couldn't success to see my printview whereas I continued to see the printview of Medruck.
I'd searched for the problem through here and the net, I found some names of smartforms such as: /SMB40/MMPO_L and /SMB40/MMPO_A and their driver programs like: /SMB40/FM06P . The package which consists of these elements was mentioned as " /SMB40/ "... but despite I downloaded it, my system still doesn't have the elements.
So, how can I use my own purchase order smartform or if i need the forms mentioned, in which best practice package i can find them?
SAP ECC 6.0
SAP_APPL 604
SAP_BASIS 701
Thanks in advance,Hi,
If your SAP doesnt have a standard smartform for PO, it is quite complicated to use smarform rather than sapscript.
I guess that you will need to modify the program SAPFM06P that calls the sapscript and make it call the smartform.
I will take a few time to adapt the sapscript.
Regards
Miguel -
Smartform for purchase order.
Hello friends,
I am creating the smartform for purchase order printing whih is attached to output type ZNEU and that output type is used in ME23N.
But at the time of creating versions in PO in ME22N it is giving error messages of diffrant types like form routine not present.
Now I want your opinion in deciding whether to go for new smartform for PO printing or I shoud procede with script MEDRUCK. If anyone have developed smartform for PO which supports versions, please suggest the wayout.
Rgds,
MadanHello,
You have to write form routines in the Driver program to trigger the form.
Please Reward if helpful.
Srujan. -
Standard smartform for Purchase Order
What is the standard smartforms for purchase order?Where can i find this?Give me print program for the same.
Hi
Preconfigured smartforms are not available on ECC 6.0. You have to either download from service.sap.com or migrate existing script to smartforms.
Regards,
Vishwa. -
Standard smartforms for purchase orders in scm server
hi
what are standard smartforms for purchase orders in scm server(not on R/3 server)
in R/3 i know
/SMB40/MMPO_UK
/SMB40/MMPO_L
/SMB40/MMPO_A
but i want to know in SCM(Supply Chain Management) server
Thanks,
Phanicheck below may be u r looking for the same
/SCA/ORDER_DESCRIPTION_AUTO
/SCA/ORDER_NUMBER_AUTO
/SCA/ORDER_NUMBER2_AUTO
~~Guduri -
Need a field for purchase order quantity
We need a field that is fixed once the PO is created and is never updated even if the qty is changed later on.
Hi Chandra
Not clear with your query...
Are you looking for a field to act as a constant where you can store the PO Item Quantity which was initially created???
If so, not really sure on the reason but you can get the orginal qty value from Change Documents.
OBJECTID for Purchase Orders is <b>EINKBELEG</b>.
Kind Regards
Eswar -
Standard SmartForm for Purchase Order in ECC6.0?
Hello SAPients!
Does anybody knows if SAP has released a standard SmartForm in ECC 6.0 as an alternative to SAPScript MEDRUCK? Do you know the name?
Thanks!Hi,
Please refer OSS Note 843193:
"The SAP Best Practices Preconfigured Smart Forms are available for
ERP 2004 (ECC 5.0) only.
It is not planned to deliver the preconfigured SmartForms as separate SAP Best Practices solution for other releases.
If future releases, the prconfigured SmartForms will be delivered with the country-specific SAP Best Practices Baseline Packages.
Please check http://service.sap.com/bestpractices for availability."
Regards,
Amey -
Need the SMARTFORM name for Purchase Order in ECC 6.0
Hi experts,
I have been working on ECC 6.0 version and I need your help in finding out the name of the SMARTFORM for Purchase Order. Please let me know the SmartForm name if anybody knows. Waiting for your replies.
Regards,
RaviHI,
We have the Smartforms in the Service.sap.com, you need to download from this one. in our SAP we do not have these smartforms .
smartform name is /smb40/mmpo_l. Look at the SAP Note 695891
Look at the below link
Re: PURCHASE ORDER SMARTFORM IN ECC 6.0
<i>Mark all the helpful answers</i>
Regards
Sudheer -
Need help regarding payment terms f4 for purchase order
hello everyone,
im currently workin on smartform for purchase order so transaction code is me23n in dat 1st tab delivery/invoice can u see payment terms field its technical field name is ZTERM in dat if u click on f4 ull find tht value along with description say eg 0001 payable immediately due net lik dis it comes so i need to display ths text i.e payable imm... lik dis in my smartforms field im unable to retrieve tht text element i gt 1 function module also ie Fi_F4_ZTERM here im gettin whole record i wnt only 1st record i.e 0001 payable if u click on f4 thr r many records...so whn u go to me23n ie for display u shd hav value tht is alrdy stored lik dis u check ulll understand.. thnx in advance fr ur help...Hi,
The text of payment terms is stored in table T052U.
You can get the payment terms of a PO in table EKKO and field ZTERM.
Pass the value of this field i.e. EKKO-ZTERM to T052U-ZTERM and T052U-SPRAS as SY-LANGU .
You will get the description of the payment terms maintained in the PO.
Regards,
Vinod -
DRiver program for Purchase order smartform
Hi,
I am trying to use "smartform" for purchase order printout.
But not getting any driver program to attach in NACE for this output type(NEU). Is there at all any standard SAP delivered program for this purpose ?
If Yes, then what is it ?
Thanks for your response..
TSHI,
Try this ..
goto the program RS_ABAP_SOURCE_SCAN
in the selection screen give the form name in the search string it will display the all driver programs .
let me know any help.... -
Smartform in Purchase Order ME21N
Hi guys.
I'm working in SAP 6.0 ECC. I am developing a sapscript for purchase order and it is working well, but i wanna do the same in smartform, i checked on the web that sap 6.0 ecc has some standard smartform for Purchase Order, but mine doesnt have it. In addition, i tried to convert my sapscript to smartform, but the only thing that converts are the windows, no tables or variables, so it doesnt work.
how can i do it? somebody did a smartform for ME21N??? what are the parameters that i need to use? the idea is that this smartform will be trigged at the moment of release the purchase order throught ME29N.
Regards
it will be super usefull that somebody could send me a smartformSending attachments by mail is not really compliant with forum rules (because other people won't get the information).
The good answer would have been to look at SDN "smart forms" home page, then look at section "preconfigured smart forms".
It says that it must be downloaded from SWDC (SAP software download center), choose Installations and Upgrades -> ...Entry by Application Group -> SAP Best Practices -> SAP BP BASELINE PACKAGE ... -
hi friends,
i need to create a smartform for purchase order.in this i need to extract ship to details,remit to details.from which tables and using which link can i get these details .please help me asap friends.Hi
Take the Partner function for Shipto and Remit to and pass the Po number to EKPA (partner Function table for PO) and take the Partner number of Shipto and Remitto and take their address details from LFA1 or ADRC table and use them in smartform
In smartform you can write the selects in PROGRAM lines and fetch the data
Reward points for useful Answers
Regards
Anji
Message was edited by:
Anji Reddy Vangala -
Hi All,
I Wants to pick the item text for Purchase Order. in my prog i already picked the header text by Read_text FM .i wants to used the same FM for item pickup . Can you please tell the FM parameter Value, so that i can pick proper Item text value.
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
Thanks in advance
Moni
Edited by: Alvaro Tejada Galindo on Sep 1, 2008 5:09 PMHi Moni
We can use the same procedure to retrieve texts of any document, just that the Name, Object and ID varies.
To find the required parameters for each object and document do as below:
1. Open an existing document
2. Go to the required Text
3. Double click on the same
4. It takes you to the editor screen.
5. Now use menupath: Goto->Header
6. In the popup screen you will find the required paramters.
For item texts the Name will be (PO Number + Item Number).
Using the details, you can pass the same to FM: READ_TEXT and retreive the texts in programs.
Regards
Eswar -
Please do not offer rewards
Hi Abapers,
I had doubt, regarding how to find the name of standard smartform available for purchase order in tcode - ME21N.
After executing ME21N, n print preview i get a form without logo. So i want to customize the form according to my clients requirement.For this i want to know the Smartform name, so tat i can copy to 'Z.....' and make the customization.
Can anybody assist me overcome this problem of how to find out the name of smartform without knwing functionmodule name also....
<<Text removed>>
Advanced Thanks..............
Edited by: Matt on Mar 25, 2009 10:26 AMDESIGN ONE SMARTFORM AS PERUR NEED.
DRIVER PROGRAM FOR THISIS
*& ZSAPFM06P
&---- Print of a PO by SMART FORMS *
*& Purchase order printing program
&---- FORM ENTRY
SmartForm from customizing table TNAPR
determine smartform function module for invoice
variant = ' '
direct_call = ' '
control-no_open = 'X'.
control-no_close = 'X'.
call smartform invoice
archive_index = toa_dara
archive_parameters = arc_params
mail_appl_obj =
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
is_bil_invoice = ls_bil_invoice
is_repeat = repeat
importing job_output_info = ls_job_info
document_output_info =
job_output_options =
error handling
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
analyse internal error table of Smart Forms
add your handling
REPORT ZSAPFM06P.
TABLES: TNAPR,
nast.
DATA: lf_fm_name TYPE rs38l_fnam,
lf_formname TYPE tdsfname,
control type ssfctrlop,
errtab type tsferror.
FORM entry_neu using ent_retco ent_screen.
lf_formname = tnapr-sform.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING formname = lf_formname
IMPORTING fm_name = lf_fm_name
EXCEPTIONS no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
control-no_dialog = 'X'.
control-preview = 'X'.
control-langu = sy-langu.
CALL FUNCTION lf_fm_name
EXPORTING
control_parameters = control
user_settings = 'X'
is_nast = nast
EXCEPTIONS formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
if sy-subrc <> 0.
ent_retco = 0.
else.
ent_retco = 0.
endif.
call function 'SSF_READ_ERRORS'
importing
errortab = errtab.
if not errtab is initial.
endif.
ENDFORM.
DEFINE UR PROGRAM NAME AND SMARTFORM NAME IN NACE. -
Open items for purchase order its very urgent
hi
my requirement is to write extract program for purchase order(me21) to extract only open items.
please provide sample code its very urgent.
thanks in advance.
points will be rewarded.
thanks
hari prasad reddycheck the below report :
REPORT ZMM_OPEN_PO_REPORT no standard page heading
line-size 255
message-id zwave.
======================================================================
Program Name : ZMM_OPEN_PO_REPORT *
Description : This report displays all Open PO Items and output *
would be PO Number,Material number and so on *
Author : Seshu *
Date : 01/24/2007 *
MODIFICATION HISTORY *
DATE | AUTHOR | CHANGE # | DESCRIPTION OF MODIFICATION *
--|||--
01/24/07| Seshu | DEVK921979 | Initial *
D A T A D E C L A R A T I O N P A R T ***
type-pools
type-pools : slis.
Tables
tables : ekko, " Purchase order Header
ekpo, " Purchase order Item
marc. " Material with Plant data
Internal table for output.
data : begin of i_output occurs 0,
ebeln like ekko-ebeln,
matnr like ekpo-matnr,
end of i_output.
ALV Data declaration.
data : v_repid like sy-repid.
ALV Function Module Variables
DATA: gs_layout type slis_layout_alv,
g_exit_caused_by_caller,
gs_exit_caused_by_user type slis_exit_by_user.
DATA: gt_fieldcat type slis_t_fieldcat_alv,
gs_print type slis_print_alv,
gt_events type slis_t_event,
gt_list_top_of_page type slis_t_listheader,
g_status_set type slis_formname value 'PF_STATUS_SET',
g_user_command type slis_formname value 'USER_COMMAND',
g_top_of_page type slis_formname value 'TOP_OF_PAGE',
g_top_of_list type slis_formname value 'TOP_OF_LIST',
g_end_of_list type slis_formname value 'END_OF_LIST',
g_variant LIKE disvariant,
g_save(1) TYPE c,
g_tabname_header TYPE slis_tabname,
g_tabname_item TYPE slis_tabname,
g_exit(1) TYPE c,
gx_variant LIKE disvariant.
data : gr_layout_bck type slis_layout_alv.
Ranges
ranges r_eindt for eket-eindt.
initialization.
v_repid = sy-repid.
start-of-selection.
Get the data from EKKO ,EKPO and MARC Table
perform get_data_tables.
end-of-selection.
display the data in the form of ALV
perform display_data.
*& Form get_data_tables
Get the data from EKKO,EKPO and MARC Table
FORM get_data_tables.
clear : i_output.
refresh : i_output.
fill the dates in ranges
r_eindt-low = sy-datum - 7.
r_eindt-high = sy-datum + 14.
r_eindt-option = 'BT'.
r_eindt-sign = 'I'.
append r_eindt.
Get the data from EKKO,EKPO and EKET Tables
select aebeln bmatnr into table i_output
from ekko as a inner join
ekpo as b on aebeln = bebeln
inner join marc as c on cmatnr = bmatnr
inner join mara as d on dmatnr = bmatnr
inner join eket as e on eebeln = aebeln
and eebelp = bebelp
where c~beskz = 'E'
and c~werks = '1000'
and d~mtart = 'FERT'
and b~loekz = space
and b~elikz = space
and e~eindt in r_eindt.
if sy-subrc ne 0.
message e000(zwave) with 'No open purchase order found'.
endif.
ENDFORM. " get_data_tables
*& Form display_data
text
FORM display_data.
Fill the Fiedlcat
PERFORM fieldcat_init using gt_fieldcat[].
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = v_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = g_user_command
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT = gr_layout_bck
IT_FIELDCAT = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = g_save
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_output
EXCEPTIONS
PROGRAM_ERROR = 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.
ENDFORM. " display_data
*& Form fieldcat_init
text
-->P_GT_FIELDCAT[] text
FORM fieldcat_init USING e01_lt_fieldcat type slis_t_fieldcat_alv.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
Purchase order number
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'EBELN'.
LS_FIELDCAT-ref_fieldname = 'EBELN'.
LS_FIELDCAT-ref_tabname = 'EKKO'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Purchase Order'.
ls_fieldcat-seltext_M = 'Purchase Order'.
ls_fieldcat-seltext_S = 'Purchase Order'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material #
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MATNR'.
LS_FIELDCAT-ref_fieldname = 'MATNR'.
LS_FIELDCAT-ref_tabname = 'EKPO'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Material'.
ls_fieldcat-seltext_M = 'Material'.
ls_fieldcat-seltext_S = 'Material'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
ENDFORM. " fieldcat_init
Maybe you are looking for
-
A LIST OF BB LINK ERRORS / FIXES
I am not a developer, but just a heavy user of contacts and wired synchronisation. I have gone through a comprehensive exercise of transferring 9000+ contacts from Outlook to Blackberry Q10 (1-way sync), and then doing a 2-way sync (which should idea
-
Hi, In order to access the data in a Oracle VPD enabled database - user identity needs to be propagated (setting the client identifier or setting a oracle user defined context). In ODI the "On Connect/Disconnect" in the physical data server definitio
-
Upgraded to lion and mail won't open until it has converted 18000 e mails which is taking hours and hours, is there any way round this ?
-
Track INBOUND (BBP_EXTREQ_INB)- T-Code BBPTRACE
Hi, we are using SRM 5.5 wit he extended classic scenario. We are facing some problems while transferring external requirements to the SRM System. I would like to trace the inbound queue within the srm system. I found out, that FM BBP_EXTREQ_INB is c
-
Running various anti-spyware programs to fix a Google search hijack/redirect problem, somehow all the default options that are originally supplied by Firefox for search engines in the search bar to the right of the URL bar have disappeared. In the "M