Processing routines
Hi,
i have configured processing routine with my own po format as sap script program. for po by mail.
Pl tell me why there are 5 processing routings in tcode nace
how they can be used
Thanx in advance
Uday
Hi Uday,
Check the following link.
Condition records in NACE?
Hope this helps you.
Regards,
Chandra Sekhar
Similar Messages
-
Processing routine ENTRY in program ZRVADIN0111 does not exist for smartfor
Hi ,
This is the log , I am getting in vf02 ..
==========log==============
Message Text
Processing routine ENTRY in program ZRVADIN0111 does not exist
Technical Data
Message type__________ E (Error)
Message class_________ VN (Output control)
Message number________ 068
Message variable 1____ ENTRY
Message variable 2____ ZRVADIN0111
Message variable 3____
Message variable 4____
Message Attributes
Level of detail_______
Problem class_________ 0
Sort criterion________
Number________________ 1
======================================end log========================
My driver program is same as below and form is ZSUNDRY_INVOICES_VENU'
================my driver program ===================
*& Report ZRVADIN0111
REPORT ZRVADIN0111.
TABLES : nast.
*TYPES : BEGIN OF ty_header,
vbeln TYPE vbeln_vf,
fkdat TYPE fkdat,
XBLNR TYPE XBLNR_V1,
STCEG TYPE STCEG,
kunrg TYPE KUNRG,
name1 TYPE AD_NAME1,
city1 TYPE AD_CITY1,
post_code1 TYPE AD_PSTCD1,
street TYPE AD_STREET,
total TYPE NETWR_FP,
END OF ty_header.
DATA : sum TYPE i VALUE '0'.
*TYPES : BEGIN OF ty_item,
matnr TYPE matnr,
arktx TYPE arktx,
fkimg TYPE fkimg,
VRKME TYPE VRKME,
netwr TYPE NETWR_FP,
MWSBP TYPE MWSBP,
unipr TYPE NETWR_FP,
END OF ty_item.
DATA : gs_header TYPE zsd_inv_header,
it_item TYPE STANDARD TABLE OF zsd_inv_items.
FIELD-SYMBOLS : <fs_item> TYPE zsd_inv_items.
DATA : gv_adrnr TYPE adrnr.
*data: s_vbeln type vbeln_vf.
*select-options : so_vbeln for s_vbeln.
*START-OF-SELECTION.
*form entry.
*--- Get header
SELECT SINGLE vbeln fkdat xblnr stceg kunrg bukrs
FROM vbrk INTO gs_header
WHERE vbeln = nast-objky.
SELECT matnr arktx fkimg vrkme netwr mwsbp
INTO CORRESPONDING FIELDS OF TABLE it_item
FROM vbrp WHERE vbeln = gs_header-vbeln.
LOOP AT it_item ASSIGNING <fs_item>.
<fs_item>-unipr = <fs_item>-netwr / <fs_item>-fkimg.
sum = sum + <fs_item>-netwr.
ENDLOOP .
gs_header-total = sum.
CLEAR : gv_adrnr.
SELECT SINGLE adrnr FROM kna1 INTO gv_adrnr WHERE kunnr = gs_header-kunrg.
SELECT SINGLE name1 city1 post_code1 street FROM adrc
INTO (gs_header-name1,gs_header-city1,gs_header-post_code1,gs_header-street)
WHERE ADDRNUMBER = gv_adrnr.
*end-OF-SELECTION.
data: fm_name type rs38l_fnam.
****calling entry routine
*FORM entry USING return_code us_screen.
CLEAR retcode.
xscreen = us_screen.
PERFORM processing USING us_screen.
CASE retcode.
WHEN 0.
return_code = 0.
WHEN 3.
return_code = 3.
WHEN OTHERS.
return_code = 1.
ENDCASE.
*ENDFORM. "entry
calling smartfrom from ABAP
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSUNDRY_INVOICES_VENU'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IS_HEADER = gs_header
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
IT_ITEMS = it_item
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 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.
*call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 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.
end of call function module from abap
*endform.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
can any body help me with proper code , i have to insert in driver program ..to retify error ...
thanks
Regards,
Venu.Call transaction NACE (type V1 for Sales Order) look for the required output type and check program and form in processing routines. (and add code markups when you copy source code in forums)
Regards,
Raymond -
How to use processing routine 2 for another smartform in nace
Hi Techies,
I have configured custom smartform ZS1 for standard program RLE_DELNOTE for delivery in nace.
Now I need to configure another smartforms ZS2 for same program.
How to proceed with this?
Due to client constrain, I cannot make changes in ZS1.
If it would be custom program, I can create new Form Routine, and proceed.
But for same form routine, can you suggest differentiation methodology to proceed with processing routine 2:
Program RLE_DELNOTE
Form Routine ENTRY
Smartform Form ZS2
Kindle guide.
Thanks in advance ,
TanayaHi Tanaya,
You can create a new output type in NACE and get this done. get a copy of existing output and attach your new smart form there. maintain appropriate condition records so that your document will trigger 2 outputs.
Thanks,
tansap. -
PO Output Type / Processing Routine Problem
Hello everyone,
I cannot seem to find any reference to the problem described below.
I have encountered a problem by migrating from SAPFM06P to SAPLMEDRUCK during an ECC 5.0 upgrade, at a client where I am under contract as an ABAP Developer.
Here is some background to the situation. The client is currently migrating from version 4.6C to 5.0 and thought it was a good idea to upgrade their purchase order messaging programs from the outdated SAPFM06P, which was utilized in version 3.x, to the newer program SAPLMEDRUCK implemented for use in version 4.6.
Specifically, Message Output (ME9F) controls the output of purchase order messages in foreground, when the purchase order message is saved and the "further Data option" of the PO message contains "requested processing" equal to the value of "send with application own transaction". This way, the actual messaging can be controlled in foreground and "breakpoints" can be set to display tables and fields. Behind the scenes, the message status program RSNAST00 is executed by ME9F program RM06ENDR_ALV. During this execution, it locates the message (NAST) record from the purchase order and the (TNAPR) configuration, which links the output type to the ABAP print program and SAPscript layout set. The specific problem is: in RSNAST00, the external call perform "PERFORM (TNAPR-RONAM) in PROGRAM (TNAPR-PGNAM) USING RETURNCODE US_SCREEN IF FOUND" does not pass NAST information to the called program (TNAPR-PGNAM). I know no NAST table information is passed because I set a break-point on the perform and single step to the print program. Therefore, the purchase order is unknown by the print program (TNAPR-PGNAM) and results in an error and no purchase order print is provided. Needless to say, this was tested with a new "Z" version of SAPLMEDRUCK. So, I changed the program name (output type processing routine) in configuration to SAPLMEDRUCK, but there again the NAST information is not passed to the print program from RSNAST00. Ironically, I reverted back to the older "z" version of SAPFM06P and NAST and TNAPR information is passed to the print program thru the external call perform quoted above. I prefer to not modify the SAP original code for RSNAST00, which is used in many other applications.
One other note, I had previously performed this maneuver on one different occasion with very successful results.
Has anyone ever encountered this problem in a 5.0 environment (running Windows NT and MSSQL and SAP BASIS 6.4).
I know this is long winded, but I wanted to explain the background of the entire situation.
Any and all help would be appreciated. Thanks in advance,Dave,
Your entry points (like form ENTRY_NEU) should remain in your current version of SAPFM06P. Change that form to reflect the function calls in the new SAPLMEDRUCK form (ENTRY_NEU) (calls to ME_READ_PO_FOR_PRINTING and ME_PO_PRINT.
Look at the example below:
Here is the form in your old (Z) version of SAPFM06P:
FORM ENTRY_NEU USING ENT_RETCO ENT_SCREEN.
XSCREEN = ENT_SCREEN.
IF NAST-AENDE EQ SPACE.
XDRUVO = '1'.
ELSE.
XDRUVO = '2'.
ENDIF.
CLEAR: XFZ, XOFFEN, XLMAHN, XLPET.
*- Anstoß Verarbeitung -
CLEAR ENT_RETCO.
PERFORM LESEN USING NAST.
MOVE RETCO TO ENT_RETCO.
ENDFORM.
Here is form entry_neu in your new (Z) version of SAPFM06P:
INCLUDE FM06PE02 *
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.
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.
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.
endform.
Remember, the form should be in the Z version of SAPFM06P - not the Z version of SAPLMEDRUCK. Make sure the configuration (TNAPR) has the SAPFM06P program name and entry point.
It should work. Let me know how it goes.
Rick -
Processing routine ENTRY_ERS_SMART in program ZPDIV_SBINVOICE does not exis
Hi experts,
We created new smartform and print program for ERS invoice and the objects are still in the development system. The output type was triggered when invoice is created however it has an error in the processing log and the error is "Processing routine ENTRY_ERS_SMART in program /AMA/PDIV_SBINVOICE does not exist".
The program /AMA/PDIV_SBINVOICE has subroutine ENTRY_ERS_SMART but I don't know why it has a error message like this.
Any ideas?
Thanks,
EricHi
Check this report RSNAST00 and debug the code
I think you have not maintained the print parameters in your driver program
please check the same
for reference check the driver program RLB_INVOICE
and this perform
determine print data
PERFORM set_print_data_to_read USING lf_formname
CHANGING ls_print_data_to_read
cf_retcode.
Regards
Shiva -
Output Types Processing Routines
Hi experts,
I need help regarding the Output Types Processing Routines.
In SAP, there are several Processing Routines, how does the processing routines work if you put a Program and Forms to Processing 1 and Processing 2?
Points will be rewarded.
Thanks....Hi Salem,
When you execute a program through a transaction, then the first program and the first form are executed..
These entries are maintained in NAST table.. Now, the first o/p is displayed... When you press the BACK button on the o/p of first form screen, It goes back to the SAP code and check for the second entry if any, if it exists, it calls the second progarm and the second form.. and so on..
Thanks and Best Regards,
Vikas Bittera.
**Reward if useful** -
Assign PO Smartform in NACE error-Processing routine does not exist
I have created a Z-Smartform and Z-driverProgram and assigned both in NACE:
Medium- Program- Form- PDF/Smartform- Type
Print output- ZSFPOREPORT- -ZSFPOREPORT- SmartForm
but a error message : Processing routine in program ZSFPOREPORT does not exist ..
Do we need to code in driver prog under a Subroutine and call the same (or) Do we need to create a Form with Special Interface parameters similar to Entry_NEU ..
I am not sure as ENTRY_NEU is for a Script but we need to assign a SMARTFORM here...
So Gurus suggest.....Hi
DATA: fm_name TYPE rs38l_fnam.
*-- Call the Smartform for Label Printing.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZLS_XXXXX'
IMPORTING
fm_name = 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.
CALL FUNCTION fm_name
EXPORTING
v_XXXX = v_YYYYY
v_matnr = mara-matnr
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 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.
But this pattern is not same for all driver program. So you can do the following:
Step 1: Click on the area where you want to write function module.
Step 2: Click on "Pattern" at the top of the SAP window. Enter the function name as SSF_FUNCTION_MODULE_NAME and
press ok.
Step 3: Now fill up the reqd fields. Give the name of the smartform in
EXPORTING
formname = 'ZLS_XXXXX'
Step 4: Now go to the SMARTFORMS program Environment->Function Module Name and copy the Module Name.
Again click on "Pattern" and paste the module name. Again you will get a pattern(i.e. the second function)
Step 5: Replace the Function module name with "fm_name" as shown in the code above.
Then your code is ready.
Thanks & Regards
Rocky kr. Agarwal. -
HR HRMD_A07 HRMD Idoc process routine
Hi,
We are interfacing between a legacy system and SAP-HCM (ECC 6.01) system to pull Employee, Org unit and Job details from legacy to SAP.
We are using the HRMD_A07 Idoc type for this interface. We are facing certain problems with the IDOC post function modules that we have looked at IDOC_INPUT_HRMD.
We are unable to find the right processing routine that would help us validate and post the data successfully in HCM.
Requesting information if anyone has worked on any such interface or is familiar with the processing routines to be used.
Any information on this would be very much appreciated. Reward points guaranteed.Hello,
The attached documentation explains using process code HRMD which using FM IDOC_INPUT_HRMD to post the IDOC data. We are faing problems with using the FM IDOC_INPUT_HRMD. When data is posted using this FM it doesnot maintain any history and overwrites the records in the database, without validations. -
Processing routine does not exist
Hi,
I'm trying to print a form using messages, but when printing, I get the error 'Processing routine ENTRY in program ZBONLIVRAISON does not exist' in the processing log.
Print preview works fine.
But I DO have a form ENTRY defined in my program ZBONLIVRAISON, like this:
FORM ENTRY USING return_code us_screen.
PERFORM GETDATA.
PERFORM PASSDATA.
ENDFORM.
and when I define the processing routines in NACE, I can select the FORM ROUTINE 'ENTRY' using F4.
So I don't know what the problem can be. Does anyone have a clue?
THX!Hi
What is the application for which you have assigned the form in NACE?
Regards,
Vishwa. -
Error "Processing routine ENTRY in program ztest does not exist"
Hi All ,
I facing problem in Samrt form driver program
Error "Processing routine ENTRY in program ztest does not exist"
when i given print through T.Code Me22n
Can you suggest me why i facing this problem.........
This is below my driver program code:
Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
Edited by: Rob Burbank on Mar 10, 2010 9:53 AMHi nIck,
I write the code this way
can you suggest me any changes are require
FORM ENTRY USING RETURN_CODE TYPE I US_SCREEN TYPE C.
PERFORM DATA_FETCH.
PERFORM DATA_PROCESS.
PERFORM CALL_FORM.
ENDFORM. "entry
*& Form data_fetch
text
FORM DATA_FETCH.
PONUMBER = NAST-OBJKY.
ENDFORM. "data_fetch
Regards
Raju
Edited by: raju mahapatra on Mar 11, 2010 7:23 AM -
Processing routine ENTRY in program ZINVOICE does not exist
Hi all,
I am finding an error after taking the print out of Excise Invoice in Tcode J1IP.
We had a requirement where we created new output type and changed the driver program for the output assignment earlier this invoice was developed in script we changed it to a smartform. and assigned in NACE.
Its working fine we r getting the printout also after getting the print out when I goto tcode VF02 a error log is being created
when i click on the error log its showing
Processing routine ENTRY in program ZINVOICE does not exist
Zinvoice is the driver program.
I hope to get inputs from you in resolving the issue.
Hope to get the reply at the earliest
Shivakumar K B
9886920258This error message is quite tricky and misleading one.
Make sure in your custom program, all the logic must be in a FORM-ENDFORM.
form entry.
Logic...
endform.
this form may have any name (not needed to be only ENTRY).
The signification of the form is that this name will be given in the subroutine name in NACE transaction.
the standard program RSNAST00 which triggers all the print program dynamically.
it will fetch the name of the print program and form name from TNAPR table and calls the same.
perform (TNAPR-RONAM) in (TNAPR-PROGNAME).
At run time, the TNAPR-RONAM and progname will be filled with your z program name and the subroutine name.
Rgds,
SaiRam -
Processing routine ENTRY in program zprog does not exist
Hi experts,
when i try to see print preview from ME23N it is showing status message like below....
"Processing routine ENTRY in program prog does not exist"
Message no. VN068
Any help....
Regards
RamAs per my understanding, when you press print priview sap script is called by this.
This sap script name and its driver routing in maintained in a database table .check t*
As per the message this is missing.You need to update the processing routing in this table.
Hope this helps you. -
PO Output: Processing Routine
Hi all,
Under "Processing Routine" for the PO Output setup, we can assign the print program, form routine and the SAPScript name. There are more than one entries you can set as the assignment starts from "Processing 1" up to "Processing 5".
I normally set up the program name, routine and SAPScript under "Processing 1" columns. I wonder what are the rest are used for?
Any idea?
Thanks.
TomHi Tom,
thanks for the extra info.
I can only guess at the reason for the other options because I have never seen anyone mainatin anything other than "processing 1" and everything works fine.
perhaps it is a method of having alternative forms and programs that can be used in different situations - sorry, stating the obvious here
I don't know how the system would know to use an alternative and which one to use? Perhaps there is some hidden code that trys the next entry if the first one fails????? perhaps it is connected to the "layout module" field on the same screen? Perhaps this uses logic to determine which combination to use depending on the circumstances?
It is a really good question, but unless you need to use the alternatives for any reason, I guess that is is just "nice to know" the logic?
Steve B -
Processing Routines in NACE for Outbound delivery(DESADV)
Hi to all,
i'm triggering an IDOC while changing the delivery,( message type DESADV and basic type DELVRY05)
i'm using processing routines with program RSNASTED and form routine EDI_PROCESSING and i created
my own output type(ZLD0).
Now my requirement is that i want to populate some custom fields into IDOC( for that i already created extension)
these custom fields i can get in one BADI- BADI_V56K. ( i implementend this BADI also.
But problrm is that while changing the delivery the control doesn't go into this badi, for this i need to execute the program
RSNAST00 manually.
i tried with this (RSNAST00)program name in NACE configuaration with output type->default values-.dispatch time->
send with periodically scheduled job. but now IDOC is not triggering.
Can anybody suggest me solution for this so i can use BADI mentioned above.
Thanks......yes while changing the delivery idoc is generating now. but my problem is that i need user exit for populating the custom fields.
i tried with BADI's and user-exits mentioned above but my control doesn't go into there...i want proper user-exit or badi so i will update custom fields while changing the delivery...following are the fields in my custom segment....
a. Order Number, VBAK-VBELN (please use table VBFA as reference).
b. Site ID u2013 There is a field E1EDL20-VSTEL(Shipping point, I think we can use this. Will need to be added to the IDoc if this is not correct during testing).
c. Country of Origin :
d. Currency : VBAK-WAERK
e. Line Item No: VBAP-POSNR
f. Customer Part number : VBAP-KDMAT
g. Sales Price : VBAP-NETWR
h. Status of the Delivery (Custom Table to be developed).
i. License number (Custom Table to be developed).
j. Parent Line Item Number1 : VBAP-UEPOS
k. Parent Line Item Number2 : VBAP-UEPOS
l. Parent Line Item Number3 : VBAP-UEPOS -
Processing Routines in t.code V/40
Hi gurus,
Good day! Please kindly assist to advice how does Processing Routines work. Our system currently has 2 processing routines maintained (Processing 1 and Processing 2) to one Output Type. Please advice how will the system go to Processing 2 as currently, our test only go to Processing 1.
Thank you in advance!
RellieHi,
It is not possible to have 2 different routines to be assigned to one output type in the procedure. I think when you say 2 routines, you are saying 2 logics or you are saying the subroutines KOBED and KOBEV of the routine.
In all reqmt routines, which is in discussion now, only one of the subroutines will be always called, though I dont know unfortunately which one is this. As you said, that only one of your processing logic works, that is the right subroutine area where the second logic should also be coded. So please move your code from the inactive subroutine area to the active subroutine area. Now you should be able to see both the validations being active.
Hope this helps. If the case is different, please let us know. -
Program name for E-mail processing routines for o/p type NEU
Hi Friends ,
What is the program name for E-mail processing routines for o/p type NEU for purchase order . This i want use this for send PO for vendor .
RBHi
Program SAPFM06P
Form Routine ENTRY_NEU
Form MEDRUCK
Transmission Medium - External Send
Maybe you are looking for
-
Error in creating business partner through transaction FPP1 in ECC6.0
HI, We have upgraded our system from 4.7E to ECC6.0.Now when we are trying to create business partner through transaction FPP1 we are getting error as " Exception condition "NO_ACTIVE_TAB" raised." Can any one help us in rectifying the error and tell
-
Including scaling information in binary file, which can be plotted in graph
I need to plot a graph from a from a bin file, I am able to plot the graph using read binary file vi but the scaling is nowhere close to what it needs to be. Its in auto scaling mode, if I set the values manually by giving maximum and minimum values
-
Dynamic Grouping on Time Interval Parameters
I have started a report that pulls volumes from our database dependant upon an Interval parameter. This function works just fine using the following code. WHERE (@Interval = 'Daily (Yesterday)') AND (Date_DateTime >= DATEADD(dd, -1, DATEDIFF(dd, 0, G
-
I can not get my facetime to work. I have a wireless connection but it is not working.
-
JAAS configuration steps for web example in tomcat
Hi, I have to configure JAAS for the deployement of my web application in tomcat. but i am not getting any proper document for this. If any one could provide some useful information or documentation so please help me. Thanks