Create lov using open api
i want to create a assistant of lov using open api(code C).
can anyone give me the steps and procedures for do this .
This really needs to go to one of the Developer (FOrms/Reports) forums, but any interface to Forms/Reports/Etc. will need to be compiled and linked as 'C', not 'C++'.
Similar Messages
-
Creating Modules using Open API
Hi,
I am trying to create Form module using Open API.
What I would like to know is :-
1. How to link the source file (c++) against the Open
API library (f60d2f32.lib).
The c++ source file, Does it have to be .c extension ?
2. Compile the files to create an executable.
Anyone got any idea or can point to URL where I can get more info.
Thanks - Appreciate your help.This really needs to go to one of the Developer (FOrms/Reports) forums, but any interface to Forms/Reports/Etc. will need to be compiled and linked as 'C', not 'C++'.
-
font color=red Create/Modify forms and triggers through C++ using OPEN API
<font color=red>
Dear brothers/sisters<font color=darkblue>
<br><br>
Please help us to find the linking problem.
<br>
We have to add PRE-FORM trigger to many FMBies. We have thousants of FMBies. So opening one by one is difficult. For this we are using OPEN API and BORLAND C++. We have coppied all header files from D:\orant\FORMS60\API.
But there is a link error. Here is the snippet.
<br>
<font color=red>
<br>#include <stdio.h>
<br>#include <stdlib.h>
<br>#include <malloc.h>
<br>#include <d2fctx.h> /* Forms API context */
<br>#include <d2ffmd.h> /* Form module header file */
<br>int main (int argc, char *argv[])
<br>{
<br>d2fctxa ctx_attr;
<br>d2fctx *ctx;
<br>d2ffmd *form;
<br>text *form_name;
<br>/* Check arguments */
<br>if ( argc != 2 )
<br>{
<br>fprintf(stderr, "USAGE: %s <filename>\n", argv[0]);
<br>exit(1);
<br>}
<br>/* Create Forms API context */
<br>ctx_attr.mask_d2fctxa = (ub4)0;
<br>if ( d2fctxcr_Create(&ctx, &ctx_attr) != D2FS_SUCCESS )
<br>{
<br>fprintf(stderr, "Error creating Forms API context\n");
<br>exit(1);
<br>}
<br>/* Load the form module into memory */
<br>if ( d2ffmdld_Load(ctx, &form, argv[1], FALSE) != D2FS_SUCCESS )
<br>{
<br>fprintf(stderr, "Failed to load form module: %s\n", argv[1]);
<br>exit(1);
<br>}
<br>/* Get the name of the form module */
<br>if ( d2ffmdg_name(ctx, form, &form_name) != D2FS_SUCCESS )
<br>{
<br>fprintf(stderr, "Error getting the name of the form module\n");
<br>}
<br>else
<br>{
<br>/* Print the name of the form, then free it */
<br>printf ("The name of the form is %s\n", form_name);
<br>free(form_name);
<br>}
<br>/* Destroy the in-memory form */
<br>if ( d2ffmdde_Destroy(ctx, form) != D2FS_SUCCESS )
<br>{
<br>fprintf(stderr, "Error destroying form module\n");
<br>}
<br>/* Close the API and destroy context */
<br>d2fctxde_Destroy(ctx);
<br>return 0;
<br>}
<br>
<font color=darkblue>
<br>
The compilation is success. But there is a link error. Please help us to find the problem.
<br><br>
Here is the error Message.
<br>
<font color=red>
<br>Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
<br>FIRST.CPP:
<br>Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
<br>Error: Unresolved external '_d2fctxcr_Create' referenced from D:\API\FIRST.OBJ
<br>Error: Unresolved external '_d2ffmdld_Load' referenced from D:\API\FIRST.OBJ
<br>Error: Unresolved external '_d2ffmdgt_GetTextProp' referenced from D:\API\FIRST.OBJ
<br>Error: Unresolved external '_d2fctxde_Destroy' referenced from D:\API\FIRST.OBJ
<br><br>
<font color=darkblue size=4>Could you please help us.......<br><font color=red>
Dear brothers/sisters<font color=darkblue>
<br><br>
Please help us to find the linking problem.
<br>
We have to add PRE-FORM trigger to many FMBies. We have thousants of FMBies. So opening one by one is difficult. For this we are using OPEN API and BORLAND C++. We have coppied all header files from D:\orant\FORMS60\API.
But there is a link error. Here is the snippet.
<br>
<font color=red>
<br>#include <stdio.h>
<br>#include <stdlib.h>
<br>#include <malloc.h>
<br>#include <d2fctx.h> /* Forms API context */
<br>#include <d2ffmd.h> /* Form module header file */
<br>int main (int argc, char *argv[])
<br>{
<br>d2fctxa ctx_attr;
<br>d2fctx *ctx;
<br>d2ffmd *form;
<br>text *form_name;
<br>/* Check arguments */
<br>if ( argc != 2 )
<br>{
<br>fprintf(stderr, "USAGE: %s <filename>\n", argv[0]);
<br>exit(1);
<br>}
<br>/* Create Forms API context */
<br>ctx_attr.mask_d2fctxa = (ub4)0;
<br>if ( d2fctxcr_Create(&ctx, &ctx_attr) != D2FS_SUCCESS )
<br>{
<br>fprintf(stderr, "Error creating Forms API context\n");
<br>exit(1);
<br>}
<br>/* Load the form module into memory */
<br>if ( d2ffmdld_Load(ctx, &form, argv[1], FALSE) != D2FS_SUCCESS )
<br>{
<br>fprintf(stderr, "Failed to load form module: %s\n", argv[1]);
<br>exit(1);
<br>}
<br>/* Get the name of the form module */
<br>if ( d2ffmdg_name(ctx, form, &form_name) != D2FS_SUCCESS )
<br>{
<br>fprintf(stderr, "Error getting the name of the form module\n");
<br>}
<br>else
<br>{
<br>/* Print the name of the form, then free it */
<br>printf ("The name of the form is %s\n", form_name);
<br>free(form_name);
<br>}
<br>/* Destroy the in-memory form */
<br>if ( d2ffmdde_Destroy(ctx, form) != D2FS_SUCCESS )
<br>{
<br>fprintf(stderr, "Error destroying form module\n");
<br>}
<br>/* Close the API and destroy context */
<br>d2fctxde_Destroy(ctx);
<br>return 0;
<br>}
<br>
<font color=darkblue>
<br>
The compilation is success. But there is a link error. Please help us to find the problem.
<br><br>
Here is the error Message.
<br>
<font color=red>
<br>Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
<br>FIRST.CPP:
<br>Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
<br>Error: Unresolved external '_d2fctxcr_Create' referenced from D:\API\FIRST.OBJ
<br>Error: Unresolved external '_d2ffmdld_Load' referenced from D:\API\FIRST.OBJ
<br>Error: Unresolved external '_d2ffmdgt_GetTextProp' referenced from D:\API\FIRST.OBJ
<br>Error: Unresolved external '_d2fctxde_Destroy' referenced from D:\API\FIRST.OBJ
<br><br>
<font color=darkblue size=4>Could you please help us.......<br> -
Hi
While trying to Create Projects using the API, I'm getting two types of errors -
The first is : 'API failed in one stage 1 Customer Name is a mandatory Quick Entry field. Value must be passed'
The second is : '
'API failed in one stage 1 Project: '<Project_Number>'
The class category is invalid.'
Both the messages are produced by our custom program. .. however I am not able to understand why the underlying errors occur.
The first error ( Customer Name is a mandatory quick entry field), is caused by Projects that are to be created from Project templates where it is configured with Quick Entry Customer Name required. We are passing Customer Site number ( Party Bill to site number and Party Ship to side number). The site numbers being passed are also set as 'Primary'. Yet they are failing.
For the second Error ( The Class Category is invalid), I rechecked multiple times, the Class categories for the Projects I am trying to create, with the Config in R12 and they are fine. Can't understand the reason for these two issues. Has anyone encountered such an issue ? If so how was it resolved?
Regards
VivekHI All
I resolved both the issues. In case there are others facing similar issues, following was the cause and resolution of my errors
1. Error 1: Customer Name is a Mandatory Quick Entry field. Value must be passed.
The cause was that the data loaded into our custom staging table was not in the right fields. This was because the data file values and the CTL were not in sync.
Resolution:
Corrected the data file to be in Sync with the structure defined in the CTL and this loaded it successfully
2. Error 2: The class category is invalid.
The cause of this error was that in the Projects Template (used to create the project from), the Quick Entry setup had a Class Category set as required and I was not passing a value ( a class code value) for that Class Category.
Hope this helps somebody else
Cheers
Turnbill -
when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
Transaction type is invalid with current transaction date
invalid transaction type
either an inventory item description must be provided
Kindly help me hereHi Team,
I tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
Either an inventory item or description must be provided.
Please help me on this. -
Creating PDF using ITEXT API's - error
Hi,
In my WebDynpro Application I want to generate a PDF (using ITEXT API's) out of the data retrieved from back end system .
I used this source code.
Document document = new Document(PageSize.A4);
document.open();
PdfPTable table = new PdfPTable(1);
PdfPCell cell;
cell = new PdfPCell(new Paragraph("ONE"));
table.addCell(cell);
cell = new PdfPCell(new Paragraph("TWO"));
table.addCell(cell);
document.add(table);
document.close();
byte[] b = new byte[100 * 1024];
b = document.toString().getBytes("UTF-8");
IWDCachedWebResource pdfRes = WDWebResource.getPublicCachedWebResource(b, WDWebResourceType.PDF, WDScopeType.CLIENTSESSION_SCOPE, wdThis.wdGetAPI().getComponent().getDeployableObjectPart(),"FileNameHelloText"));
I have used Window Manager to create a external window with the URL from pdfRes.getUrl() method.
After execution i get a pop up window with out PDF document.
Please let me know your thoughts & solutions to the above mentioned problem.
Thanks
SenthilHello Folks,
Use the following snippet of the code to generate PDF using ITEXT API.
Document document = new Document(PageSize.A4);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
PdfWriter.getInstance(document, bos);
document.open();
PdfPTable table = new PdfPTable(1);
PdfPCell cell;
cell = new PdfPCell(new Paragraph("ONE"));
table.addCell(cell);
cell = new PdfPCell(new Paragraph("TWO"));
table.addCell(cell);
document.add(table);
document.close();
byte [] byteContent = bos.toByteArray();
IWDCachedWebResource cachedResource =
WDWebResource.getPublicCachedWebResource(
byteContent,
WDWebResourceType.PDF,
WDScopeType.CLIENTSESSION_SCOPE,
wdThis
.wdGetAPI()
.getComponent()
.getDeployableObjectPart(),
"TestPDF");
IWDWindow externalWindow =
wdComponentAPI
.getWindowManager()
.createExternalWindow(cachedResource.getURL(), "PDF Window",true);
externalWindow.open();
Thanks and Regards,
Gopi -
Hi
can anyone help me in creatig a form and assigning it to a resource object.
please tell what all should i mention in the map which is to be passed to createForm() method.
Thank youHi all
what attributes i need to to map to create a from using OIM API
createForm Method?
I have tried with this but did not work:The form is getting created , i.e I am seeing an entry in DB.
At the same time I am aslo getting an exception which is whown below:
formMap.put("Structure Utility.Table Name", "SAM");
formMap.put("Structure Utility.Description", "TESTING API USAGE FOR FORM");
The Exceptions I get are :
Thor.API.Exceptions.tcInvalidNameException
at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.createForm(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.createForm(Unknown Source)
at com.thortech.xl.ejb.beans.tcFormDefinitionOperationsSession.createForm(Unknown Source)
09:05:13,772 ERROR [DATABASE] Class/Method: tcDataBase/writeStatement encounter
some problems: ORA-02089: COMMIT is not allowed in a subordinate session
java.sql.SQLException: ORA-02089: COMMIT is not allowed in a subordinate session
09:05:13,819 ERROR [ADAPTERS] Event: Adding Columns to SDC. has encountered an error.
09:05:13,819 ERROR [SERVER] Class/Method: tcDataObj/runEvent Error :EVT Fatal Rejection Occured
09:05:13,819 ERROR [APIS] Class/Method: tcFormDefinitionOperationsBean/createForm encounter some problems: maoErrors:Error Adding Column.
How can i resolve this?
When and where can I view the form that I have created?
Thank you -
Creating JOB using JOB API - Future Dated value for a segment
Hi
Trying to create a JOB using "hr_job_api.create_job" as of today (17-Jul-2009), with one of the segment value has the 'Date_from' as 26-Jul-2009.
API is throwing the below error
ORA-20001: FLEX-VALUE IS EXPIRED:
ORA-06512: at "APPS.HR_JOB_API", line 878
Have anyone come across this error before ?
Thanks
ArunAs per the error it saying there is a problem in the DFF attached with the job, or even job kff itself, paste the whole code and whole error
-
Error while creating IViews using collaboration API
Hi
I have created one Dynpage portal component, in that i would like to utilize collaboration API.
I am keep on getting errors like "<b>The compilation unit directly references the missing type ...."</b>"
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sap.ip.collaboration.room.api.IRooms;
import com.sapportals.portal.prt.runtime.PortalRuntime;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.*;
public class Sample extends PageProcessorComponent {
public DynPage getPage() {
return new SampleDynPage();
public static class SampleDynPage extends DynPage
IRooms roomsAPI = (IRooms)PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
Initialization code executed once per user.
I have included the following jar files:
bc.rf.framework_api.jar
coll.shared.extension_api.jar
coll.shared.roomobject_api.jar
coll.shared.types_api.jar
com.sap.security.api.ep5.jar
and also i have included com.sap.netweaver.coll.shared in portal.xml as servicesreference
Experts can you please help in the above problem
I am sure u will get reward points.
Thanks in AdvanceHI,
You have to add the following jars apart from the jars you have mentioned
1. kmc.util.core_api.jar
2. umapi.jar
To find jar files
==================
Download and install the JAR Finder. how to is mentioned in this <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2951">Weblog</a>. see what jar is required by copying the com.sap.ip.BaseException from the error "compilation unit references................." and put the "BaseException" in the jar finder and search. from the given options select the correct jar "com.sap.ip.BaseException" right click and add to the project. You can add all the jars required by this method.
Portalapp.xml
==============
<application-config>
<property name="SharingReference" value="com.sap.portal.htmlb"/>
<property name="ServicesReference" value="com.sap.netweaver.coll.shared"/>
</application-config>
HI,
use the BaseException etc the errors you get in NWDS to search for the jar. paste the BaseException and search in jarfinder.
Message was edited by: Kirupanand Venkatapathi
Message was edited by: Kirupanand Venkatapathi -
Can we create LOV using free hand sql with out hardcoding
Hi gurus,
Dear All,
For some of the reporst we don't have universe, so we use to get the report with the help of free hand sql,
but here I have to hardcode the list of values by using @prompt, but instead of hardcoding is there any ways to get the list of vaues by using @prompt, if then can any one help me out.Yes and no.
When we use a LOV in a universe, the SQL is generated from the object definition. With Free Hand SQL (FHS) there is no universe. However...
If you create a very simple universe to host your LOV, and then reuse the same prompt text in your FHS then you can fake the LOV. This is not a great solution, but to be honest, FHS is never really a solution that I would consider. You might consider using Crystal to replace Deski in these cases. -
Help in creating application using BlackBerry APIs
Hi All,
I want to create an application using the BlackBerry APIs. Can anyone please give any pointers to any reference material or tutorials?
Thanks in advancehi Bindia,
First off all u need to install BlackBerry_JDE_4.2.1.exe which is developement environment for blackberry Application developement.
in which u will get javadoc api reference simulator and JDE.
Hope it helps -
Creating Quote using Quoting APIs
Hi,
I am using the following method, trying to create a Quote from OA.
oracle.apps.qot.core.Quote.create(ControlRecord controlRecord) returns void
Since the method return void, I could not fetch the Quote details, of the created quote, like quote_header_id, etc.. also am not sure weather the Quote has been created or not.
Plz help me with this, also what values shoud be assigned to ControlRecord object for creating a valid Quote.
Thanks,
AdarshHi,
Below is the description obtained in the quoting implementation guide.
create(ControlRecord) Creates a quote with the attributes populated in this quote
object. Quote header ID, last update date, and quote number
will be populated in the quote header after the quote is
created. This API should be called within a transaction block.
public void
create(oracle.apps.aso.quote.ControlRecord
controlRec)throws FrameworkException, SQLExce
ption, QuoteException
As per this description it should populate Quote header ID, last update date, and quote number . So i am trying to fetch the quote header id and it is showing null.
Is there anything which i am missing in the code?
Regards,
Mithun -
EMail Notification for the Newly Created users using UME API
Hi ,
In my application ,the user creation is handled by custom Admin module which uses the UME APIs. Upon creating the user, we need to send a notification mail to the user's email id which he provided in the Add new user form.
<b>Is there any direct APIs available to notify the user via email. I hope the Standard user creatin module in User Administration also uses the same UME APIs.</b>
Please let me know the possibilities.
Appreciate your help.
<b><b>Sample Code:</b>
<b>IUserFactory mUserFact = UMFactory.getUserFactory();
IUserMaint mUserMaint = mUserMaint = mUserFact.newUser(aUser.getLogin());
IUserAccountFactory mAccountFact =UMFactory.getUserAccountFactory();
IUserAccount portalAccount = null;
mUserMaint.setDisplayName(aUser.getLogin());
mUserMaint.setXXX();
mUserMaint.save();
mUserMaint.commit();
portalAccount = mAccountFact.newUserAccount(aUser.getLogin(), mUserMaint.getUniqueID());
mAccount.setPassword("XXXXXX");
aUser.setPassword(mPassword);
mAccount.save();
mAccount.commit();</b></b>
Thanks and Regards,
SekarHi,
I have used the Java Mail API directly send the notification upon new user creation.
Thanks and Regards,
Sekar -
How to start approval procedure for a Document/Draft using DI API
Hi!
My code imports purchase orders from one non-B1 system to SAP B1 using DI API. The problem is that in B1 system there is an approval process configured and I need the newly created purchase order to enter this approval process.
Currently this is not done because approval procedure isn't triggered when creating documents using DI API.
I had an idea to create a draft of PO instead of the PO and then push this draft into approval process somehow. But I can't find a way how to tell DI API to start approval procedure for my draft/document.
Thank you for your replies!
JanUnfortunately there is no way to trigger the approval process for any object added through the DI API.
Your workaround of adding the documents as drafts is as close as you can really come but maybe you could extend it slightly - it will involve a UI API addon:
Make the addon mandatory, and add a UDF to the user table, for example "U_Approver" and a UDF to PO document, like "U_Approval"
- Set this U_Approval to yes when adding through DI and add as draft
- When user opens draft document in the application, check are they an approver (U_Approver = "Y")
- If they are not, and try to view/add a draft which is flagged as needing approval, block them from adding.
You could further expand your DI project to send a mail to the approver whenever a draft PO is added. -
How to open new window webi report using open doc?
Hi All,
i have created URL using open doc in Bi 4.0 .please find the below my code.
http://fcvws975/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=AeX5DoctKBhGv1AiV2oibxU&sIDType=CUID&sType=BI
workspace&sRefresh=Y" title="" target="_blank" nav="doc"></a>
When i click on this hyper link it is opening in the same page not in new window but i want to see report in new separate window.
Can any one please help .
Thank you,
Regards,
VenkatHi,
In BI4.1 SP03, there are couple openDocument fixes related to workspace.
ADAPT01700442
Description:
When using an Opendocument URL to open a BI workspace, a timeout error occurs resulting in an HTTP 500 error
message that reads: "Your session has expired".
New Behavior:
This problem is resolved.
ADAPT01711393
Description:
In Internet Explorer 8, if you attempt to view an Analysis workspace embedded in the SAP NetWeaver Portal using
OpenDocument, the workspace will fail to load.
New Behavior:
This problem is resolved.
What version of BI4.0 do you have?
If the fixes above are related to your openDocument workspace issue, I'd suggest you to test it on a BI4.1 SP03 sandbox.
Hope this helps,
Jin-Chong
Maybe you are looking for
-
So I bought the song 'Gold' by Britt Nicole the other day because I heard it on the radio and liked it. It downloaded normally except I accidentally clicked the little 'stop' button that displays while it is still downloading to my Iphone. It would n
-
I am trying to pair my cell phone and tablet using Messages App, but only MMS messages will come through on my tablet. I've tried pairing and unpaired, reinstalling app on my tablet, and can't figure it out. Any idea how to fix this? Thanks
-
Why is my Iphone's facetime volume so quiet now?
Hey! I have a North American (Canadian) iPhone 4 running IOS 4.3.2. Prior to this I had never updated the OS from 4.1.1. I have never jailbroken/unlocked my phone or attempted to hack it in anyway. It has always been in a case and has never experi
-
MAC PRO PROBLEM TO PRINT PDF BY Xerox ColorQube 9203 WITH ACCOUNTING
We have Xerox ColorQube 9203 with Standard Accounting Enabled and we managed to connect to this printer. But the problem is we can print from email but we could not be able to print from Adobe Reader or any PDF. Any help
-
Application startup at the center of the screen
Is there any method in the Java API that will startup a window at the center of the screen? Is not, how do I get the desktop resolutions? Thanks in advance.