Archive Function Modules
Hello Experts,
We are archiving the PDF function modules from the Application Server (unix) into Archive LInk.
For this we are using these three function modules in the same order.
1. ARCHIV_METAINFO_GET
2. ARCHIVOBJECT_CREATE_FILE
3. ARCHIV_CONNECTION_INSERT .
The Function module ARCHIVOBJECT_CREATE_FILE causes performance issue as it takes too much time say 4 seconds to archive each PDF file.
Then we tried with another function module " ARCHIVOBJECT_CREATE_SYNCHRON " , but it also took the same time to archive .
Can any one suggest any other similar FM to serve this Purpose PLease ?.
Regards
Swarna.
Hi Swarna,
The performance of archiving PDF file from mentioned FM depends on the size of PDF file.
Different FM will not help in imporving the performance.
What is the purpose of archiving these PDF files? Do you want to assign these PDF files to any existing SAP business documents?
If so you can use standard SAP functionality of Archivelink - Document Archiving concept.
In additional you can also check the FM in Debug mode - For transaction OAWD while storing the physical documents.
OAWD functionality - It will help in storing the document from local system - file directory to archive server. This functional module will match for your requirement.
Note: In OAWD you can only process archiving of physical documents for single SAP business document at a time.
Since you are doing mass archiving of Physical documents so performance of your program will be long hours (as it depends on size of your PDF docuemnt).
-Thanks,
Ajay
Edited by: Ajay Kumar on Mar 8, 2010 3:00 AM
Similar Messages
-
Function modules for deleting photos in archive
Hi all,
I got the requirement to delete the photos which was uploaded through archive link (OAAD).
Could I know which function modules should I use to delete the link as well as document?
When I searched in forums I found some function modules:
ARCHIVE_OBJECT_DELETE
HRXSS_COD_DELETE_OLDPHOTO
But these function modules doesnot exists in my client.
Could you suggest me some other function modules with parametrs passing.
Also explain me how to pass parameters for SCMS_DOC_DELETE function module.Is this helpful for deleting of photos?
Thanks in advance.Hi Harika,
you could try using the FM ARCHIV_DELETE_META.
Also, the FM HRXSS_COD_DELETE_OLDPHOTO appears to have been create for this purpose of deleting employee photos; and only requires the personnel number to be entered.
KR,
Karen. -
Archiving functionality with financial modules
Hi,
When going through the concepts of archive and purge with oracle ebs , i found that we donot have archive functionality with
1. oracle payables
2.Oracle Cost Management
3.Order Management
Could some one tell me why we donot archive data from these modules alone????
Why is purge functionality alone present in all the modules??
Thanks,
Akila Manikandan.Hi,
There are two conditions that you should keep in mind while using the Archive files with errors option
1. The Processing Mode has to be Archive not Delete in case you are using the Add Time Stamp for the archived files with errors(the second check option not the first one)
2. In case the processing mode is Delete you can not use the second ADD Time Stamp option but this also can archive files with errors
Ranjit -
Archiving using PBS Function modules
Hi All,
I am converting existing report to archiving reports.
For that I am using <b>PBS Commands FUNCTION MODULES</b>. .
ie function module like <b>'/PBS/SELECT_INTO_TABLE'</b>
Can any one send some documents related PBS and how to use these commands or function modules,and sample programs.
thanks in advance..
srinu.Hi ,
Thanks for your help and responce.
I already coded one small program using commands . but its not working properly in perticular case.
Here is the Code.
From EKKO table the fucntion module fetching the data properly.
SELECT SINGLE * FROM EKKO
INTO W_EKKO
WHERE EBELN EQ P_EBELN.
IF SY-SUBRC NE 0.
CALL FUNCTION '/PBS/SELECT_INTO_TABLE'
EXPORTING
ARCHIV 'CMM'
OPTION ''
TABNAME = 'EKKO'
SCHL1_NAME = 'EBELN'
SCHL1_VON = P_EBELN
SCHL1_BIS = P_EBELN
TABLES
I_TABELLE = TAB20
EXCEPTIONS EOF = 4
OTHERS = 2.
LOOP AT TAB20 WHERE ( EBELN EQ P_EBELN ).
MOVE-CORRESPONDING TAB20 TO W_EKKO .
EXIT.
ENDLOOP.
ENDIF.
<b><u>But when I use the function module to fetch from EKPO, its considering only EBELN , but not considering the EBELP .</u></b>
Its fetching all the line items related to this EBELN.
SELECT * UP TO 1 ROWS
INTO CORRESPONDING FIELDS
OF TABLE TAB23
FROM EKPO
WHERE EBELN EQ W_EKKO-EBELN
AND EBELP EQ P_EBELP.
ENDSELECT.
if sy-subrc ne 0.
CALL FUNCTION '/PBS/SELECT_INTO_TABLE'
EXPORTING
ARCHIV = 'CMM'
OPTION = ''
TABNAME = 'EKPO'
SCHL1_NAME = 'EBELN'
SCHL1_VON = W_EKKO-EBELN
SCHL1_BIS = W_EKKO-EBELN
SCHL2_NAME = 'EBELP'
SCHL2_VON = P_EBELP
SCHL2_BIS = P_EBELP
TABLES
I_TABELLE = TAB23
EXCEPTIONS EOF = 4
OTHERS = 2.
LOOP AT TAB23 WHERE ( EBELN EQ W_EKKO-EBELN AND
EBELP EQ P_EBELP ).
MOVE TAB23-ebelp TO W_EKPO-ebelp.
ENDLOOP .
endif.
<u>Please check my code and give me some inputs.
Is there any pre-conditions are needed.</u>
Thanks and Regards,
Srinivas Kalva. -
Function Module / Method to Get Status of PO and Invoice status (Archived)
Hi Experts,
I have a requirement where I have to process mass collection of SO, PO and Invoices for certain output triggers based on user input in a Z program. However the requirement states that I need to skip processing for the documents which are archived. I got a method (CALL METHOD cl_sd_archived_sales_documents=>check_sales_doc_archived on ECC 6.4 system) to get Archived status of Sales Order, but could not find anything suitable for getting the same for a PO or Invoice documents. Whatever function module I am getting, requires an input called Archive Key or handle.
But I will be only having the document number (like a purchase order number or a invoice number). Is there any inbuilt FM or Method in SAP which will let me determine if the document is already archived or not?
Thanks for your time,
AnidThe function module looked promising, but it returns some weired error when I execute. I will check with Basis team, as I tried with multiple PO which are archived (and can not be viewed on ME23n)
Error ID I got is:
Exception NOT_FOUND
Message ID: CMS Message number: 025 -
Hi
Is there any function module for F-04 transaction.
Please help with answers.Hi,
Check the following Exits
SAPLF051 Workflow for FI (pre-capture, release for payment)
RFKORIEX Automatic correspondence
RFEPOS00 Line item display: Checking of selection conditions
RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
FEDI0001 Function Exits for EDI in FI
FARC0002 Additional Checks for Archiving MM Vendor Master Data
F180A001 Balance Sheet Adjustment
reward if useful
regards,
Anji -
is any function module available to change the date format yyyy/mm/dd to yyyy/mm
Thanks
KumarHey,
Go through this link,
http://sap.ittoolbox.com/code/archives.asp?d=3095&a=s&i=10
FORM CONVERT-DATE.
>
> SELECT SINGLE * FROM USR01 WHERE BNAME = SY-UNAME.
> CASE USR01-DATFM.
> WHEN '1' OR '2' OR '3'. "JJ.MM.AAAA
> WA_JJ = SY-DATUM(2).
> WA_MM = SY-DATUM+2(2).
> WA_AAAA = SY-DATUM+4(4).
> WHEN '4' OR '5' OR '6'. " AAAA.MM.JJ
> WA_JJ = SY-DATUM+6(2).
> WA_MM = SY-DATUM+4(2).
> WA_AAAA = SY-DATUM(4).
> ENDCASE.
> ENDFORM. -
Regarding Remote function module ARCHIV_CONNECTION_INSERT
Hi All,
Can any give me more detial about remote function module ARCHIV_CONNECTION_INSERT . So i have requirement that our client is archiving document from Commonstore. So want to create custom function module for TOA01 ( ZTOA01 ) and add a maintanance field. if data is archived maitaianance field should be flagged and next time when he is archivig document he dont want to give date. so only unflagged document should be archived.
so can any one help me how to overcome this requirement as this is urgent.
Thanks in advance.
Best Regards,
zuberaGo to SAP Service Marketplace (service.sap.com) and SAP Notes Search. Put in the note number 758278 and hit display.
However to be able to access service marketplace you need a s-user registered for the company you are working for. Please contact your basis team to find out what user is available to you.
Regards,
Michael -
Problem to trigger breakpoint in function module of idoc
Hi,
We have requirement to write the additional code in function module in IDOC to fulfill the one of business requirement. To write the code in the function module we put the breakpoint in function module but the function module is not triggering the breakpoint after saving the billing document.
IDOC we are using is INVOIC02
Function Module we are using is IDOC_OUTPUT_INVOIC
i found the relevant for answer for my question in above link -
[[http://blog.csdn.net/xyfchris/archive/2007/10/04/1811389.aspx]e]
I process the same way as explained in the above link, but still the function module is not triggering the breakpoint and showing the information message as -
0 number of outputs were processed in total and zero are successfully, zero are incorrectly
Please help in this
Regards
Goutham
Edited by: goutham p on Dec 30, 2008 8:00 AMHi,
Please ask the ABAPer to just use P0105-PERNR within Z-report.
It should work.
Please refer to the following WIKI page for reference:
http://wiki.sdn.sap.com/wiki/display/ERPHCM/HowtoCreateaDynamic+action
Regards,
Dilek -
Error in function module ARCHIVOBJECT_GET_TABLE
Hi experts,
We are using the function module ARCHIVOBJECT_GET_TABLE to retreive
the archived scanned image and then we will attach this image in
emails.It was working previously .Suddenly this function module is giving error and I have tested the above function module in DEBUG mode.The error is due to " no entry exists in table 'SDOKPROF'.
we are able to see the archived scanned dcoument through OAAD .Why this
function module is giving error suddenly?How the entries are maintained
in table SDOKPROF?
We checked that all archiving settings are fine in OAC0 and OAC3 and RFC from SAP to IXOS also working correctly.
This function module ARCHIVOBJECT_GET_TABLE has status Not released.
the error is from the function module "SDOK_PROFILE_READ " inside the FM ARCHIVOBJECT_GET_TABLE.SDOK_PROFILE_READ also not release.Error raised is from the select query inside SDOK_PROFILE_READ.Is the problem due to the function module status not released?
Kindly suggest Me.
Best Regards,
Veena.I have actually passed this information to our IXOS admin guy, he is still looking at it though.
In the mean time can you please pass me the <b>sample code</b> on how you guyz are actually doing this through report. I tried couple of things but I'm sure I wasn't right in framing the correct process, since you have a proved report already, it would be of a great help if you can share.
You can aswell mail it to my personal id <u>[email protected]</u>.
Thanks in advance. -
Function module to find the attachment list for an accounting document?
Is there a function module to find the attachment list for an accounting document? Or which table stores such references?
I know I can find this info from the transaction FB03, but is there a function module to find the attachments for an accounting document? So far I only found the attachments are stored in the table SOOD, and archived documents in table TOA03, but I can't find the table that stores the links between the accounting document and its attachments?
<b><REMOVED BY MODERATOR></b>
Thanks,
Ning
Message was edited by:
Alvaro Tejada GalindoHi,
i_object1-typeid = 'YARSATTA'. "<<< Give your Object id name
i_object1-catid = 'BO'.
i_object1-instid = i_yarsitem-docno. "<<<< Document Number
call method cl_gos_attachment_query=>count_for_object
exporting
is_object = i_object1
ip_arl = space
receiving
rt_stat = i_stat1.
read table i_stat1 into wa_stat1 index 1.
if sy-subrc eq c_0.
move wa_stat1-counter to v_attno1.
endif.
For link you need to check for table SRGBTBREL
and also please check class CL_GOS*
a® -
Runtime error when testing function module 'RSWR_RFC_SERVICE_TEST'
Hi,
I'am integrating BIW 3.5 with EP 6.0 according to the report 'RSPOR_SETUP'.I've carried all the steps,but an error on step 12 : system failure during call of function module 'RSWR_RFC_SERVICE_TEST' is there .When I test the connection with function module 'RSWR_RFC_SERVICE_TEST', a runtime error is coming i.e. "<--Localization failed: ResourceBundle='com.sap.engine.services.rfcengine.RFCR'.
Any help would be highly appreciated.
Regards.
ManojHi Manoj,
From this I can understand that a critical resource is missing which is required to start the RFC service in Reporting Services Web Runtime. This might be because of incomplete patch deployment. Deploy all the required software component archives related to com.sap.engine.services component and then retry this... I think this should solve the issue.
Imran... -
Function module "/IXOS/DCEP_RMAPI_READ" is missing
Hi,
We are trying to setup doculink for SAP to integrate with doculink for opentext ECM. During the configuration we are getting error for missing function module "/IXOS/DCEP_RMAPI_READ" for function group "/IXOS/DCEP_RMAPI".
Tried to search the function module "/IXOS/DCEP_RMAPI_READ" in sap, but no data exists.
Please help us to rectify the issue.
Regards
Nikhilesh Ray
+91-9819069840Dear Ray,
regarding the name of the mentioned function module I would recommend you to get in touch with your IXOS archive vendor company. I think they should be aware of how to create this function modules in your system.
Best regards,
Christoph -
Function Module showing Transparent Table access??
Hi Guys,
I'm in the process of writing some programs that will archive some of our Custom tables (they are getting very full!).
Now, instead of going through ALL the custom tables we created, I'm trying to write a small program that will bring me tables that have certain criteria...
One of the criteria is Tables Access. I'm trying to see when last a table has been accessed (by a program, for example). Im not talking about the last Change Date (as per table DD02L entries) as I presume this actually indicates technical changes to the table??
Im looking for a Function Module that can actually give me the last date any given transparent table's data has been accessed...
Does anyone know of such a Function Module/Class?
tks
C
POINTS WILL BE REWARDED FOR USEFULL AWNSERSHello Christian,
To answer your question, it is normally obtained through ST04 (DB Performance Monitor).
However, the inherent information pertinent to Table Access made by application programs depends on the underlying Database involved. In case of DB server being ORACLE...you may use the program RSORASCC.
Also, I would like to make a further recommendation about your methodology to identify custom transparent tables. Besides studying the table accesses, it is very important to consider the current size and the growth rate over a period of time. For doing this, use DB02 (Space Statistics for Tables and indexes) and workout the list of tables which you have to concentrate from archiving perspective.
Hope this info helps you and resolves your query.
With Regards
Vijay Gajavalli -
Calling Function Module starting new job
Hallo !
I'm calling a 'Z' function module from a class method.
I want the calling will start immediately a new job.
(That I will see in SM37)
(Like we can do with submit statement)
Is there a way to this ?
(I need the function will start a job - because
I want to save the function log in the Job list.)
Thanks in advance,
N.S.step : 1
Sample Program: Creating a Job with JOB_OPEN
<b>explanation :</b>
Use JOB_OPEN to create a background job. The function module returns the unique ID number which, together with the job name, is required for identifying the job.
Once you have "opened" a job, you can add job steps to it with JOB_SUBMIT and submit the job for processing with JOB_CLOSE.
Create your job with JOB_OPEN. The module returns a unique job
number. Together with the jobname, this number identifies the
job. Other parameters are available, but are not required.
JOBNAME = 'Freely selectable name for the job(s) you create'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = JOBNAME
IMPORTING
JOBCOUNT = JOBNUMBER
EXCEPTIONS
CANT_CREATE_JOB = 01
INVALID_JOB_DATA = 02
JOBNAME_MISSING = 03
OTHERS = 99.
IF SY-SUBRC > 0.
<Error processing>
ENDIF.
step 2;
Sample Program: Adding an ABAP Job Step
<b>explanation :</b>
Use JOB_SUBMIT to add a job step to a background job that you have opened with JOB_OPEN.
A job step is an independent unit of work in a job, the execution of an ABAP or external program. Each job step can have its own authorizations user and printer/optical archiving specifications.
Add a job step: ABAP program
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
AUTHCKNAM = SY-UNAME " Runtime authorizations
" user
JOBCOUNT = JOBNUMBER " Value from JOB_OPEN
JOBNAME = JOBNAME " Value from JOB_OPEN
REPORT = 'REPORT' " Report to be run
VARIANT = 'VARIANT' " Variant to use with
" report
PRIPARAMS = USER_PRINT_PARAMS " User printing options
ARCPARAMS = USER_ARC_PARAMS " User archiving options
" Both sets of options
" come from
" GET_PRINT_PARAMETERS
EXCEPTIONS
BAD_PRIPARAMS = 01
INVALID_JOBDATA = 02
JOBNAME_MISSING = 03
JOB_NOTEX = 04
JOB_SUBMIT_FAILED = 05
LOCK_FAILED = 06
PROGRAM_MISSING = 07
PROG_ABAP_AND_EXTPG_SET = 08
OTHERS = 99.
step 3
Sample Program: Immediate Start with JOB_CLOSE
<b>explanation :</b>
Use JOB_CLOSE to pass a background job to the background processing system to be run. Once you have "closed" a job, you can no longer add job steps to it or change job/job step specifications.
The function module returns an indicator as to whether the job was automatically released or not. A job is automatically released to run only if the user who scheduled the job has RELE release authorization for the authorization object Operations on background jobs.
A job step is an independent unit of work in a job, the execution of an ABAP or external program. Each job step can have its own authorizations user and printer/optical archiving specifications.
Submit job for processing: immediate start
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = JOBNUMBER " Job identification: number
JOBNAME = JOBNAME " and name.
STRTIMMED = 'X' " Schedules the job for
" immediate start. The job
" is started immediately
" only if the user has the
" RELE authorization to
" release a job to run.
IMPORTING
JOB_WAS_RELEASED = JOB_RELEASED " If user has authorization
" to release jobs to run, job
" is automatically released
" when it is scheduled. This
" field is set to 'x' if the
" job has been released.
" Otherwise, the job is sche-
" duled but must be released
" by an administrator before
" it can be started.
EXCEPTIONS
CANT_START_IMMEDIATE No longer used. Replaced by IMPORTING
parameter JOB_WAS_RELEASED.
INVALID_STARTDATE = 01
JOBNAME_MISSING = 02
JOB_CLOSE_FAILED = 03
JOB_NOSTEPS = 04
JOB_NOTEX = 05
LOCK_FAILED = 06
OTHERS = 99.
IF SY-SUBRC > 0.
<Error processing>
ENDIF.
in step 1 we will create a job with name etc..
in step 2 we will assign work to this job
step 3 : we will close the job inorder make it scheduled .
Regards
srikanth
added descriptions to each steps
Maybe you are looking for
-
HT5655 Adobe Flash Player Does not Work On Safari on iMac
A pdf file no longer opens fully on my iMac. I click on the opening and it starts to open the document but it never fully opens.
-
Hi guys/gals, I received today my memory: 2*512mb mushkins PC3200 400mhz...here is the problem: everytime I boot up I receive a post saying: 333mhz. I ran sysmark: 200mhz*2, I ran cpu-z: 200mhz*2 and ran another tool saying I have to ddrs at 200mhz.
-
Use of Logical Systems - RAR 5.3
Hi, i have created 2 physical systems (QA and Production systems) with the necessary connectors and assigned it to a single logical system. Subsequently i have generated the rules for that logical system. However when i run a risk analysis i do not s
-
Non Unicode R3 to non Unicode BI
Hi, We have a Non Unicode R3 system. My question is, should I install a non Unicode BI system or a Unicode BI system while installing NW2004s. We only have English language. What is SAP recommended. What are the pros and cons of installing unicode or
-
Automate Loading of Transparency Flattener Preset
For a project I'm working on we need for our users to have a particular transparency flattener preset loaded. I'm not finding a way to load it ahead of time. I can verify if it's loaded, which is helpful: tell application "Adobe Illustrator" set