Function module to get spool request number
Hi Experts,
Is there a FM which basically returns the Spool Request Number generated by a particular Program / User ?
System: 4.6C
Thanks a lot.
one more is there
'RSPO_OPEN_SPOOLREQUEST'
it will give the appropriate solution to your query.
another one ,
SUBMIT (p_repid) TO SAP-SPOOL
SPOOL PARAMETERS mstr_print_parms
WITHOUT SPOOL DYNPRO
AND RETURN.
but it will create infinite loop , so use abap memory and export a flag variable with
a value to restricted the excution of the above submit only once and all the internal
table and other data which you want in your program . below is the example .
importing variable value set at first time to restrict the infinite loop .
IMPORT var FROM MEMORY ID 'abc' .
var = var + 1 .
*checking variable to restricted scecond time exction of this block of code
*IF var = 1 .
v_memid = 1 .
EXPORT var TO MEMORY ID 'abc' . (flag variable to restrict the excution only once )
EXPORT it_pernr it_pernr_quali v_memid TO MEMORY ID 'bcd'.(internal table and otherdata)
submitting the spool request
SUBMIT (p_repid) TO SAP-SPOOL
SPOOL PARAMETERS mstr_print_parms
WITHOUT SPOOL DYNPRO
AND RETURN.
ENDIF.
Similar Messages
-
Function module to get material serial number status
Hi Gurus,
How to get get material serial number status? Is there any function module?
TCode IQ03 to display the serial number staus, but where i can find the status (AVLB / ESTO / ECUS) of these serial number ?
Pls help.
Regards,
Sankaranhi,
SELECT SINGLE equnr objnr FROM
equi INTO (equnr1 , objnr1)
WHERE sernr = wa_final-sernr
AND matnr = wa_final-matnr.
CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING
client = sy-mandt
flg_user_stat = 'X'
objnr = objnr1
spras = sy-langu
bypass_buffer = 'X'
IMPORTING
line = sttxt
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
siva -
Function Module to get Material Document Number
Hi All,
I want to get the Material Document Number based on the Material, batch ,movement type and plant. Is there any function module to achieve this, without going to MSEG table.check this might help you..
Get Material Document Number and Material Document Year
Regards
Kumar -
Function Module to get sales order number
Hi,
In a custom program I am giving Material number and Plant as input in VBAP to find the Sales Order number. However this step is taking long time to execute and so getting dump with time out error.
Please let me know whether there is any Function Module in which we can input Material and plant and get the Sales Order Number.
RegardsHi,
Rather than searching for a FM, you can get a small report developed to look up for VBAP for a given material, plant.
Ensure that this report is always run in background. Also consider giving other parameters for faster processing like date range etc..
Regards,
RS. -
Relation with spool request number and invoice number
Hi ALL,
I have developed two function modules the first one generates the Invoice Number for a particular customer.
Now on passing this Invoice Number to the second function module, I should get the Spool Request Number.
I have developed the first function module.
That Spool Request Number would display the invoice of the customer in the PDF format.
So please help me how to get that Spool request number.
Thanks and regards
ramaHi,
in your case when ever invoice created you need to store the data like spool number,invoice number,user name etc..into a <b>ZTable</b>, and then when ever you enter the invoice select the data from the ZTABLE and convert the spool to PDF and show it.
Regards
vijay -
Function module to get vendor-CNPJ by vendor number
Hello SAP Experts,
Is there any function module to get vendor CNPJ number (For Brazil) by vendor number? If not, is there any alternative to get the CNPJ by vendor number?
Thank you,
Magesh.Can you check below FM
J_1B_NFE_IN NF-e incoming
J_1BNFE_GET_CUSTOMER_FROM_CNPJ Derive vendor from CNPJ
J_1BNFE_GET_ORGDATA_FROM_CNPJ Derive company / plant from CNPJ
J_1BNFE_GET_VENDOR_FROM_CNPJ Derive vendor from CNPJ -
Function module to get the sequence numbers based on PERNR & payroll period
Hi,
Right now i am using the function module 'CU_READ_RGDIR' to get the sequence number based on the PERNR. Once i get the data i am filtering based on payroll periods (begin date and end date). Is there any function module to get the sequence number directly based on PERNR and payroll period dates? if so could you let me know.
Thanks
SatyaI think thats the only way
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
persnr = p0001-pernr
TABLES
in_rgdir = it_rgdir
EXCEPTIONS
no_record_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
check whether "Pay date for payroll result" with in Start Date and
End date, and "Reason for Off-Cycle Payroll" is initial
LOOP AT it_rgdir WHERE paydt >= v_begda
AND paydt <= v_endda AND
void IS INITIAL
AND ocrsn IS INITIAL
AND srtza = 'A'.
v_seqnr = it_rgdir-seqnr.
ENDLOOP.
Hope this helps.
Thanks
Kiran -
How to get the spool request number ?
Hi All,
I am working on a smart-forms. I am using a custom transaction to print these smartforms. When I execute
the transaction the print screen comes where I can do
print preview or print.
Now to convert this Smart Form to PDF I need to know the spool request number to use in the report called RSTXPDFT5.
How do I get the spool request number ?
Do I need to do some changes in spool control options of print screens to get the spool request number or something else ?
Please let me know.
Answers will be awarded...
TusharHi,
You will get the spool no. in the parameter "job_output_info" after calling the smartform function module in print program. The spool ids of the prints is stored in table job_output_info-SPOOLIDS.
Regards,
Gagan -
ABAP - Function module to get the number of working days between 2 days
Hi gentlemen,
I have been asked to produce a report that gives the number of working days between 2 days, based on a calendar.
I didn't find anything...
Has any of you already written a function module to get this ?
A great thanks in advance.
Jacques LagrifHi ,
you can try this ,
when you require the number of working days between D1 and D2
Total No of Days will be
D2 - D1
No of holidays between D1 and D2 , use the FM HOLIDAY_GET
Pass the From date , to date , and the factory calendar to get the of Holidays
Total no of days - Number of Holidays will your Working days
Regards,
Sathya -
Function Module to get pernr number based on first name and last name
Hi All,
What is the Function Module to get pernr number based on first name and last name.
Could you please help me.
T@R.
Vidyahi Vidya,
you can get perner from PA0002 based on firs name and last name.
use select query and get perner. -
Function Module for getting Number ranges between two number
Hi guys,
Is there any Function module which provide us the number range between two numbers?
For Ex:If i give 1 and 10 to FM it must give me 1
2
3
4.....upto 10.
is there any FM for doing this,but i'm not able to find exact Fm for same.
I can write small piece of code for getting number ranges, but if i get FM it could save little work.Hi
But why do u need a fm, can't you do it by yourself?
DATA: FROM_NUMBER TYPE I VALUE 1,
TO_NUMBER TYPE I VALUE 15.
DATA: NUMBER TYPE I.
DATA: BEGIN OF T_NUMBER OCCURS 0,
NR TYPE I,
END OF T_NUMBER.
NUMBER = FROM_NUMBER.
DO.
IF NUMBER <= TO_NUMBER.
T_NUMBER-NR = NUMBER.
APPEND T_NUMBER.
ELSE.
EXIT.
ENDIF.
NUMBER = NUMBER + 1.
ENDDO.
LOOP AT T_NUMBER.
WRITE: / T_NUMBER-NR.
ENDLOOP.
Max -
Function Module for getting address from address number
Hi all,
Is there any function module for getting address from address number. kindly reply.
regards,
siyaHI,
just try this function module:
CALL FUNCTION 'HR_GET_ADDRESS'
EXPORTING
ankey = ankey
anart = anart
molga = '01'
IMPORTING
address_detail = adr_data
EXCEPTIONS
not_found = 1
OTHERS = 2.
HOPE IT WILL HELP YOU
regards
rahul -
BAPI function module to get condition type and its values based on delivery number?
Hi All,
I would like to have the BAPI function module to get condition type value based on delivery number before invoice is created.please provide detail program for as a reference .please reply as soon as possible its urgent.
Regards,
saaikumar.If you haven't already, you may first need to search via the SAP transaction "BAPI" in the area this is applicable to. Failing that I do hope you get an answer.
-
BAPI or Function Module to get MSEG table data based on PO Number (EBELN)
Hi
1. Is there any BAPI / Function Module to get PO details based on Plant and PO date?
2. Is there any BAPI / Function Module to get Material document details(MSEG data) based on PO number?
Thanks
NarendraHi,
check the Bapis Givem below
BAPI_PO_GETITEMS
http://abap.wikiprog.com/wiki/BAPI_PO_GETDETAIL1
you will get the detail.
Regards -
How to get data from OTF spool request number
Hi all,
How to get OTF Data from the spool request number (OTF)?
How to create spool request from the OTF Data?
Regards,
Sunil KumarHi,
Check this links:
http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm
Sending Mail from SAP
https://wiki.sdn.sap.com/wiki/display/sandbox/SendMailwithPDFAttachment?showChildren=false#children
Maybe you are looking for
-
Acrobat won't open pdfs on clicking file icon and won't quit with key command
Acrobat won't open pdfs on clicking the file icon and won't quit with key command.
-
DI Server - Cannot connect to named instance SQL server database
Hi, I have developed a small DI server application and want to migrate it to a production server. I keep on getting the Cannot connect to SBOCommon error on login though. I have verified all user names and passwords and the only real difference is th
-
Exporting video made in FCE to WMV?
Hello, After making a video in FCE, how do I export it to WMV? Do I need some other software rather than IDVD? Thank you. Ed
-
Oracle Retail Allocation.
Hi, I am facing an issue in Allocation- Version 13.0.3. The PO number (which was approved in ORMS) is not visible in the LOV Pop up in Search screen. But the main criterias (given below) for the PO to be visible is being satisfied. 1. PO exist in ORD
-
Ilife disappeared after upgrading to lion OS
I am using 2011 MBP 15inch which I bought about 2 weeks ago When I had Snow Leopard OS, I used to have all programs of iLife 11 such as iPhoto and etc. But when I bought a legit Lion OSX from App Store and installed it, I lost all free programs which