getting the spool number in a print program
Hi,
to use function 'RSPO_DOWNLOAD_SPOOLJOB' in a print program I need to find out the spool number of the spool entry that the program has just created. It would be easy if I could use structure ITCPP as export parameter in function 'close_form' but I can't change this part of the program - would be a modification.
I hope that you'll have an idea!
Thanks
Nicola
Hi Nicola,
I am not sure if this is what you want. You can find the spool number in table TSP01.
Regards
Henk
If the Output is available in NAST you can get the spool No. by referring to NAST and CMFP.
KRK
I'm using TSP01 now but because I don't have the key field - this select might be a bit dangerous.
Kumar, I've already tried the solution you've posted in this forum but the field entry of CMFP-MSGV1 is not the spool no. but the program name (and I can't find the spool no. in any other field of table CMFP). The output is available in NAST, it's foreign trade output type 'FEEX'.
Regards
Nicola
CMFP will be updated with the Spool No. only if you use FM NAST_PROTOCOL_UPDATE in your Print Prog.
KRK
I used 'NAST_PROTOCOL_UPDATE ' but I don't get the spool no. - I get the program name in field CMFP-MSGV1. I used the following code:
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
MSG_ARBGB = SYST-MSGID
MSG_NR = SYST-MSGNO
MSG_TY = SYST-MSGTY
MSG_V1 = SYST-MSGV1
MSG_V2 = SYST-MSGV2
MSG_V3 = SYST-MSGV3
MSG_V4 = SYST-MSGV4
EXCEPTIONS
OTHERS = 1.
The entry in table CMFP is:
MANDT 800
APLID WFMC
NR 3125
MSGCNT 1
ARBGB VN
MSGTY I
MSGNR 056
MSGV1 Y8SDRVADAUS1
MSGV2 ENTRY_FEEX
MSGV3
MSGV4
SPRAS
Nicola
Are you able to see the Spool No. using GoTo -> Processing Log in your Output.
If you use the FM you have to get this. If you are able to see it can you inform as to what the message says (Eg. VN 342 Message Output with Spool Number 18442).
KRK
Hi Kumar,
that's what I see in the processing log:
Object 0060000024
Output type: Export declaration
Processing log for program Y8SDRVADAUS1 routine ENTRY_FEEX
Message output with spool request number
The spool request number field is empty. I have no idea why.
Nicola
Hi,
Tried using Dynamic field-Symbols.
These may help, though they are dangerous.
Regards,
Sudhir/Mohit