Quantcast
Channel: JDELIST.com - JD Edwards ERP Forums
Viewing all 7915 articles
Browse latest View live

C BSFN - How to add a JDEDATE in a database request

$
0
0
Hi,
I would like to add a filter by field the DRQJ from the F3111 (>= 01/01/2017) in a query of a C function.
I can check the correct value in debug , but when I monitorize the select from the database, is getting allways the value 0 for DRQJ field instead of the date.
¿Could somebody help me to find out the issue?
Thanks!

This is the code:

CHAR I3400310_SelectF3111_F4801_F4801T(LPDSD3400310PL lpDS, LPDSB3400310INTERNAL lpdsB3400310Internal)
{
JCHAR cErrorCode = _J('0');
ID idJDBReturn = JDEDB_PASSED;

SELECTSTRUCT dsSelect[5] = { 0 };
ushort uNumSelect = (ushort)6;
SELECTSTRUCT dsSelect[6] = { 0 };
JDEDATE todaysDate = {2017,01,01};

JCHAR szRejectStatus[7][3] = {_J("95"),
_J("91"),
_J("92"),
_J("96"),
_J("97"),
_J("98"),
_J("99")};
/* SORTSTRUCT dsSort[2] = { 0 };*/
int nIndex = 0;



memset((void *)(dsSelect), (int)(_J('\0')), sizeof(dsSelect));

/* First part of select. (Item # && Branch && CoBy == ' ' and Status < 95) */
jdeNIDcpy(dsSelect[nIndex].Item1.szDict, NID_CPIT);
jdeNIDcpy(dsSelect[nIndex].Item1.szTable, NID_F3111);
dsSelect[nIndex].lpValue = &lpDS->mnComponentItemNumber;
dsSelect[nIndex].nValues = 1;
dsSelect[nIndex].nAndOr = JDEDB_ANDOR_AND;
dsSelect[nIndex].nCmp = JDEDB_CMP_EQ;
nIndex++;

jdeNIDcpy(dsSelect[nIndex].Item1.szDict, NID_CMCU);
jdeNIDcpy(dsSelect[nIndex].Item1.szTable, NID_F3111);
dsSelect[nIndex].lpValue = lpDS->szComponentBranch;
dsSelect[nIndex].nValues = 1;
dsSelect[nIndex].nAndOr = JDEDB_ANDOR_AND;
dsSelect[nIndex].nCmp = JDEDB_CMP_EQ;
nIndex++;

jdeNIDcpy(dsSelect[nIndex].Item1.szDict, NID_SRST);
jdeNIDcpy(dsSelect[nIndex].Item1.szTable, NID_F4801);
dsSelect[nIndex].lpValue = (void *) szRejectStatus;
dsSelect[nIndex].nValues = (unsigned short) DIM(szRejectStatus);
dsSelect[nIndex].nAndOr = JDEDB_ANDOR_AND;
dsSelect[nIndex].nCmp = JDEDB_CMP_NI;
nIndex++;


jdeNIDcpy(dsSelect[nIndex].Item1.szDict, NID_COBY);
jdeNIDcpy(dsSelect[nIndex].Item1.szTable, NID_F3111);
dsSelect[nIndex].lpValue = _J(" ");
dsSelect[nIndex].nValues = 1;
dsSelect[nIndex].nAndOr = JDEDB_ANDOR_AND;
dsSelect[nIndex].nCmp = JDEDB_CMP_EQ;
nIndex++;

/***********************************************/
/*FIELD ADDED*/

jdeNIDcpy(dsSelect[nIndex].Item1.szDict, NID_DRQJ);
jdeNIDcpy(dsSelect[nIndex].Item1.szTable, NID_F3111);
dsSelect[nIndex].lpValue = (void *) &todaysDate;
dsSelect[nIndex].nValues = 1;
dsSelect[nIndex].nAndOr = JDEDB_ANDOR_AND;
dsSelect[nIndex].nCmp = JDEDB_CMP_GE;
nIndex++;
/***********************************************/

if(!IsJDEDATENull(&lpDS->jdEffectiveThruDate))
{
jdeNIDcpy(dsSelect[nIndex].Item1.szDict, NID_DRQJ);
jdeNIDcpy(dsSelect[nIndex].Item1.szTable, NID_F4801);
dsSelect[nIndex].lpValue = (void *)&lpDS->jdEffectiveThruDate;
dsSelect[nIndex].nValues = (ushort)1;
dsSelect[nIndex].nAndOr = JDEDB_ANDOR_AND;
dsSelect[nIndex].nCmp = JDEDB_CMP_LE;


}
else
{
uNumSelect--;
}

JDB_SetSelection((HREQUEST) lpdsB3400310Internal->ds3400310CachePointers.hRequestF3111_2,
(LPSELECT)dsSelect,
(ushort)uNumSelect,
JDEDB_SET_REPLACE);

if(idJDBReturn == JDEDB_PASSED)
{


idJDBReturn = JDB_SelectKeyed((HREQUEST) lpdsB3400310Internal->ds3400310CachePointers.hRequestF3111_2,
(ID)(0), NULL, 0);

}
if(idJDBReturn != JDEDB_PASSED)
{
cErrorCode = _J('1');
}

return(cErrorCode);
}

