2009 Dec 10 1:45 PM
Hi,
We are to create a PO by giving a output type ZPO2 in the sales order. For this we have configured in NACE the ZPO2 output type with medium as 8 (special function). In NACE we have given the Z program name and the form name (Perform in the Z program).
Now when we give the output type in the sales order and then while debugging we find that the Z program and the form given in NACE is called.
But however when we check the sales order again in TCode VA02 there is a popup mentioning that the update was terminated. In ST22 there are 2 dumps.
1) One with the error DYNPRO_SEND_IN_BACKGROUND and the description in the dump is
The current ABAP program "RSNAST00" had to be terminated because one of the statements could not be executed.
The termination occurred in line 910 of the source code of the (Include) program "RSNAST00"
2) The other dump mentions Too many parameters specified with PERFORM.
In a subroutine call, there were more parameters than in the routine definition.
Error in ABAP application program.
The current ABAP program "RSNAST00" had to be terminated because one of the statements could not be executed.
The termination occurred in line 910 of the source code of the (Include) program "RSNAST00"
In both the cases the termination occurs on:
NAST = TEMP_NAST
Please help me understand what is wrong and how can it be rectified.
Thanks
Mick
2009 Dec 10 2:04 PM
Hi Mick James,
About First Error..
Check out there is an Enhancement Point there in program RSNAST00
ENHANCEMENT-POINT OBJEKT_SPERREN SPOTS ES_RSNAST00 STATIC
Check the code in this Enhancement Point...
You must be executing some objects or FMs etc which can not be run in Background because it require SAP GUI
And another You must be passing more parameters in Subroutine while calling it ... Check out the defination of Subroutine and number of parameters you are passing...
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya
2009 Dec 10 1:53 PM
Hi
1) The first dump is as a screen is called in a backgroudn process
2) the second dump is because a routine is calling dynamically, but the number of parameters used is different from the number of parameter defined in the interface of routine
Max
2009 Dec 10 2:04 PM
Hi Mick James,
About First Error..
Check out there is an Enhancement Point there in program RSNAST00
ENHANCEMENT-POINT OBJEKT_SPERREN SPOTS ES_RSNAST00 STATIC
Check the code in this Enhancement Point...
You must be executing some objects or FMs etc which can not be run in Background because it require SAP GUI
And another You must be passing more parameters in Subroutine while calling it ... Check out the defination of Subroutine and number of parameters you are passing...
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya
2009 Dec 10 2:51 PM
Thanks Max and Ilesh.
I have been able to resolve the dumps now. But the output is now going into error (red light). The processing log mentions the error as Processing routine ENTRY in program ZTEST does not exist. But the perform Entry (Form Entry) does exist in the program ZTEST.
Please help.
Mick
2009 Dec 10 3:13 PM
Hi
Try to check the NACE transaction for your message type: here the routine in ENTRY and program ZTEST, so if u saiys that routine exists there, check if the program ZTEST is defined as program (TYPE 1).
Max
2009 Dec 10 3:14 PM
Hi,
I have been able to resolve the output type issue. The Z program is now being called and the output type is now in green. Now my questions is that this Z program is called in update mode after the sales order saved ( by entering the output type in the sales order), how will I get in the Z program which sales order (sales order no) is being processed?
Please help. Any help would be appreciated.
MIck
2009 Dec 10 3:17 PM
That depends on how you create the sales order: which method are u using?
Max
2009 Dec 10 3:25 PM
Hi
I am changing the sales order using TCode VA02. Basically the output type will be added in TCode VA01 and VA02. After the output type is added and we save the sales order the Z program will be called (I assume in update mode). How do I get the sales order (which is currently being processed) and the purchase requisition (created by standard SAP process) details in the Z program.
Thanks.
Mick
2009 Dec 10 3:56 PM
The sales order is in the NAST (NAST-OBJKY): your routine should have the header line of the NAST
Max
2009 Dec 10 4:56 PM
2012 Feb 27 11:23 AM
Hi Mick
I'm also facing the same issue, the 'Z' program in the output type with 'Special Function' as transmission medium is not triggering. Kindly help in this issue.
Regards
Saran