‎2011 Sep 02 3:58 PM
Hi guys,
I'm having problems to find the name of a SAPScript. My requirement was to edit a custom transaction to add a field, and to show that field in a Label that gets printed every time this transaction is executed. The problem is that this transaction calls a custom FM, inside that FM there's another call to a custom FM, and inside that FM there are multiple calls to standard FMs.
I've put breakpoints inside the FM OPEN_FORM and it doesn't stop. The Functional doesn't have idea of the Output Type for the SapScript. In transaction NACE, by going thru the related areas, I have not found anything that matches the format of the label. And, I've been trying to debug it step by step, but is eternal.
The format of the SapScript is the following:
-
RECVD: 9 Sep 11
RECEIPT TICKET
Val: PO:
P/N
- do not ship
Contact Person:
Deliver to Location:
Qty: ### EA
Batch:
-
Do you guys have any idea how can I find it?
Thanks,
Raulie
Edited by: Raulie on Sep 2, 2011 4:58 PM
‎2011 Sep 02 4:12 PM
Hi,
Goto table TNAPR and enter application as ME and then search.
You get the list of forms and driver programs and check them.
Or
Goto SE38 and enter the program name RSNAST00 and set break point on
PERFORM (TNAPR-RONAM) IN PROGRAM (TNAPR-PGNAM) USING RETURNCODE
Shiva
‎2011 Sep 02 4:12 PM
Hi,
Goto table TNAPR and enter application as ME and then search.
You get the list of forms and driver programs and check them.
Or
Goto SE38 and enter the program name RSNAST00 and set break point on
PERFORM (TNAPR-RONAM) IN PROGRAM (TNAPR-PGNAM) USING RETURNCODE
Shiva
‎2011 Sep 02 4:27 PM
Thanks Shivakumar!
I put a breakpoint there, and it stops in the FM ME_UPDATE_GOODS_RECEIPT. The same thing happens when I put a breakpoint in the FM OPEN_FORM.
Do you know why this happens, and how can I get the name from there?
Edited by: Raulie on Sep 2, 2011 5:28 PM
‎2011 Sep 02 4:37 PM
Hi
Did you check in TNAPR table with ME and also check for the custom forms assigned
Shiva
‎2011 Sep 02 4:50 PM
Yes, I haven't found anything. I went through every FORM. Just this appears (nothing custom):
Program FORM routine Form
RTLABELO PRODUCT_LABEL
RTLABELO PRODUCT_LABEL
J_1IPRNTARE ENTRY_ARE1 J_1I_ARE1
J_1I57FPN ENTRY_57F4 J_1I_57F4
/SAPHT/RDRM_OUTPUT_PROCESS ENTRY
RSNASTSO SAPOFFICE_AUFRUF
RSNASTSO SAPOFFICE_AUFRUF
RSNASTSO SAPOFFICE_AUFRUF
RSNASTSO SAPOFFICE_AUFRUF
RSNASTSO SAPOFFICE_AUFRUF
SAPM07DR ENTRY_WA01 WA_SCHEINVERS1
SAPM07DR ENTRY_WA02 WA_SCHEINVERS2
SAPM07DR ENTRY_WA03 WASCHEIN
J_1AMM01 ENTRY_WA03 J_1A_WASCHEIN
SAPM07DR ENTRY_ETIA MM07ET
SAPM07DR ENTRY_ETIA MM07ET
SAPM07DR ENTRY_ETIAS MM07ET
SAPM07DR ENTRY_WE01 WESCHEINVERS1
SAPM07DR ENTRY_WE02 WESCHEINVERS2
SAPM07DR ENTRY_WE03 WESCHEINVERS3
SAPM07DR ENTRY_ETIE MM07ET
SAPM07DR ENTRY_ETIE MM07ET
SAPM07DR ENTRY_ETIES MM07ET
SAPM07DR ENTRY_WEK1 PSFC_KANBAN
SAPM07DR ENTRY_WF01 WE_FERT_VERS1
SAPM07DR ENTRY_WF02 WE_FERT_VERS2
SAPM07DR ENTRY_WLB1 WA_LB_VERS1
SAPM07DR ENTRY_WLB2 WA_LB_VERS2
SAPM07DR ENTRY_WLB3 WA_LB_VERS3
‎2011 Sep 02 5:34 PM
Put a BREAK-POINT in function module READ_TEXT. This is the standard piece of code that reads sapscript texts.
‎2011 Sep 02 6:02 PM
I've done that, but it doesn't stop there. It stops in FM ME_UPDATE_GOODS_RECEIPT. Maybe it is because I have enabled "System Debugging" & "Update Debugging".
When the label is printed a message says: Initial MB01 Receipt, and it shows the material document no. that is created.
This is the label: http://db.tt/eZph94t
I went to transaction SE71 Utilities > Activate Debugger and it doesn't stop. What if it is a smartform?
Edited by: Raulie on Sep 2, 2011 7:15 PM
Edited by: Raulie on Sep 2, 2011 7:18 PM
Edited by: Raulie on Sep 2, 2011 7:30 PM
‎2011 Sep 02 11:00 PM
Print a goods receipt and go to SP02 and double click on the most recent spool request and look at "Name" beside that it will have three fields. To make sure you're double clicking the right one click on the page icon in the "TYPE" column. The first field should say "SMART" or "SCRIPT". if it's SMART it's a smart form if it's SCRIPT it's a sapscript form. I activated printing for goods receipt for a purchase order and I use as smartform so there is a possibility that it's a smartform. Try using NACT (table V_TNAPR using SM30) to find it out in traditional way look for WE type output messages.
‎2011 Sep 02 11:25 PM
Hi Raulie,
if you activate update debugging, it stops when the update task starts. Here you have to set the breakpoit again: Goto breakpoints tab in new debugger, F7 in old debugger, set breakpoint on Open_form. Make sure you have success message 'breakpoint set' and can see it in breakpoints overview.
It will stop.
Regards
Clemens