Adding or Updating Media Objects thro' Batch

kgkrishnan

Member
Adding or Updating Media Objects thro\' Batch

Hi All,

I am in 8.12 implementation and have to do Data Conversion for manufacturing Routing master F3003. My routing has lot of "Routing Notes" for each sequence number as attachment. I think Current Standard JDE does not suppport adding Media Object(attachment) through Batch program.
Can anyone tell me how to do this thorugh batch program?. Anyone handled this problem earlier?.
Anyone added any New Recrods in F00165 through Batch?

Waiting for your reply...
 
Re: Adding or Updating Media Objects thro\' Batch

Hi,

I have copied B9848004 to a 55 object and modified it. The following is Main code of my BSFN.

MathCopy ((LPMATH_NUMERIC)&(dsKey03B31.mnSerialNumber), (LPMATH_NUMERIC)&(lpDS->mnSARNumber));
pKey = (LPVOID) &dsKey03B31;
pF00165Text = GetGenericText(pObjectName,(ID)0, (LPVOID)pKey, TRUE);

/* If text does not exist, ADD new text to F00165 */
if (pF00165Text == NULL)
{
idJDEDBReturn = ModifyGenericText (pObjectName,(ID)0,(LPVOID)pKey,lpDS->szSARText);
}
else
{
pNewText = lpDS->szSARText;
pChangedSARText = (LPSTR)jdeAlloc (COMMON_POOL,(unsigned long)(strlen(pNewText) +1),MEM_ZEROINIT);
strcpy ( pChangedSARText, pNewText);

idJDEDBReturn = ModifyGenericText (pObjectName, (ID)0,(LPVOID)pKey,pChangedSARText);

jdeFree ((void *) pChangedSARText);
}
/************
 
Back
Top