R470412 - EDI Inbound Invoice/Match

$
0
0
We have been processing invoices and matching for some time using R470412. Usually when successfully matched we get a record on the supplier ledger (P0411), Pay status "A" - Approved for payment.

We are currently testing a new supplier, but for this supplier we are getting 2 records on the ledger, "Approved for Payment and "Paid in full".

I cannot determine why this is happening for this one supplier, anyone got any ideas?

Thanks in advance

User wants an APPL to confirm when a UBE is complete

$
0
0
Hi folks,

I have an issue in which an APPL will call a UBE but we are required to tell the user the UBE is finished and they can move on to the next step. (yes they wait :))

UBE is R31410, APPL is custom

Now I know I can't call a UBE synchronously from an APPL anymore. So how do I get around that?
If I write a NER to call a UBE the server gets upset as it's spawning a synchronous thread.....

But if I write a C++ BSFN and use the launch API BSFN with the synch flag = TRUE, whats' the difference between that and a direct call in a NER

https://support.oracle.com/epmos/fac...=f4a7d7pbs_165

Can I cheat by calling a UBE asynch and then in the UBE calling a UBE synchronously (that's not going to work either, right)
Or is this hinting that it will work?
Option 2

https://support.oracle.com/epmos/fac...80603462#CAUSE

Thanks

John

Data Refresh Of An Environment

$
0
0
What is the current consensus on best practice methodology for doing this? Is it by using the JDE UBE? I want to make sure that only data is copied between the tables and that the tables themselves are not replaced. My CNC team is currently doing a DB2 library restore of the tables from PROD to PY/DV, which sometimes replaces tables that have been modified in DV or removes tables that don't exist in the PROD environment. The justification for not using the UBE is that it takes longer.

Call C# DLL from a JDE C BSFN

$
0
0
Hello,

We have a need to manipulate the Active Directory Network properties and therefore, i wrote a C# DLL to do the same. I am calling the DLL from a C BSFN in the standard way (LoadLib, GetProcAddress, etc.). However, when i call the actual function and pass strings, the C function crashes. If I pass integers to the C# DLL, no issues. It is only for strings that i have the issue. Any thoughts? If somebody can post a small example of what could be done here, it is very much appreciated.

Kind Regards,
Venkat

Report Name override for Affiliate companies

$
0
0
Is there any way to override company name on reports without customizing the reports.
For example, our default company name is AQW Company Ltd. One of our affiliate companies need their name ZXC Services & Maintenance Ltd. In transaction reports like (Journal Entry Print, Invoice Journal Print) we need to print ZXC Services & Maintenance Ltd. instead of AQW Company Ltd.

Any way ?

Different output type, do we need a different version?

$
0
0
I have a UBE and once it's finished running, it will call itself one time. The first time it runs, it will output a PDF. When it calls itself again, it will output an Excel (BI Published). Right now i have 2 versions, Manual (PDF) and the other is Automatic (BIP - This one has an RD associated with it). So once everything is done, I'll have two files, PDF and Excel


1) Is this the way to do it? I have to have two versions right? The data selection and processing options need to be the same for both versions so that leads to the 2nd question

2) Also is there a way to pass data selection and processing options from the 1st version into the 2nd one or I have to manually change the 2 versions to be the same every time I run it?


Thanks

JDE 9.2

Associated Description

$
0
0
Hi Can anyone explain me how does Associate Description work, where will it retrieve the description from, how is it understood by OW if it is from Address book or Item master of if it is a UDC description, that is to be fetched.

Infinite loop in report interconnect

$
0
0
I have a UBE and it calls itself Synchronous. In the report interconnect data structure, I have a variable called cCallSelf_EV01 and when it calls itself, I set it to N. In the After Last Object Printed of the main driver section, I put in the code saying if this RI variable cCallSelf_EV01 is not equal to "N" then call itself.



So the first time it runs, the cCallSelf_EV01 should be null so it will call itself. But it should stop the 2nd time since I set this variable to "N"



I tried using Processing Option but still the same result. It's stuck in an infinite loop and it keeps calling itself.


Do you know why?



Thanks


9.1.3.3

action security

$
0
0
Hi everyone!


My company has just migrate to Eone and I'm trying to understand how it works.


I've read the security administration guide and I understand that through the action security settings it's possible to create a read-only access, (disabling the option to add, delete, revise, inquire, or copy a record) but when I talk to the IT team they tell me that Eone is not prepared for having read-only users and due to these restrictions they have to duplicate the windows, one with the full access to work on and other one only for read access, and besides, everytime there is a patch or update, they have to test how the new version affects this read only windows because they can lose the configuration.


I'm very confused, what the IT team says is correct or I have misunderstood the security guide?

(Sorry I'm not native english and I don't understand Eone, so probably my explanation is a totally mess!:confused:)

