Assigning customised purchase order driver program and form ?
Hi ,
I have a created my own driver program and form form for purchase order.........after developing where should i assign it..
i tried in nace but im getting the following error :
Processing routine ENTRY_NEU in program ZSK_PO does not exist.
wats the error i have made ?
thanks,
Siva.
Hi
You have to attach in the NACE itself. Check IF your program is activated and did you use:
Form ENTRY_NEU.
"all your code should be here.
ENdform.
IN your program??
Regards,
VIshwa.
Edited by: Vishwa Sri Hari on Oct 22, 2008 4:18 PM
Similar Messages
-
Purchase order driver program and configuration for nace
i have copied the medruck in script and i need to write the driver program for that and need to configure to nace can any one tell me how to do this.
Hi Rocky,
Below are steps to configure:
1. Go to transaction NACE
2. Select EF application, click on output types
3. Select Output type NEU and double click on processing routines
4. Here you can give ur driver program name and script name
Hope it will solve the problem.
Regards
Krishnendu -
Purchase Order Driver Program Not loading SMARTFORM
Hi,
I have developed Z smartform by copying from standard form and tried to call from standard program only but here I am not able to call my Z smartform and I am able to call only Z SAPSCRIPT from this standard program.
I have done all the necessary changes in NACE transaction but then also only when I keep the script name its working fine but when I replace this by smartform name the driver program is not calling smartform .!! why?
Please do let me know why is it like this?
Thanks
SudharshanHi,
PO driver program is written to support only SAPSCRIPT. So if you want to assign smartform in NACE, you should take a Zcopy of the driver program SAPFM06P with its include FM06PE02 as ZFM06PE02. And give the zprogram against the driver program field in NACE.
Then you need to replace the entry_nue subroutine in ZFM06PE02 with the below code.
form entry_neu using ent_retco ent_screen.
data: l_druvo like t166k-druvo,
l_nast like nast,
l_from_memory,
l_doc type meein_purchase_doc_print.
* Data Declaration for PO smartform Modification
DATA: fname TYPE rs38l_fnam,
xkomk TYPE TABLE OF komk,
gs_output TYPE ssfcompop,
gs_dialog TYPE ssfctrlop.
clear ent_retco.
if nast-aende eq space.
l_druvo = '1'.
else.
l_druvo = '2'.
endif.
call function 'ME_READ_PO_FOR_PRINTING'
exporting
ix_nast = nast
ix_screen = ent_screen
importing
ex_retco = ent_retco
ex_nast = l_nast
doc = l_doc
changing
cx_druvo = l_druvo
cx_from_memory = l_from_memory.
check ent_retco eq 0.
IF tnapr-sform NE ' '.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = tnapr-sform
IMPORTING
fm_name = fname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc EQ 0.
gs_dialog-no_dialog = 'X'.
gs_dialog-preview = 'X'.
gs_output-tddest = 'LP01'.
gs_output-tdnoprev = ' '.
gs_output-tdnoprint = ' '.
gs_output-tdimmed = 'X'.
gs_output-tdnewid = 'X'.
CALL FUNCTION fname " modify the interface as per your needs
EXPORTING
control_parameters = gs_dialog
output_options = gs_output
user_settings = ' '
zxekko = l_doc-xekko
zxpekko = l_doc-xpekko
TABLES
l_xekpo = l_doc-xekpo
l_xekpa = l_doc-xekpa
l_xpekpo = l_doc-xpekpo
l_xeket = l_doc-xeket
l_xtkomv = l_doc-xtkomv
l_xekkn = l_doc-xekkn
l_xekek = l_doc-xekek
l_xkomk = xkomk
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
ELSE.
CALL FUNCTION 'ME_PRINT_PO'
EXPORTING
ix_nast = l_nast
ix_druvo = l_druvo
doc = l_doc
ix_screen = ent_screen
ix_from_memory = l_from_memory
ix_toa_dara = toa_dara
ix_arc_params = arc_params
ix_fonam = tnapr-fonam "HW 214570
IMPORTING
ex_retco = ent_retco.
ENDIF.
ELSE.
CALL FUNCTION 'ME_PRINT_PO'
EXPORTING
ix_nast = l_nast
ix_druvo = l_druvo
doc = l_doc
ix_screen = ent_screen
ix_from_memory = l_from_memory
ix_toa_dara = toa_dara
ix_arc_params = arc_params
ix_fonam = tnapr-fonam "HW 214570
IMPORTING
ex_retco = ent_retco.
ENDIF.
endform.
While calling the smartform modify the fm interface to your needs.
This will solve your problem.
Regards
Karthik D -
Hi all
Am using the Standard Smartform /SAPDII/SPP_ORDER for my purchase order rather than the script MEDRUCK.Now please tell me what is the driver program i need to submit for /SAPDII/SPP_ORDER in NACE.Please Help
Vijayhii
pls chk this in TNAPR table.
thanks
Edited by: pardeep kumar on Aug 11, 2008 3:26 PM -
Multiple driver program and forms - Reg
Hai Gurus,
we are using Ecc.5.0 last 5 years. At present we are using out put Excise Invoice printing programs through menu based. The out put printing program are now desinged distribution channel wise.so, now we have arround 5 programs and 4 smart forms and 1 script.
Now the managment willing to move menu based to standard output determination method. Is it possible to convert it using the old programs and smart forms. if it is possible pl.suggest how to do it. we have tried with single program with smartform.it is working but distribution channel based not possible to do it.We have used program RVCOMFZZ with user exit "USEREXIT_KOMKBV3_FILL".
pl.suggest it.
regards
R.Udayakumar
Edited by: R.UDAYAKUMAR RANGANATHAN on Sep 27, 2011 11:02 AMhi,
i am sending u the code which i have written in my print program 4 same situation.
we simply declare a table 'TNAPR'.
then on some condition in TNAPR-SFORM initialise different smartforms and pass this in function module .
DATA : inv_code LIKE vbak-vbeln.
BILL_DOC_EXP-SPRAS = 'E'.
BILL_DOC_EXP-VBELN = nast-objky(10).
inv_code = nast-objky(10).
SELECT SINGLE WERKS INTO L_WERKS FROM J_1IEXCHDR WHERE RDOC =
inv_code.
select * from vbrp into table i_vbrp where vbeln = inv_code.
lf_formname = tnapr-sform.
IF L_WERKS = '2000'.
tnapr-sform = 'ZSD_FACTORY_INVOICE'.
ELSE.
tnapr-sform = 'ZSD_FACTORY_EXCISE_INVOICE_PAT'.
ENDIF.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = tnapr-sform
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = L_FMNAME
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.
revert points if useful.
Regards,'
santosh. -
Purchase Order Document Type and Account Assignment
Hi ,
We have a requirement to control Account Assignment in Purchase Order Item line based on the Document type selected on the Purchase Order header.
Like if user selects Purchase Order document type "ZNB" (Customized created) , then he will only able to select "K" or Blank or "P" as account assignment and similary we want to limit other Account assignments based on the Purchase Document type.
How can we make this Control settings?
Regards
ShreyHi,
You can't really limit the account assignment categories per document type, at least not directly.
You can limit the item categories that can be used for a document type via configuration:
Materials Management > Purchasing > Purchase Order > Define Document Types
Within this transaction you can define which item categories are valid for a specific document type.
You can then define which account assignment categories are valid for each item category
Materials Management > Purchasing > Account Assignment > Define Combination of Item Categories/Account Assignment Categories
BUT
limiting the account assignment categories that are valid for an item category will affect ALL purchase order document types that this item category is valid for. And you can't create your own item categories as this is a SAP standard table that can NOT be altered.
Regards,
Monika -
Purchase order print program error
hi experts!
am facing a problem in my purchase order print program. the problem is that when i am trying to see the print preview the following dump error is throughing, which am not able to understand.
the P.O total amount should be change into words( like one million then thousand thirty three kuwait dinars)
but the total amount is not converting into as mentioned, instead the dump is encountered.
please give me solution,
thnaks
*DUMP*
Runtime Errors CONVT_NO_NUMBER
Exception CX_SY_CONVERSION_NO_NUMBER
Date and Time 05.05.2008 19:04:43
Short text
Unable to interpret "1760,778.71 " as a number.
What happened?
Error in the ABAP Application Program
The current ABAP program "ZMM_SUBROUTINES" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_CONVERSION_NO_NUMBER', was not
caught in
procedure "GET_AMT_IN_WORDS" "(FORM)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The program attempted to interpret the value "1760,778.71 " as a number, but
since the value contravenes the rules for correct number formats,
this was not possible.
How to correct the error
Whole numbers are represented in ABAP as a sequence of numbers, possibly
with an algebraic sign.
The following are the possibilities for the representation of floating
point numbers:
[algebraic sign][mantissa]E[algebraic sign][exponent]
[algebraic sign][whole number part].[fraction part]
For example, -12E+34, +12E-34, 12E34, 12.34
If the error occurred in your own ABAP program or in an SAP
program you modified, try to remove the error.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"CONVT_NO_NUMBER" "CX_SY_CONVERSION_NO_NUMBER"
"ZMM_SUBROUTINES" or "ZMM_SUBROUTINES"
"GET_AMT_IN_WORDS"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
The exception must either be prevented, caught within proedure
"GET_AMT_IN_WORDS" "(FORM)", or its possible occurrence must be declared in the
RAISING clause of the procedure.
To prevent the exception, note the following:
System environment
SAP-Release 700
Application server... "EHPAP1"
Network address...... "10.100.150.103"
Operating system..... "AIX"
Release.............. "5.3"
Hardware type........ "00C3B3F04C00"
Character length.... 16 Bits
Pointer length....... 64 Bits
Work process number.. 1
Shortdump setting.... "full"
Database server... "EHPDB"
Database type..... "DB6"
Database name..... "EHP"
Database user ID.. "SAPEHP"
Char.set.... "C"
SAP kernel....... 700
created (date)... "Mar 19 2007 20:40:49"
create on........ "AIX 2 5 005DD9CD4C00"
Database version. "DB6_81 "
Patch level. 102
Patch text.. " "
Database............. "DB6 08.02., DB6 09."
SAP database version. 700
Operating system..... "AIX 1 5, AIX 2 5, AIX 3 5"
Memory consumption
Roll.... 16192
EM...... 29328936
Heap.... 0
Page.... 1359872
MM Used. 19180992
MM Free. 1764848
User and Transaction
Client.............. 400
User................ "FADISULAIMAN"
Language key........ "E"
Transaction......... "ME22N "
Program............. "ZMM_SUBROUTINES"
Screen.............. "SAPLMEGUI 0014"
Screen line......... 22
Information on where terminated
Termination occurred in the ABAP program "ZMM_SUBROUTINES" - in
"GET_AMT_IN_WORDS".
The main program was "RM_MEPO_GUI ".
In the source code you have the termination point in line 398
of the (Include) program "ZMM_SUBROUTINES".
The termination is caused because exception "CX_SY_CONVERSION_NO_NUMBER"
occurred in
procedure "GET_AMT_IN_WORDS" "(FORM)", but it was neither handled locally nor
declared
in the RAISING clause of its signature.
The procedure is in program "ZMM_SUBROUTINES "; its source code begins in line
358 of the (Include program "ZMM_SUBROUTINES ".
Source Code Extract
Line SourceCde
368 DATA: lt_spell LIKE spell.
369
370 READ TABLE in_tab WITH KEY 'CURR'.
371 IF sy-subrc = 0.
372 lf_curr = in_tab-value.
373 ENDIF.
374
375 READ TABLE in_tab WITH KEY 'NETWR'.
376 IF sy-subrc = 0.
377 lf_netpr_01 = in_tab-value.
378 REPLACE ',' IN lf_netpr_01 WITH ' '.
379 CONDENSE lf_netpr_01 NO-GAPS.
380
381 IF lf_curr = 'KWD'.
382 lf_netpr_kwd = lf_netpr_01.
383
384 CALL FUNCTION 'SPELL_AMOUNT'
385 EXPORTING
386 amount = lf_netpr_kwd
387 currency = lf_curr
388 filler = ''
389 language = sy-langu
390 IMPORTING
391 in_words = lt_spell
392 EXCEPTIONS
393 not_found = 1
394 too_large = 2
395 OTHERS = 3.
396
397 ELSE.
>>>>> lf_netpr = lf_netpr_01.
399 CALL FUNCTION 'SPELL_AMOUNT'
400 EXPORTING
401 amount = lf_netpr
402 currency = lf_curr
403 filler = ''
404 language = sy-langu
405 IMPORTING
406 in_words = lt_spell
407 EXCEPTIONS
408 not_found = 1
409 too_large = 2
410 OTHERS = 3.
411 ENDIF.
412 IF sy-subrc <> 0.
413 * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
414 * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
415
416 ELSE.
417
Contents of system fields
Name Val.
SY-SUBRC 0
SY-INDEX 17
SY-TABIX 1
SY-DBCNT 18
SY-FDPOS 1
SY-LSIND 0
SY-PAGNO 0
SY-LINNO 1
SY-COLNO 1
SY-PFKEY NORMAL
SY-UCOMM PREVOUTPUT
SY-TITLE Held Imp. Pur. O r - ESG 5000000021 Created by Fadi Sulaiman
SY-MSGTY A
SY-MSGID TD
SY-MSGNO 426
SY-MSGV1 NEXTPAGE
SY-MSGV2 ZMEDRUCK_PO
SY-MSGV3
SY-MSGV4
SY-MODNO 0
SY-DATUM 20080505
SY-UZEIT 190441
SY-XPROG SAPCNVE
SY-XFORM CONVERSION_EXITHi Prasad,
Check the FM's
SPELL_AMOUNT --> for display in millions
HR_IN_CHG_INR_WRDS --> for display in lakhs and crores -
Regarding purchase order Driver progrram
Hi..,
I am developing one smartform which is purchase order
"/smb40/mmpo_l "
and Driver programm is
"/smb40/fm06p"
i searched in TNAPR table but i didn't find driver program
I am using ECC6.0
can any one answer me how to download into "smb40" package
replay to [email protected]
waiting for geniues replay
Thanks in advanceHi,
You cannot enable the Copy From button on the purchase order window. This is because there is no originating document for a purchase order (which is the first document in the chain on the purchasing side).
Perhaps if you explain your reasons for needing this functionality someone can come up with a suitable workaround.
Kind Regards,
Owen -
Driver programs and print programs
please give the imp print programs and driver programs of these print programs?
Driver programs varies, you can use standard ones or customise it.
For Example, Some Driver programs related to FI, start with RF*
Goto SE38 ,RF* press F4 , read the description.
Select documentation of desired driver program and you can see the corresponding form name to it and use of the program.
Reward points if useful.
Regards,
SaiRam -
Purchase Order History Program - not working properly
Dear friends
i am developing purchase order history program in ALV,
which shows the report of purchase order status
i.e (fields as below).
document no
PO date
line item
material number
material name
purchase org
plant
purchase group
orderd quantity
ordered amount
delivered quantity
delivered amount
to be delivered quantity
to be delivered amount
invoice quantity
invoice amount
to be invoiced quantity
to be invoiced amount
how to test from me23n
open me23n
enter PO number
press status tab
you can get some fields for verification..
the problem is
i can get all the details correctly except delivered amount and to be delivered amount
it works fine in both ( material purchase order and service purchase order )
sometimes i am getting incorrect values in service purchase order specifically in delivered amount and to be delivered amount
why i am getting these incorrect values ??
only couple of POs generate these things.
i am getting these values from EKBE table and using proper filtration like movement type and etc...
if anyone can resolve ... would be appreciable
avirat.Hi,
for getting proper Po History you need to select PO's details from EKKO table and
Header details from CHANGEDOCUMENT_READ_HEADERS based on the details got from this FM pass
to the FM CHANGEDOCUMENT_READ_POSITIONS and get proper details.
This is the logic used by the standard program also to get the PO History.
Hope this helps.
Regards
Bikas -
Error While submitting Import Standard Purchase Order Concurrent Program
Hello All,
When I am trying to submit Import Standard Purchase Order Concurrent Program from front end, it gets submitted properly.
and from backend,I am getting Following error.
To get the log messages for PDOI, please use the following id to query against FND_LOG_MESSAGES table:
AUDSID = 27810853
ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_sys_parameters.0
ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_startup_values.10
ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure start_process.50
User-Defined Exception in Package po.plsql.PO_PDOI_Concurrent. Procedure POXPDOI.30
When I looked in Parameters in both program(manually submitted and called from backend) I found a difference.
difference is Parameter Operating Unit. It not get submitted while program calling from backend.
Please anybody tell me solution for this. for setting this parameter.
(Also I have applied for patch 13001705 as per Metalink suggested).
Thanks in advance.
Regards
Ravi Raj.
Edited by: Ravi Raj on Jan 23, 2013 10:50 PMPlease paste the code here.. there may be some parameter issue while submission.
-
Prevention of assignment of Purchase Order to External activity from ME21N
Hi,
I would like to know if it is possible to prevent account-assigning a purchase order or requisition to an external activity outside of PS, (CJ20N or CN22). The external activity will generate a purchase requisition when released from CJ20n or CN22.
If someone goes outside of PS in ME51N or ME21N, they can also create a purcahse requisition or P.O. and assign it to that same network activity.
Is there a way to prevent this from happening?In MM Customizing go to Purchasing=> Account Assignment Categories
For Acc Assignment Assignment Category 'N' make the field 'Order' as display only.
with regards,
Ravi Shrivastav -
How to Create inspection that assign to Purchase Order / Material Document
Dear QM Master,
I am using QA01 to create inspection lot but can any master tell me , How to Create inspection that assign to Purchase Order / Material Document ?
Appreciate.
Thank you.Hello,
When you create an inspection lot manually, you cannot reference an original document (for example, a goods receipt document, an order, or a delivery note).
In QA01 you can create inspection lot manually for all inspection lot origins except the following:
10 - Delivery to customer with sales order
11 - Delivery to customer without sales order
12 - General delivery
13 - Repetitive manufacturing
14 - Plant maintenance
You can also refer this link
http://help.sap.com/saphelp_47x200/helpdata/en/2d/3519d8448c11d189420000e829fbbd/frameset.htm
Please check and revert.
Regards,
Priyanka -
Re:User exit for number range assignment assignment to purchase order type
Hi All,
Is there any user exit which assign the purchase order type to number range.
Please help.
Regards,
vivekHi
Implementing the User exit
MM06E003
Number range and document number
Goto Transaction CMOD , Create a Z - Project proceed as follows:
Choose Create.
Describe the nature of the project by providing a short descriptive text.
Choose Save.
The system then prompts you to assign a change request. This assignment allows you to transport the project and its components into a productive system once you have completed it.
Specify which SAP enhancement packages you want to include in your project by choosing SAP enhancements.
Enter the Enhancement MM06E003.
Click on Components
Docuble Click on the Exit & it will Take you to the Function module . Write your ABAP code in the Include ZXM06U17
Activate the Z - Project
Thanks & Regards
Kishore -
Driver program and a print program
hi all,
wat is the basic difference between a driver program and a print program in scripts.
How do we do modification for FI scripts
Thanks & Regards,
Saroja.hi Saroja,
Driver program or print program both r same... u can call either driver program or print progam.
Modifying the scripts depends upon your requirement,
basically if u have standard scripts better to copy it to zscript then make the chages like adding company logo or adding the company address or adding the terms and conditon what ever u asked to do then use the same print program write the extra logic in a subroutine in an executable program and call this routine in the script.
This is the method to modify the scripts with out modifying the print program because sometimes its not advisable to change the print program or
u can copy the print program to z program and u can add u r extra logic into it
~~Guduri
Maybe you are looking for
-
Why is my iMovie taking up so much space and how can I get my data back?
For some reason, unknown to me, my imovie app is taking up 6.5GB of my data. I have three, small (less than five minute) videos and I am wondering how to get rid of whatever is taking up so much space and what could possibly be filling up my ipad. It
-
I am trying to create a script that will automatically send an email with information contained in a text file and the name of the text file changes daily based on the date. Currently the script is just sending the attachment and I couldn't figure ou
-
HOW TO BLOCK THE DELIVERY IF CONTACT-DATE = SYSTEM DATE.
HI ALL, in va02 transaction, after entering some order number, u will go inside. after going inside, goto GOTO-HEADER-PURCHASE ORDER DATA. THEN, IN THAT PURCHASE ORDER DATA TAB, A LAST CONTACT DATE FIELD IS THERE. NOW, THE ISSUE IS, IF THIS LAST CONT
-
Mac performance with Exchange Server 2010 SP1
Hi All, I have some issue with Mac OS X 10.7.2 performance with when setting up new email connection Microsoft Exchange Server. 1) Use Apple Mail to create a new EMAIL account for an Exchange Account using Auto discover. Note how long it takes. In
-
How do i switch my CS6 from Windows to my Mac? How can i take my license key with me?
I am a teacher and started to use all my programs on my MacBook Pro now. How do i switch my Windows Version of CS6 to a Mac Version, without having to buy a new Key? I am not using the Windows version anymore.