Add-On connection for Journal Entry - Failed to Connect to SBO Common
We have a customer (SAPBO 2005A SP01 PL29) with some specific requirements that required an add-on running in the background to monitor the addition of Goods Receipt PO's to the system. When the GRPO is successfully added, the Add-On will (behind the scenes) create an appropriate Journal Entry through the SAP DI. One of the issues that we encountered during the development of this functionality was that when it was tested by users, they weren't authorized to access the Financials module or the Journal Entry screen. What we ended up doing was creating a secondary connection (vCompany) in the DL pulling the information from the encrypted user information from SAP the Add-On used to connect, but utilizing a management level user ID and password. Once that connection has been made, the Journal Entry is added through the DI and that secondary connection is disconnected.
The problem that we're encountering is this. When the users are logged into SAP Client with an regular user, and the GRPO adds, the secondary connection fails and returns a message of "Failed to Connect to SBO-Common". However, if the user is logged into SAP as an adminitrative level user and the GRPO is added, the secondary connection is successful and the Journal Entry is created. The secondary connection is strictly used for the JE. Here's the code (VS.Net 2005) for the secondary connection:
vCompany = New SAPbobsCOM.Company
vCompany.UseTrusted = True
vCompany.language = SAPbobsCOM.BoSuppLangs.ln_English
vCompany.CompanyDB = oCompany.CompanyDB
vCompany.UserName = "XXXXX"
vCompany.Password = "YYYYY"
vCompany.Server = oCompany.Server
vCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005
lRetConnect = vCompany.Connect()
Where "XXXXX" would be the appropriate management level SAP User Name and "YYYYY" would be that users password.
Has anyone else had this kind of issue where you needed a secondary connection with management level access behind the scenes to accomplish something in SAP and had problems getting it to connect? Any thoughts or ideas would be greatly appreciated.
Hi Dennis,
what you can try is to make a untrusted connection
oCompany.UseTrusted = False
and set the DBUser and Pwd
oCompany.DbUserName = "sa"
oCompany.DbPassword = "insertpwd"
lg David
Similar Messages
-
Series not defined for journal entry
Hello Sir
I have defined two series namely "SCPL" and "New1"
Start No Last No
SCPL 10001 3000
New1 3001 30000
Now i have made "SCPL" series as default for A/R Invoices and "New1" series as default for rest of the documents like A/R Credit memo,Journal Entry etc...
Now when I try to add an A/R Invoice , it gives me error message "Series not defined for journal entry"..?? But i have defined New1 series as default for Journal EntryHi,
In the series defined for journal entry,set document series as default for which default journal entries will be posted automatically.
Ex.For delivey,return,invoice journal entry will be generated automatically,so if you a series like JESYS08 indicating system automated journal entry.This series should be set as default.
If you have further issue let me know. -
Connection for Source DataConnection failed because the enviroment is not trusted
Keep getting the error "Connection for Source DataConnection failed because the enviroment is not trusted. I have searched the internet and have not found a solution to this problem. Anyone know a way around this? Trying to connect a live cycle form and an Access database....I am at the end of my rope here...
TIA@There are browser settings that control whether you allow getting data from other sources (than where the current page is loaded). In preview you are loading the PDF in an browser ActiveX control so that is why this is coming up. You may also have to add the other server name to your trusted site list in the browser.
-
Creating a file to be used by report ROIUH_LOAD_JEINTF for journal entry
Hello everyone,
My doubt is related to the PRA module -
I have to create a file to be used by program ROiUH_LOAD_JEINTF for journal entry creation. There are other programs also creating a similar file to what I am expected to create.
When I observe the existing programs, they have not used OPEN DATASET statement, instead directly used the TRANSFER dataset and then CLOSE DATASET.
What that does is it creates a file on the app server in a different format with only 1 line even if there may be like 10 lines of journal entry. The file mainly contains # which seems like some internal coding by the system.
When I tried using the OPEN DATASET statement, it wrote all the lines to the app server that were there in my internal table.
However, when I do not use the OPEN DATASET statement, it creates a file with just one line and maily # instead of the actual data from internal table.
Can any one explain what difference does it make to the system when we do not use the OPEN DATASET statement.
You help would be highly appreciated.
Thanks and Regards,
Shipra.Hello Satish,
Thank you for your response.
I think I was not clear enough about my doubt. I do not have any confusion about what OPEN DATASET would do.
In my case, there is a file being written to the app server without using an OPEN DATASET for OUTPUT statement. The Z program directly calls a TRANSFER statement.
The file that is created on the app server looks like:
7042008-11-01 000200100840 ######RD##################203 #### #####10012888 #####RI01 MC3
This file is used by the program ROIUH_LOAD_JEINTF. There are several lines in the internal table for Journal Entry creation but only 1 line shows in the file. However, when you debug the program ROIUH_LOAD_JEINTF with the above filename, you would see that it takes up all the JE lines that were passed from the previous program (the Z program) which created this file.
However, when I changed the Z program to have an OPEN DATASET statement, it had all the lines displayed in the file, the file was very readable.
I just wanted to know how does the system write to app server when no OPEN DATASET statement is written in the program.
Hope I am clear this time. Thanks again.
Regards,
Shipra. -
DTW - Series not deifned for Journal Entry
2007B
Importing AP invoices thru DTW.
using Document Series
The document series assigned for AP Invoice is "APINV" and the same document series is selected for JE also.
The code for APINV is "7"
The field in DTW to define the document series is "Series" and the series code is given (eg : "7")
DTW gives error "series not defined for Journal Entry Application defined or object defined.."
where as when tried to create an AP Invoice manually, it was successful.
what could be the issue?
vijayI managed to find the issue.
IN the DTW template,
the field, "handwritten' was tYES, which I changed to tNO as we follow document series and numbering series.
nothing is entered in the 'docnum' field.
now I get the error " to generate this document, first define document series'
vijay -
Approval Process For Journal Entries
We are increasingly being asked to configure approval process for Journal Entries, especially from our larger customers. A move in the right direction was the addition of Stock. However no such addition was mode for journals. Has anyone developed such a solution or can Development give some indication as to where or if this requirement is on the consideration list.
Responses would be appreciated.
EarlNo replies to closed.
-
Connection for srouce dataconnection failed because the environment is not trusted
HI all I keep gettng this message when I
preview the page
i get this message that sayd he the connection for the source dataconnection failed because the environment is not trusted
can anyone help??Here is a blog entry that discusses how to deal with getting specific records etc....
http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/
Note at the bottom of the blog he mentions new security rules in version 8. Make sure you follow that link and look at the section on cloning ....you will need to do that in your script.
Once you are on that blog you can search for your "Environment not Trusted" error. There were a couple of hits in the Q/A sections at the bottom of the blog. There is no definitive answer but there was a couple of suggestion there.
Also if you go a google serach on "Environment not Trusted" there are numerous hits on different discussion forums. You may get your answer from one of those. If you find the answer can you post it back here please?
paul -
Manual Document Number for Journal Entry
I tried to upload invoices via DTW. I used manual doc. series for those invoices. SAP automatically creates a journal entry for every invoice but with it's auto numbering series. How can I use manual number for journal created by system? Thank's a lot.
Hi,
as far as I know, there is no manual option series like in document e.g. sales order.
you could create new series and it is intended to manual operation of journal entry. By using this way, we can manage and differentiate the journal entry document numbering. Which one is for document accounting transaction journal and memorial journal (manual journal).
Rgds,
(http://tech.groups.yahoo.com/group/SBO_Knowledge_Village/ ) -
Posting a journal Entry failed
Hello All
I created a Journal Entry and edited the Journal Entry. When I tried to post it, I got an error saying
Could not start child program C:\PT8.49\cblbinA\GLPPPOST REMOTEA ....
When I looked at my folder structure I donot have that directory at all. .When I read the documentation it seems Posting process GLPPPOST is a Cobol Process. Does that I mean I need to setup cobol environment too?
Any thoughts?
Thanks
SriPosting process GLPPPOST is a Cobol Process. Does that I mean I need to setup cobol environment too?If you want to run a cobol, you obviously need to configure the cobol env. Starting by the Microfocus install, and compilation. Take a look in the PeopleTools installation guide for more information (OS/database vendor dependant) :
http://download.oracle.com/docs/cd/E05406_01/psft/html/docset.html
Nicolas. -
JCO connection for Meta Data fails
Hi,
I have installed the WebAS Preview version with SP9. I had installed it once and had succesfully configured the JCo connection to my R/3 system. After I re-installed the WebAS after a <i>system format</i>, I have configured the <b>JCo for both model & metadata</b>. Both are configured to connect to the <b>same R/3</b> sytem with the same user/password combination. But the JCo connection for model data pings and test come OK. But the one for <b>metadata fails</b> (ping as well as test).
I have tried creating more JCo connections with different names, but again the model one works, but not the metadata one.
Can anyone figure out why this is happening?
Regards,
Sumith.Hi,
The error that I get when testing the JCo connection is:
<i>com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=ltilsap GROUP=PUBLIC R3NAME=LTI MSSERV=sapmsLTI PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR service 'sapmsLTI' unknown TIME Fri Jan 21 16:37:40 2005 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -3 MODULE ninti.c LINE 494 DETAIL NiPGetServByName2: service 'sapmsLTI' not found SYSTEM CALL getservbyname_r COUNTER 1</i>
and when I ping it gives:
<i>Failed to ping JCo destination 'LTI_WDMETADATA_DEST'.</i>
But the connection for model data works perfectly for the same set of configuration.
Thanks & Regards,
Sumith -
Journal Entrie - Failed to get next member of range member UJJ_JRNID
Hi experts,
I am using the BPC NW 7.5 SP04 version and have created a journal template. When I try to save the journal entry, I get the following error "new journal ID: Failed to get next member of range member (UJJ_JRNID - ). "
I have this error only in production environment. I save and post journal entry in develop environment without error.
Best regards,
Marilia CostaHi Friend,
Application parameters yes marked as YES, and I have change the number range as following
No.__ from number ____to number___current number
1____0000000001_____9999999999__1
But still i am getting error as" UJJ_JRNID - 000002"
My subobject no. is 000002
Please Advice
Thanks in advance
Aryan -
Is there a CI for journal entry?
Looking to see if there is a prebuilt CI for creating journal entries. If not, what would be the best component to create a CI from?
Thanks, I downloaded an older version of it, but at least now I can see my journal.
R -
How to update Ref fields in JDT1 for Journal Entries update
Hi Forum,
I am this situation:
While Creating Journal Entries using DTW:
==================================
I can create Ref1 and Ref2 data at JE Header level using OJDT DTW template.
I can not update Ref1 and Ref2 (different from Ref1 and Ref2 data at header level) at line level using JDT1 template. No error in DTW, all successful, however, the Ref1 and Ref2 data at line level is copied from header level.
While updating using JDT1 DTW Template:
===================================
I thought may be DTW can update since the entries are present. It does not even do that. That is DTW does not update Ref1 and Ref2 data on JDT1 line level even with update DTW. Just to ensure I am using right template etc. I tried to update the due date and it seems to work.
Note: While entering manual Journal Entires directly on SAP B1, I could put different Ref1 and Ref2 at header and line levels.
Thanks for you help.hi
u may use the follwing fields to do it
RecordKey LineNum AccountCode ContraAccount CostingCode Credit Debit DueDate LineMemo ShortName
RecordKey LineNum AccountCode ContraAccount CostingCode Credit Debit DueDate LineMemo ShortName
1 0 3274426 20110430 Basic 520010
1 1 1344031 20110430 Hra 520020
1 2 229251 20110430 Convey 520030
1 3 631301 20110430 Bonus 525020
1 4 2128839 20110430 Spl All 520040
1 5 44003 20110430 CCA/Outlocation 520050
Regards
Manish -
Hello Experts,
Is it possible to apply approval templates for a journal entry??If yes how??Hi Divya..........
Its not possible to have approval procedure for JEs
For that you have to use journal vouchers where in you can save the JEs and get it approve from the authorised person.
Regards,
Rahul -
Approval Procedures for Journal Entry
Hi all,
My client requirement is that they want to have Approval procedures of Journal Entry. As i know we dont have approval procedures for JE so is there any work around for that. Please let me know waiting for your reply.
Thanks & Regards,
Murtuza Ahmed.hi murtaza,
Apply Full Authorization to Journal Vouchers,
Apply No Authorization to Journal entry for non super users.
Journal Vouchers can be approved/posted by Super Users.
Jeyakanthan
Maybe you are looking for
-
Dont trust apple for my credit card info on my iphone5s. So is there any work around? dont want to change the appleID. Cant get the option of None in payment options. Even tried it by selecting my region as US. Tried to sign in from Icloud as well bu
-
Hi...please help me. I just got a Mac Pro yesterday and did not set up a password at apple now it is asking me for one to download flash player plug in. what can i do?
-
Bionic stuck on Motorola Dual Core Screen fix and replacement return
Recently, as the subject suggests, my phone is stuck at the Motorola Dual Core Screen. It will load this screen after hooking up to the computer or charger, and stay there. During this time, it doesn't charge the battery and the battery becomes dra
-
Computer won't recognise ipod.
Or rather, ipod shows up in 'My Computer' as a drive, but not specifically as an ipod. I can charge it through my pc, but that's all I can do. It used to show up once in a while, allowing me to add new songs etc but not anymore. I seem to have tried
-
4s is arriving soon but my 3gs is still stucking on updating
I have been having ios5 update problem for over 24 hours from yesterday, just like plenty guys are having. The restore proccess always stuck at the firmware update after 2/3 of progress and gives me unknown error (1). I tried the restore on 4 compute