BUFFER_REFRESH when using "BAPI technology" in SAP event exits
We wrote some custom function modules which are similar to the BAPI technology to maintain custom data tables.
Let's say we have
a function Z_DATA_CREATE,
a function Z_DATA_CHANGE and
a function Z_DATA_READ.
These function modules are RFC functions which can be called from outside SAP and have to reflect the transactional mechanism. That means that the caller can call any of these functions in an arbitrary sequence and has to control the commit or rollback.
E.g.
Step 1 : call function Z_DATA_CREATE
Step 2 : some external logic
Step 3 : call function Z_DATA_CHANGE
Step 4 : call function Z_DATA_CREATE
Step 5 : ...
Step 6 : call function Z_DATA_READ
Step X : call function BAPI_TRANSACTION_COMMIT
The data will not be written to the database until the COMMIT statement is called. Therefore all manipulated data are stored in the global memory of the function module in the meanwhile. The functions first check if there is data in the memory (prepared for SAVING) before they check the database tables. Essential for the data integrity in this model is that the memory is being refreshed when the COMMIT or ROLLBACK is fired. With BAPIs this is done by subscribing the delete functions which are called by the BUFFER_REFRESH_ALL function. BUFFER_REFRESH_ALL is called in the BAPI_TRANSACTION_COMMIT or rather BAPI_TRANSACTION_ROLLBACK function. So this works fine.
Now we want to use our function modules (Z_DATA_* ) in user exits of SAP standard processes. For example in event exits (transaction FQEVENTS ). I assume that these SAP programs only fire a COMMIT without calling the BUFFER_REFRESH_ALL .
But we have to ensure that the memory (the global data of the function modules) is being refreshed after a commit.
Do you have any idea how I could do this???
Thanks for your help!
Thanks Sharad,
your ideas helped me to find a possible solution (at least for the case that I don't use SET UPDATE TASK LOCAL).
I do the buffer refresh in a form which I call on commit (dialog process). As the update task works in a separate context and doe not access the dialog buffer anymore, it doesn't matter when the refresh is called after the COMMIT has been fired.
I'm not sure if your second suggestion would work as you don't have access to the same context data in the update task. Typically the buffer data are in the dialog context which is separated from the data in update task. So the REFRESH must take place during the dialog process.
Thanks a lot for your contribution!
Similar Messages
-
"Java and BAPI Technology for SAP" by by Ken Kroes - Is this book useful?
Howdy partners,
I've got a 'book' called "Java and BAPI Technology for SAP" by by Ken Kroes, Anil Thakur, Gareth M. deBruyn, Robert Lyfareff.
Now, does anyone know if the info in this book is still relevant to the modern SAP world? I mean its still talking about ITS and stuff like that?
Any input will be appreciated.With the blue cover? I have one with the something similar title, but it's quite out of date. There was lot of improvement on the Java side.
So I would prefer something newer from SAP-PRESS. Check the SAP-PRESS site.
BTW I don't consider ITS as an old technology...it was just integrated recently into WAS 640 to make it more powerful. This is the only available technology, which converts classic Dynpro to Webpage dynamically.
Peter -
How to transfer range parameter from vb when using bapi calling
Hi,everyone.how to transfer range parameter from vb when using BAPI calling?
Did you get the solution to your problem? Can you please share it with me. I have a similar problem. I have a VB program that calls RFC function. It works with a single parameter but not with a range of parameters. If you have the solution, could you please share sample codes with me? Thank you so much.
-
Please find herewith my below code. This program i have created for transferring goods with mvt type '657' to '555' using BAPI 'BAPI_GOODSMVT_CREATE' for TCODE MB1A.
*& Report Z_BAPI_FOR_MB1A
REPORT Z_BAPI_FOR_MB1A.
Tables : mkpf, mseg, WB2_V_MKPF_MSEG2.
DATA:
it_mb1a LIKE BAPI2017_GM_ITEM_CREATE OCCURS 0 WITH HEADER LINE,
it_return LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
it_ex_headret LIKE BAPI2017_GM_HEAD_RET OCCURS 0 WITH HEADER LINE,
it_im_header LIKE BAPI2017_GM_HEAD_01, " OCCURS 0, " WITH HEADER LINE,
it_im_gmcode LIKE BAPI2017_GM_CODE, " OCCURS 0, "WITH HEADER LINE,
mat_doc type bapi2017_gm_head_ret-mat_doc,
mat_docyear type bapi2017_gm_head_ret-doc_year.
*data : lv_intense(01).
data : it_mseg like WB2_V_MKPF_MSEG2 occurs 0 with header line,
it_cost like csks occurs 0 with header line.
selection-screen begin of block a with frame title text-001.
parameters: p_date type sy-datum default sy-datum.
select-options: so_budat for WB2_V_MKPF_MSEG2-budat,
so_werks for WB2_V_MKPF_MSEG2-werks_i,
so_matnr for WB2_V_MKPF_MSEG2-matnr_i,
so_lgort for WB2_V_MKPF_MSEG2-lgort_i.
selection-screen end of block a.
select * from WB2_V_MKPF_MSEG2 into
table it_mseg where
budat in so_budat and
werks_i in so_werks and
matnr_i in so_matnr and
lgort_i in so_lgort and
bwart_i = '657'.
select * from csks into table it_cost
for all entries in it_mseg where
gsber = it_mseg-werks_i.
*Filling BAPI Header Tables
it_im_header-pstng_date = sy-datum.
it_im_header-doc_date = sy-datum.
it_im_gmcode-gm_code = '03'.
*Filling BAPI Item Tables
loop at it_mseg.
read table it_cost with key gsber = it_mseg-werks_i.
it_mb1a-material = it_mseg-matnr_i.
it_mb1a-plant = it_mseg-werks_i.
it_mb1a-stge_loc = it_mseg-lgort_i.
it_mb1a-batch = it_mseg-charg_i.
it_mb1a-move_type = 555. " '103'.
it_mb1a-entry_qnt = it_mseg-menge_i.
it_mb1a-costcenter = it_cost-KOSTL.
it_mb1a-gl_account = '530089'.
append it_mb1a.
clear it_mb1a.
clear it_cost.
endloop.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = it_im_header
goodsmvt_code = it_im_gmcode
* TESTRUN = ' '
* GOODSMVT_REF_EWM =
IMPORTING
GOODSMVT_HEADRET = it_ex_headret
MATERIALDOCUMENT = mat_doc
MATDOCUMENTYEAR = mat_docyear
tables
goodsmvt_item = it_mseg
* GOODSMVT_SERIALNUMBER =
return = it_return
* GOODSMVT_SERV_PART_DATA =
* EXTENSIONIN =
if sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
* IMPORTING
* RETURN =
endif.
But when i execute the above i am getting the following error.
Runtime Errors CALL_FUNCTION_UC_STRUCT
Except. CX_SY_DYN_CALL_ILLEGAL_TYPE
Date and Time 27.01.2009 14:43:06
Short text
Type conflict during structure parameter transfer at CALL FUNCTION.
What happened?
Error in the ABAP Application Program
The current ABAP program "Z_BAPI_FOR_MB1A" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
not caught and
therefore caused a runtime error.
The reason for the exception is:
In the function "BAPI_GOODSMVT_CREATE", the STRUCTURE parameter "GOODSMVT_ITEM"
is typed in such a way
that only actual parameters are allowed, which are compatible in Unicode
with respect to the fragment view. However, the specified actual
parameter "IT_MSEG" has an incompatible fragment view.
Missing Handling of System Exception
Program Z_BAPI_FOR_MB1A
Trigger Location of Exception
Program Z_BAPI_FOR_MB1A
Include Z_BAPI_FOR_MB1A
Row 72
Module Name START-OF-SELECTION
Source Code Extract
Line SourceCde
42 lgort_i in so_lgort and
43 bwart_i = '657'.
44
45 select * from csks into table it_cost
46 for all entries in it_mseg where
47 gsber = it_mseg-werks_i.
48 *Filling BAPI Header Tables
49 it_im_header-pstng_date = sy-datum.
50 it_im_header-doc_date = sy-datum.
51 it_im_gmcode-gm_code = '03'.
52
53 *Filling BAPI Item Tables
54 loop at it_mseg.
55
56 read table it_cost with key gsber = it_mseg-werks_i.
57
58 it_mb1a-material = it_mseg-matnr_i.
59 it_mb1a-plant = it_mseg-werks_i.
60 it_mb1a-stge_loc = it_mseg-lgort_i.
61 it_mb1a-batch = it_mseg-charg_i.
62 it_mb1a-move_type = 555. " '103'.
64 it_mb1a-costcenter = it_cost-KOSTL.
65 it_mb1a-gl_account = '530089'.
66
67 append it_mb1a.
68 clear it_mb1a.
69 clear it_cost.
70 endloop.
71
72*>>>> CALL FUNCTION 'BAPI_GOODSMVT_CREATE'* 73 EXPORTING
74 goodsmvt_header = it_im_header
75 goodsmvt_code = it_im_gmcode
76 * TESTRUN = ' '
77 * GOODSMVT_REF_EWM =
78 IMPORTING
79 GOODSMVT_HEADRET = it_ex_headret
80 MATERIALDOCUMENT = mat_doc
81 MATDOCUMENTYEAR = mat_docyear
82 tables
83 goodsmvt_item = it_mseg
84 * GOODSMVT_SERIALNUMBER =
85 return = it_return
86 * GOODSMVT_SERV_PART_DATA =
87 * EXTENSIONIN =
88 .
89 if sy-subrc = 0.
90 CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
91 EXPORTING
Can u explain why this is coming. Your valuable suggestions are required.
Thanks,
Jitesh M NairHi,
Try this Code.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = WF_HEADER
GOODSMVT_CODE = WF_CODE
TESTRUN = WL_space
IMPORTING
MATERIALDOCUMENT = FS_MATERIAL_DOC
TABLES
GOODSMVT_ITEM = INT_ITEM
GOODSMVT_SERIALNUMBER = INT_SERIALNO
RETURN = INT_RETURN1.
*VARIABLES for goods movement creation bapi
DATA : WF_HEADER TYPE BAPI2017_GM_HEAD_01,
WF_CODE TYPE BAPI2017_GM_CODE.
DATA : FS_MATERIAL_DOC TYPE BAPI2017_GM_HEAD_RET-MAT_DOC,
FS_SERIALNO TYPE BAPI2017_GM_SERIALNUMBER,
FS_ITEM TYPE BAPI2017_GM_ITEM_CREATE,
FS_RETURN1 TYPE BAPIRET2,
data declaration for goods movement creation bapi
DATA : INT_ITEM TYPE TABLE OF BAPI2017_GM_ITEM_CREATE,
INT_SERIALNO TYPE TABLE OF BAPI2017_GM_SERIALNUMBER,
INT_RETURN1 TYPE TABLE OF BAPIRET2.
Hope this will help.
Regards,
Rohan. -
How can forbid changing data when using BAPI 'BAPI_MATERIAL_SAVEREPLICA'?
I am using BAPI 'BAPI_MATERIAL_SAVEREPLICA' to creat material master data in batch.
But this BAPI also can be used for change mode.
How to forbid the change of MAT data when use this BAPI?
TKS a lot~~
I am looking foward to your response~~~you have to find out what the user did before your program goes ahead and starts the BAPI.
-
How can forbid changging data when using BAPI 'BAPI_MATERIAL_SAVEREPLICA'?
I am using BAPI 'BAPI_MATERIAL_SAVEREPLICA' to creat material master data in batch.
But this BAPI also can be used for change mode.
How to forbid the change of MAT data when use this BAPI?
TKS a lot~~
I am looking foward to your response~~~
Edited by: lorryhappy on Dec 22, 2009 11:35 AMHi
You can achieve it in another way..
Before Passing Data to BAPI , Check whether the material is existing or not..
If material is existing (Present in Material Master Tables e.g. MARA ) using
data: l_matnr like mara-matnr.
Select single matnr from mara into l_matnr.
IF sy-subrc EQ 0.
" Material is existing ==> Do Not Pass to BAPI
else.
" Material is NOT existing ==> Pass to BAPI for creation.
endif.
Repeat above logic for every material in batch..
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
How to produce Material output message when use bapi function?
Dear Experts :
I use bapi BAPI_GOODSMVT_CREATE to receive stock.
I find the output message can't create automatically even when I have set the type in MR21.
Hope someone can teach me how to produce the message when I create the material document by BAPI function.
Thanks a lot.Hi,
The messages are stored in the return table of the bapi.
You can search in SCN or Google for BAPI error handling. -
Disable print output when using bapi BAPI_GOODSMVT_CREATE
Hello,
I am using BAPI BAPI_GOODSMVT_CREATE to post material documents in our programs.
I wish to prevent the print output of the documents created by the BAPI.
Meaning - when the user post good movement using MIGO, there will be a printout of the movement, but if the movement is created using BAPI_GOODSMVT_CREATE, no output will be printed.
I have tried sending blank values in fields VER_GR_GI_SLIP & VER_GR_GI_SLIPX in GOODSMVT_HEADER structure, but to no avail.
Is there a way to disable printing ONLY when using the BAPI?
Thank you very much.Hi,
We cant restrict the print preview or print out of the material document. Once the condition record has maintianed for the material document, it ll applicable for all the material doc . It would be manual Gr or BAPI GR.
In your case Print is coming automatically or user is taking the print !!
Regards,
Dhanush. -
Performance issue in Webi rep when using custom object from SAP BW univ
Hi All,
I had to design a report that runs for the previous day and hence we had created a custom object which ranks the dates and then a pre-defined filter which picks the date with highest rank.
the definition for the rank variable(in universe) is as follows:
<expression>Rank([0CALDAY].Currentmember, Order([0CALDAY].Currentmember.Level.Members ,Rank([0CALDAY].Currentmember,[0CALDAY].Currentmember.Level.Members), BDESC))</expression>
Now to the issue I am currently facing,
The report works fine when we ran it on a test environment ie :with small amount of data.
Our production environment has millions of rows of data and when I run the report with filter it just hangs.I think this is because it tries to rank all the dates(to find the max date) and thus resulting in a huge performance issue.
Can someone suggest how this performance issue can be overcome?
I work on BO XI3.1 with SAP BW.
Thanks and Regards,
Smitha.Hi,
Using a variable on the BW side is not feasible since we want to use the same BW query for a few other reports as well.
Could you please explain what you mean by 'use LAG function'.How can it be used in this scenario?
Thanks and Regards,
Smitha Mohan. -
Error message 173-36 when using Add mode in SAP Add-on
I have created an ADD ON application that includes file maintenance on some master data type user defined tables (SAPbobsCOM.BoUTBTableType.bott_MasterData). When I try to add a new record to one of my tables, using a form that I created in my add on application, I am receiving the following error message in the red line area on the bottom of the screen, meaning that it is an error coming from SAP B1, and not from my add on:
Invalid code [Network master] [Message 176-36].
Network master is the name of the user defined table that I am trying to add a record into. Now, if I just ignore the message and hit the add button again, the record gets added to the table. But I need to figure out what is causing this error message so that I can get rid of it. I have tried to debug my code, but I cannot find the specific place where the error message is originating from. I only know that it is somewhere between the time I press the add button, and the time the form is reloaded to the screen. I have other user tables and maintenance forms in my application that are adding records without this error. How can I find out what is causing this error message? Thanks,
Nancy Walk
[email protected]Hi Nancy,
Are you using UserDefinedObjects together with your MasterData table?
MasterData and Document tables types are designed to work with UDOs. Then when you create your form you link this form to your UDO and the Add/Update/Find button works automatically.
When you create a MasterData table you have automatically a field called Code and another called Name. This two fields must be shown in your form and filled by the user or calculated in your code before the Add action takes place. Is it your case? It seems like you are trying to insert twice the same code or you don't fill the Code information...
Regards
Trinidad. -
Incorrect posting key when using BAPI to post the document
Dear Gurus,
We are using a document upload program using BAPI_ACC_DOCUMENT_POST. It is for making payments to employees vendors via a mass mode.
Now the payment to then is getting reflected as posting key 21, but we want to use key 25, so that in vendor report the line items for payments gets grouped together.
How can we change this posting key in this BAPI?
Cheers,
BhaveshHi,
This BAPI have the posting keys hardcoded based on account type, debit credit etc. You cannot change that in this BAPI.
However I can find an OSS note 487722 which says some extension about this BAPI structure. You can try that to include the Posting Key Field:-
[https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=487722]
Regards,
Gaurav -
Variable text is blank in emails when using Scheduled Task to email event log notifications
I am trying to use powershell to email notification when a user account gets locked. I am running the script from a server 2008 domain controller.
I have tried multiple scripts and I have the same issue every time. The script works fine when I run it directly from the powershell command line window.
However whenever I try running the exact same scripts from an event-triggered scheduled task, the script runs, however any content that generated from a variable is not added to the email. It is just left blank and ignored.
I have tried adding lots of permissions including domain administrator group membership to the account runs the task from and it doesn't include all the expected text unless I run it from the built-in domain administrator account.
The task runs and the email is sent, but the email is missing all the content generated by variables.
How can this be fixed?
Here is an example script.
$AccountLockOutEvent = Get-EventLog -LogName "Security" -InstanceID 4740 -Newest 1
$LockedAccount = $($AccountLockOutEvent.ReplacementStrings[0])
$AccountLockOutEventTime = $AccountLockOutEvent.TimeGenerated
$AccountLockOutEventMessage = $AccountLockOutEvent.Message
$messageParameters = @{
Subject = "Account Locked Out: $LockedAccount"
Body = "Account $LockedAccount was locked out on $AccountLockOutEventTime.`n`nEvent Details:`n`n$AccountLockOutEventMessage"
From = "[email protected]"
To = "[email protected]"
SmtpServer = "exch2010.domain.local"
Send-MailMessage @messageParameters
=================================================
Here is an example of task settings.
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2015-03-25T21:40:28.8095226</Date>
<Author>DOMAIN\administrator</Author>
</RegistrationInfo>
<Triggers>
<EventTrigger>
<Enabled>true</Enabled>
<Subscription><QueryList><Query Id="0" Path="Security"><Select Path="Security">*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and EventID=4740]]</Select></Query></QueryList></Subscription>
</EventTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>DOMAIN\WilliamsD</UserId>
<LogonType>Password</LogonType>
<RunLevel>LeastPrivilege</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>powershell.exe</Command>
<Arguments>-nologo -File "C:\powershell\l2.ps1"</Arguments>
</Exec>
</Actions>
</Task>By variable text I mean everything that it generates by using a variable such as the user's name ($LockedAccount)
and everything else such as $AccountLockOutEventTime and everything else that is generated from
a variable.
Nothing like that appears in the email only hard coded text.
I am not running it remotely. I am logged directly onto the domain controller and I tried giving
the account that is used to run the task more and more permissions including domain administrator group membership with the same result.
When I run the exact same script on the same domain controller locally via the powershell CLI all of the info appears.
This is the info when the email is generated by running the script directly from the powershell CLI:
================================================
================================================
Account BondJ was locked out on 03/26/2015 20:42:18.
Event Details:
A user account was locked out.
Subject:
Security ID: S-1-5-18
Account Name: DC1$
Account Domain:
DOMAIN
Logon ID:
0x3e7
Account That Was Locked Out:
Security ID: S-1-5-21-3440879815-2193117124-1719501250-1154
Account Name: BondJ
Additional Information:
Caller Computer Name: DC1
===================================================
====================================================
Below is the contents of the email when the same script runs via scheduled task trigger using any account I try other than the built-in domain Administrator account.
=======================================================
======================================================
Account was locked out on .
Event Details:
===================================================
Just mostly blank email body with the info above. All the important information text is missing from the email. -
Problem when using BAPI to create return order
Hi All,
I need urgent Information.
I am using BAPI_CUSTOMERRETURN_CREATE and BAPI_CUSTOMERRETURN_CHANGE to create and change quantity of return order. In both cases I am getting the result that quantity value is not getting updated.
are these BAPIs are correct to fulfil my requirement, if yes could you please clarify?
other wise, can I use BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_SALESORDER_CHANGE?
and could you please some details about quantity change in Outbound delivery?
I am using BAPI_OUTB_DELIVERY_CHANGE for thisHi
<u>You need to do exeute a BAPI_TRANSACTION_COMMIT after the succesful execution of both the function modules BAPI_CUSTOMERRETURN_CREATE and BAPI_CUSTOMERRETURN_CHANGE.</u>
<b>I mean, please insert CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' function module in the program, after each function module call</b>.
Hope this will help.
Please reward suitable points.
Regards
- Atul -
Error when using interactive form on SAP Discovery system
Hello,
we are trying to make a customer interactive form on the SAP Discovery system, everything works fine until we try to run a preview with interactive and changeble parameters turned on. By the way there is a SAP provided credential on the system. (system SAP ECC 6.0 sp08)
the following error occurs while calling the ADS;
first error message:
error while logging into credential 'GeneralError: Operation failed.
SecurityHandler.login:-1:
The Digital ID specified is unknown.
Date : 03/23/2007
Time : 16:04:56:997
Message : error while logging into credential 'GeneralError: Operation failed.
SecurityHandler.login:-1:
The Digital ID specified is unknown.
Severity : Error
Category :
Location : com.adobe.document.PDFManipulation
Application :
Thread : SAPEngine_Application_Thread[impl:3]_30
Datasource : 103929350:D:\usr\sap\ERP\DVEBMGS10\j2ee\cluster\server0\log\defaultTrace.trc
Message ID : 0018FEFB4E8F00710000013D0000160000042C5960F15BB3
Source Name : com.adobe.document.PDFManipulation
Argument Objs :
Arguments :
Dsr Component :
Dsr Transaction : dcf0bd50d94f11db8e950018fefb4e8f
Dsr User :
Indent : 0
Level : 0
Message Code :
Message Type : 0
Relatives :
Resource Bundlename :
Session : 0
Source : com.adobe.document.PDFManipulation
ThreadObject : SAPEngine_Application_Thread[impl:3]_30
Transaction :
User : J2EE_GUEST
second eror message:
Date : 03/23/2007
Time : 16:04:57:013
Message : Processing exception during a "UsageRights" operation.
Request start time: Fri Mar 23 16:04:53 CET 2007
com.adobe.ProcessingError: Credential login error while applying usage rights to PDF: C:\WINDOWS\Temp\adobewa_ERP_103929350\DM-8398477217709800775.dir\DM-8673971829680153343.tmp
Specific error information:
$$$/PDF/PDFCredentialLoginFailure2=error while logging into credential '^0'
GeneralError: Operation failed.
SecurityHandler.login:-1:
The Digital ID specified is unknown.
General error information:
IDL:com/adobe/document/pdf/CredentialLoginFailure:1.0
Severity : Error
Category : /System/Server
Location : com.adobe.AdobeDocumentServicesWorker
Application : com.adobe/AdobeDocumentServices
Thread : SAPEngine_Application_Thread[impl:3]_27
Datasource : 103929350:D:\usr\sap\ERP\DVEBMGS10\j2ee\cluster\server0\log\defaultTrace.trc
Message ID : 0018FEFB4E8F0067000001290000160000042C5960F1B348
Source Name : com.adobe.AdobeDocumentServicesWorker
Argument Objs :
Arguments :
Dsr Component : IWDFVM2160.wdf_ERP_103929350
Dsr Transaction : d5fe2cd2d94f11db90b20018fefb4e8f
Dsr User : ADSUSER
Indent : 0
Level : 0
Message Code :
Message Type : 0
Relatives : /System/Server
Resource Bundlename :
Session : 11645
Source : com.adobe.AdobeDocumentServicesWorker
ThreadObject : SAPEngine_Application_Thread[impl:3]_27
Transaction : SAP J2EE Engine JTA Transaction : [631ffffffd66002b7d]
User : ADSUSER
third error message:
Date : 03/23/2007
Time : 16:04:57:013
Message : Client: 200 SystemId: ERP AppName: SAFP
Processing exception during a "UsageRights" operation.
Request start time: Fri Mar 23 16:04:53 CET 2007
com.adobe.ProcessingError: Credential login error while applying usage rights to PDF: C:\WINDOWS\Temp\adobewa_ERP_103929350\DM-8398477217709800775.dir\DM-8673971829680153343.tmp
Specific error information:
$$$/PDF/PDFCredentialLoginFailure2=error while logging into credential '^0'
GeneralError: Operation failed.
SecurityHandler.login:-1:
The Digital ID specified is unknown.
General error information:
IDL:com/adobe/document/pdf/CredentialLoginFailure:1.0
at com.adobe.ads.request.UsageRights.execute(Unknown Source)
at com.adobe.BaseADSRequest.doWork(Unknown Source)
at com.adobe.AdobeDocumentServicesWorker.execute(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
at SoapServlet.doPost(SoapServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.adobe.document.pdf.CredentialLoginFailure: IDL:com/adobe/document/pdf/CredentialLoginFailure:1.0
at com.adobe.document.pdf.CredentialLoginFailureHelper.read(CredentialLoginFailureHelper.java:67)
at com.adobe.document.pdf._PDFDocumentStub.setUsageRights(_PDFDocumentStub.java:284)
at com.adobe.EJB_PDFAgent.setUsageRights(Unknown Source)
... 31 more
Severity : Fatal
Category :
Location : com.adobe.AdobeDocumentServices
Application : com.adobe/AdobeDocumentServices
Thread : SAPEngine_Application_Thread[impl:3]_27
Datasource : 103929350:D:\usr\sap\ERP\DVEBMGS10\j2ee\cluster\server0\log\defaultTrace.trc
Message ID : 0018FEFB4E8F00670000012A0000160000042C5960F1B5C1
Source Name : com.adobe.AdobeDocumentServices
Argument Objs :
Arguments :
Dsr Component : IWDFVM2160.wdf_ERP_103929350
Dsr Transaction : d5fe2cd2d94f11db90b20018fefb4e8f
Dsr User : ADSUSER
Indent : 0
Level : 0
Message Code :
Message Type : 0
Relatives :
Resource Bundlename :
Session : 11645
Source : com.adobe.AdobeDocumentServices
ThreadObject : SAPEngine_Application_Thread[impl:3]_27
Transaction : SAP J2EE Engine JTA Transaction : [631ffffffd66002b7d]
User : ADSUSER
Hopefully these messages will ring a bell and some of you have a solution for this problem.
Many thanx in advance
Jasper BrugmanDear friend,
Check the Below link
https://www.sdn.sap.com/irj/sdn/adobe?rid=/webcontent/uuid/24b9e126-0b01-0010-e098-f46384fad9f3 -
Hi,
I would like to modify the toolarea of our SAP Enterprise Portal. Basically, I just want to move the tools to the right hand side.
<b>Problem Description</b>
According to several threads I found on sdn
- How to modify the header
- copy and rename par-file?
it should be fairly simple to modify the tool area.
- download com.sap.portal.navigation.toolarea.par from portal server
- import the downloaded par file into your NetWeaver Developer Studio
- Change the ToolAreaiView.jsp in project folder dist/PORTAL-INF/jsp
- Save changes
- Deploy project to the portal server (>File>Export>Par File><Name of your project>>Next>...)
- Remove the standard Tool Area iView from your Framework page
- Create a new iView from your uploaded par file (chose default component)
- Add new created iView to your Framework page
Done, you should see your customized tool area. Unfortunately I encounter a Portal Runtime Exception (Page could not create the iView). I did exactly as described above.
- I downloaded the com.sap.portal.navigation.toolarea.par.bak file from >System Administration>Support>Portal Runtime>Browse Deployment>ROOT>WEB-INF/deployment/temp.
- Extracted the com.sap.portal.navigation.toolarea.par after changing the downloaded files file extension to zip
- Imported the extracted par file into Netweaver Developer Studio under a new project name
- Found the ToolAreaiView.jsp in project folder dist/PORTAL-INF/jsp
- Did NO changes
- Exported the project into a par file and deployed the par file to the portal successfully.
- Removed the old Tool Area iView from the Framework page
- Created a new Tool Area iView from my uploaded par file (default component)
- Added the new created iView to the Framework page.
- I logged on again and instead of the Tool Area I see an error message
<i>Portal Runtime Error
An exception occurred while processing a request for :
iView : pcd:portal_content/sdm_Germany/de.sdm.kellermann.folders.home/de.sdm.kellermann.folders.coreobjects/default/frameworkPages/de.sdm.kellermann.coreobjects.frameworkpage/de.sdm.kellermann.iviews.toolarea
Component Name : null
Page could not create the iView.
See the details for the exception ID in the log file</i>
<b>Background information</b>
J2EE Engine: 6.40 PatchLevel 89291.313
Portal: 6.0.11.3.0
Browser: Microsoft Internet Explorer 6 SP2
NWDS: 2.0.11
Any ideas what I did wrong? I appreaciate any kind of help.
Best regards,
MartinHi Yoav,
thank you for your swift response. You were right. I do not know why but after I imported the downloaded par file into NetWeaver Developer Studio, the new created project did not contain the jar files, which come with the par file. I added the jar files manually to the project, put them into the project's build path and instructed the NWDS to put them into the par file which I deployed to the portal server.
Afterwards I completed the routine described in my first post and everything worked out. Thanks a lot for that hint.
By the way do you know how to instruct NWDS to include the jar files automatically during an import?
Best regards,
Martin
Maybe you are looking for
-
Add an e-mail adress to send from - not a new e-mail acount.
Hi! How do I add an e-mail adress to send from in Mail? I do not want to add a new acount, just an e-mail adress that is shown to the reciver that the e-mail was sent from a specific adress. You can choose in the menu of a new e-mail which adress you
-
Adobe document services communication problem
Hello SDN a challenge: we have some problems with the Adobe Document Services. we have installed acording to the installationguide and checked this several times. However when we try to run the program FP_PDF_TEST_00 (which is a SAP-provided test pro
-
Convert Screen(spool) to PDF file sending mail with attach file
Hi : I'd like convert spool list to pdf and sending file... so, I read thread about spool convert to PDF before, and know how to convert Spool to PDF file and send mail with attach file. but I have a problem. my solution as: step 1. Call function: "C
-
Separating images within a photo
I have many birding photos with several birds in one image, such as 3 terns flying. I want to be able to move one bird closer to another bird. Is that possible?
-
I need to make an appointment at Highpoint Shopping Centre
I have 2 phones iphone 4 and iphone 5S. I don't want to use my iphone4 anymore and I want to sell it. I have a buyer to buy my iphone4 but still link with my iphone5S. My question is how can you disconnect or delete this link on my iphone4,I want a