Many thanks!!

Code discrepancies in different environment

$
0
0
So we have weird issue going on and I would really appreciate any advice I can get here.

Here are the Bullet points.

1. When we did a comparison in the c code between PD and PY, we found some mismatches,some objects were missing and some objects had code mismatches

2. We ignore objects in development or part of ongoing ESUs.

3. Even now, we were left with about a few missing objects and a few code mismatches, these code mismatches, were to do with SAR codes available in PY object source but missing in the PD objects's code.

4. So when I searched for those perticular SARs and related ESUs, weirdly in ESU logs it showed that the ESUs were applied success fully to all environments but somehow the SARs codes are missing in afew object, We verified omw loggings to see if any manual changes were made buit no luck.

5. So we dont know how this happened but we have this issue. Note- We used Beyond Compare to do the Dep server pathcode\source folder compare for this. So that showed us the n* and b* object differences but there must be other object types with similar issues.

6. So just re applying the ESU with forcemerging the objects might not be a good idea, as we dont what other objects from that ESu is affected.

7. Force merging all objects is also not feasible as the ESUs are fairly large and too many objects are there.

So any idea how we can fix this? get all obj. in sync? The reason for this is so that we can have reliable testing in PY.

We can do a full env. refresh including central objects from PD to PY, but thats another big no, no as it will make all our ESU etc applied logs and informations invalid.

So I am hoping I can get some directions from the JDE Gurus here... :)

Thank you.

Anu

P0413M - Security on PYE field

$
0
0
I want to apply security of PYE - Payee Number in P0413M application. But the data item is not with 'Row Security' applied.

1. If I change the data dictionary, what will be the effects ? Should I deploy a complete package ?
2. Even I apply security on PYE, I cannot isolates the payments of Companies. Is there any other way to restrict Companies to see their own payments.

( We really hate customization on standard applications )

Employee history delete

$
0
0
Payroll by mistake put one wrong entry and I have request to delete from backend.
I did research and found two tables I need to delete record. F0618 and F06156. Is it save to do or any impact? Or may be other tables involved?

I was wondering is there any application so users can do themself?

JDE Database Column Definitions Change in 9.2

$
0
0
We are migration JDE 8 (AS400) to JDE 9.2 (SQL Server). We noticed a lot of database column definitions are now float instead of integer/numeric. For example, AN8 used to be numeric(8,0) in AS400 but become float in SQL server.

We would like to make those numeric/integer columns as it is because we have other applications which access database directly and the change of column definition may impact them.

May I know if it is the default behaviour of JDE 9.2? Is there any setting to make those columns as integer/numeric?

Thanks
Terence

Cycle Billing (R49700) and Taxes

$
0
0
Hi list,

do you know if standard Cycle Billing program (R49700) is somehow able to book taxes ?

I'm interested in understanding whether a localized program exists in order to have VAT on goods shipped and as a consequence a way how to book F0018 table from Cycle Billing Journal Entries.

Thanks for your help.

Kind regards,

Carlo
E1 9.1

World 7.3 compatible with IBM i7.2?

$
0
0
Does anyone know if JDE World 7.3 is compatible with IBM os V7R2?

Thanks!

Row Security in P0413M (F0413)

$
0
0
The tabel F0413 does not have CO and MCU fields. What is the best way to do company wise security withou customizing the application-P0413M ?

Select multiple lines in SO Grid for Price History Adjustments

$
0
0
There are many instances in JDE where if you select multiple rows in a data grid and do a row exit, the sub application will iterate through all the selected records from the source application.

In the Sales Order Entry (P4210), I am trying to figure out how to make the grid work in a similar manner with the Price History (P4074) Row Exit. Unfortunately, we need to select 1 row at a time to access this application.



Any ideas?

Converting the logic in UBE into a BSFN (R31410) - to check Part List LOTN & LOCNs

$
0
0
Hi folks,

Bare with me here......
2 parts to this request

A)
I have a lovely request to check the LOTN and LOCN plus RLOTs selected in the F3111 Parts List. (the can't be mixed LOTN and RLOTs etc)

It has been suggested to populate the WO Parts List (LOTN RLOT LOCN) using the logic in R31410 and if not suitable, call it again in a different version config to free up and clean the parts list (LOTN RLOT LOCN)

Is there a BSFN that does this? Builds the Parts Lists LOTN RLOT LOCN etc for a given WO Parts List (I need to control the LOTNs it picks)
i.e. if there is 100 items on a WO, the LOTN RLOT LOCN selected must have at least 100 Items in it to start.

So I need to take a blank parts list and populate it with my own LOTN RLOT LOCN etc

B)
Failing this I will rewrite the logic in R31410 into a BSFN. As again the user needs notification the UBE logic has ended.

Thanks

John

Too many lines on batches

$
0
0
Does anyone know how to limit the number of PO receipts on a single batch short of closing and reopening the screen? Some of our batches have hundreds of line items received and is a pain to review.
Viewing all 7915 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>