Custom metadata field with date filtering like built-in Date field
I've added a custom metadata field OK and now want to add an additional custom metadata field that contains the date the photos were exported by my plugin. The types of metadata values don't include a date field.
I've tried using a string with the value returned by os.date() and that does indeed add the date and time but what I'm really looking for is a way to add a date field so it will have the same behaviour that the built-in Date field does.
When I use Library Filter: Metadata, the Date column shows the date with a series of disclosure buttons in a hierarchy, e.g.,
Date
All (1 Date)
V 2009
V November
V 27-Friday
Is this some magic for the built-in field or is there some way of formatting the date so Lightroom knows it's a date and can treat it the same way as the built-in date?
Abe
Thanks. I've just added a date string. It's not an ideal solution but it's the best I can manage at this time. Maybe in LR3.
Abe
Similar Messages
-
Custom Metadata Extension with RFC call
Hi all,
I am trying to create a custom metadata extension that pulls data from ECC via an RFC call and returns values as a IMetaValueList in the getAllowedValues method.
Does anybody have any experience?
Thx
IsmailHello Sanjeev,
- I Kept External break point in SRM where we are calling RFC Call for ECC, I am able to debug untill the RFC call,
- But, on RFC Call ( CALL FUNCTION ZABC destination <Destination>), when I press F5 it is not going inside the function module.
- I am getting Export parameter values, means ctrl is going to ECC, but not able to debugg our BE system -ECC.
Pls suggest. Thanks for your quick reply.
Regards,
Mohan Vamsi -
FD32 - Customer credit, Issue with mass update of "TITLE OF NOTE" field
Hi All,
we have requirement for mass upload of credit master records. I am facing an issue with creation/populating of Title of note field. When we go directly to FD32 transaction we have a button "Services for Object" near tiltle of second screen of FD32 through which we can create a title of note (SOOD-OBJDES) but when we go to FD32 through SHDB for BDC recording, that option is not found.
Any idea on how to handle mass update for that field?
DhareppaHi,
You can use function module 'SGOS_NOTE_CREATE'. to create a note after you create customer credit limit through SHDB for BDC recording. It is going to be a separate program.
Function Module Parameters:
IS_OBJECT-OBJKEY = customer no + credit control area. --> ex. 20000000140001
IS_OBJECT-OBJTYPE = BUS1010
IP_TITLE = Your title
IT_CONTENT = your note content.
Cheers,
Chaiphon -
Is there a way to save the wpa profile with the filters currently applied on the view ? For example, i have the computation graph with process as firefox filtered and module name as kernelbase.dll. When ever i open a new etl file and apply my profile (.wpaprofile),
the computation graph is shown with only firefox process.
Hope, i am able to explain myself.Is there a way to save the wpa profile with the filters currently applied on the view ? For example, i have the computation graph with process as firefox filtered and module name as kernelbase.dll. When ever i open a new etl file and apply my profile (.wpaprofile),
the computation graph is shown with only firefox process.
Hope, i am able to explain myself. -
AutoPopulating a field with a string plus value from another field
Hi: I have a table with two fields
create table LINKREQUEST (
requestid int primary key,
INCIDENT_NUMBER varchar2(16),
REQUESTID is auto populated using a sequence. I want to auto populate the INCIDENT field with the string "INC" plus the value from REQUESTID. Can someone help.
TIA
RaviREQUESTID is auto populated using a sequence. I want to auto populate the INCIDENT field with the string "INC" plus the value from REQUESTIDSomething like this?:
SQL> create table linkrequest (
requestid int primary key,
incident_number varchar2(16)
Table created.
SQL> create sequence linkrequest_seq
Sequence created.
SQL> create or replace trigger linkrequest_trg before insert on linkrequest
for each row
begin
select linkrequest_seq.nextval,
case when :new.incident_number = 'INC' then 'INC' || linkrequest_seq.nextval else :new.incident_number end
into :new.requestid, :new.incident_number from dual;
end;
Trigger created.
SQL> insert into linkrequest (incident_number) values ('XY')
1 row created.
SQL> insert into linkrequest (incident_number) values ('INC')
1 row created.
SQL> insert into linkrequest (incident_number) values ('VW')
1 row created.
SQL> insert into linkrequest (incident_number) values ('INC')
1 row created.
SQL> select * from linkrequest
REQUESTID INCIDENT_NUMBER
1 XY
2 INC2
3 VW
4 INC4
4 rows selected. -
Create a Loolup field with PowerShell but Change the Default Display field
Hi
I am creating the a load of site columns with PowerShell. In the case of a Lookup Column I want to ensure that a the the industry column is checked programmatically.
$myField.LookupList = $spLookupList.ID
$myField.LookupField = $LookUpmyField.InternalName
As you can see there is no provision for a display name (Industry) which I want to display to the user once they select a lookup column
I just know somebody is going to suggest CAML !!!! Btw the code works but none of the checkboxes are selected as expected.
Daniel
Freelance consultantI tried a same in past. Couldn't find a perfect code. You can try below:
http://blogs.msdn.com/b/varun_malhotra/archive/2008/06/19/how-to-set-the-default-value-for-a-look-up-field-for-an-item-as-it-is-being-created.aspx
<Code>
SPList docs = w.Lists["Documents"];
SPFieldLookup fl = (SPFieldLookup)docs.Fields["City"];
fl.DefaultValue = "1;#Mexico City";
fl.Update();
</Code>
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/afd71aa8-54d3-424f-9b72-67328e080048/update-lookup-field-powershell?forum=sharepointdevelopmentprevious
$w = Get-SPWeb http://web
$l = $w.Lists["MyDocumentLibrary"]
$lf = $l.Fields["lookupColumn"]
$i = $l.Items[0] #List item to update
$lf.ParseAndSetValue($i,"1;#lookupvalue") #1;#lookupvalue refers to the ID of the lookup item and the value of the lookup item.
$i.Update()
If this helped you resolve your issue, please mark it Answered -
Need to pass custom metadata with Managed Attachment in EBS
Hi All,
I have enabled Managed attachment in EBS.
I also want to pass few custom metadata along with managed attachment.
I have followed the section "6.5 Configuring Managed Attachments Settings"
from the Application Adapter's guide at http://docs.oracle.com/cd/E23943_01/doc.1111/e17953/c06_confg_attchmts.htm#BABIEIDF
but still i dont see the custom metadata in the Managed attachment checkin screen.
thanks,
swapnilHi Swapnil ,
You will need to apply the following patch :
Patch 13943045
Read me file has all the steps required in addition to the patch to get Custom Parameters sent with EBS request , please check it and complete the steps .
Once done , check to see if OAF is able to send the parameters .
If not , then check the request / response files from EBS to get more details .
Thanks,
Srinath -
Custom metadata trigger rule in Retention Management
Hi Gurus,
I am new to Oracle UCM and URM. I was able to configure Retention Management in Server but had couple of questions in using it.
I am couple of custom metadata where in I would like to add that as part of Trigger condition.
Say for instance I had a custom field called ProjectFinishedDate. I want to write a trigger using that field.
Could any of you help me in having that custom field as part of Record Date field or any pointers how to achieve this.
Also in my disposition Rule I would like to do the same. Any documentation or any pointers or steps in implementing this would help
thanks a lotHere's some info on creating custom triggers:
http://docs.oracle.com/cd/E21764_01/doc.1111/e10640/c11_triggers.htm#i2985600
Here's the main info area for dispositions:
http://docs.oracle.com/cd/E21764_01/doc.1111/e10640/c14_disp_instr.htm#g1433476
and, specifically, creating dispositions:
http://docs.oracle.com/cd/E21764_01/doc.1111/e10640/c14_disp_instr.htm#i1081409
I believe the docs are pretty good and have well formed walkthroughs, but don't hesitate to post if you run into issues!
Thanks,
-ryan
Ryan Sullivan | ECMconsultant
http://www.ecmconsultant.net/ -
Problems syncing custom metadata
Running into a few problems when trying to work with custom metadata fields, as follows:
1) Sync Metadata command refuses to copy custom fields values across selected pictures.
2) When "Metadata->Show metadata for target photo only" is unchecked and writing a value to one custom field across several pictures it completely snafus the Smart Collections in the totals they show and also the pictures that are returned. In terms of the number indicators they either lock up, or become associated with the wrong metadata fields. Only a relaunch/optimize and another relaunch forces the totals to update properly otherwise they will not correctly reflect any changes made.
Are any of these known issues? There are some cool features here but it's giving me headaches!Hi Jon,
are are right, Bridge supports only text fields for custom metadata:
Booleans have to be "True" or "False"
Dates have to be entered in ISO8601 format, e.g. 2011-08-26T13:53-02:00
Lists of Strings are working when you use commas or semicolons to separate the entries.
Dropdowns are not working
You have two options to accomplish you workflow:
You can use the "Generic Panel" example and feed it with the same XML file. This shows the "My Choice" property as dropdown.
But you have to open the File Info dialog to see and modify the properties.
You can create your own panel using the Creative Suite SDK with Flex, if you have programming skills.
Hope this helps,
-- Stefan -
Problem with direct input program while uploading data into database
TABLES: BGR00, " Mappensatz
BMM00, " MM01/MM02 BTCI-Kopfdaten
BMMH1, " MM01/MM02 Hauptdaten
BMMH2, " Länderdaten (Steuern)
BMMH3, " Prognosewerte
BMMH4, " Verbrauchswerte
BMMH5, " Kurztexte
BMMH6, " Mengeneinheiten
BMMH7, " Langtexte
BMMH8. " Referentielle EAN's
Satztypen
DATA: MAPPENSATZ LIKE BMM00-STYPE VALUE '0',
KOPFSATZ LIKE BMM00-STYPE VALUE '1',
HAUPTSATZ LIKE BMM00-STYPE VALUE '2',
KUN_SATZ LIKE BMM00-STYPE VALUE 'Z',
LANDSATZ LIKE BMM00-STYPE VALUE '3',
PROGSATZ LIKE BMM00-STYPE VALUE '4',
VERBSATZ LIKE BMM00-STYPE VALUE '5',
KTEXTSATZ LIKE BMM00-STYPE VALUE '6',
MESATZ LIKE BMM00-STYPE VALUE '7',
TEXTSATZ LIKE BMM00-STYPE VALUE '8',
EANSATZ LIKE BMM00-STYPE VALUE '9'.
Common Data Bereich fuer die extern aufgerufenen Routinen
Initialstrukturen
DATA: BEGIN OF COMMON PART RMMMBIMY.
DATA: BEGIN OF I_BMM00.
INCLUDE STRUCTURE BMM00. " Kopfdaten
DATA: END OF I_BMM00.
DATA: BEGIN OF I_BMMH1.
INCLUDE STRUCTURE BMMH1. " Haupdaten
DATA: END OF I_BMMH1.
DATA: BEGIN OF I_BMMH2.
INCLUDE STRUCTURE BMMH2. " Länderdaten
DATA: END OF I_BMMH2.
DATA: BEGIN OF I_BMMH3.
INCLUDE STRUCTURE BMMH3. " Prognosewerte
DATA: END OF I_BMMH3.
DATA: BEGIN OF I_BMMH4.
INCLUDE STRUCTURE BMMH4. " Verbrauchswerte
DATA: END OF I_BMMH4.
DATA: BEGIN OF I_BMMH5.
INCLUDE STRUCTURE BMMH5. " Kurztexte
DATA: END OF I_BMMH5.
DATA: BEGIN OF I_BMMH6.
INCLUDE STRUCTURE BMMH6. " Mengeneinheiten
DATA: END OF I_BMMH6.
DATA: BEGIN OF I_BMMH7.
INCLUDE STRUCTURE BMMH7. " Textzeilen
DATA: END OF I_BMMH7.
DATA: BEGIN OF I_BMMH8.
INCLUDE STRUCTURE BMMH8. " Referentielle EAN's
DATA: END OF I_BMMH8.
DATA: END OF COMMON PART.
DATA: WA LIKE TEDATA-DATA.
Einzelfelder
DATA: GROUP_COUNT(6) TYPE C, " Anzahl Mappen
TRANS_COUNT(6) TYPE C, " alte Definition für rmmmbim0
SATZ_COUNT LIKE MUEB_REST-TRANC, " Trans.zähler neu
H_IND_COUNT LIKE MUEB_REST-D_IND, " Index welches Feld zurücks.
SATZ2_COUNT(6) TYPE C. " Anz. Sätze je Trans. ohne Kopfsatz
DATA: XEOF(1) TYPE C, " X=End of File erreicht
XHAUPTSATZ_EXIST TYPE C, " X=Hauptsatz zum Kopf exi.
NODATA(1) TYPE C. " kein BI für dieses Feld
mk/15.08.94:
DATA: GROUP_OPEN(1) TYPE C. " X=Mappe schon geöffnet
*eject
Konstanten
DATA: C_NODATA(1) TYPE C VALUE '/'. " Default für NODATA
DATA: MATNR_ERW LIKE MARA-MATNR VALUE '0 '.
DATA: MATNR_ERW_INT LIKE MARA-MATNR. "internal sight of '0 '
DATA: MATNR_LAST LIKE MARA-MATNR. "Material number
mk/11.08.94 2.1H:
If this flag is initial, the database updates will be done directly
during background maintenance instead of using a separate update
task. (no usage of this flag in dialogue mode!)
DATA: DBUPDATE_VB(1) VALUE ' '. "note 306628
data: matsync type mat_sync. "wk/99a no update in dialog if called
***INCLUDE ZMUSD070.
TABLES: MARA, "Material Master: General Data
MARC, "Material Master: C Segment
MARD, "Material Master: St Loc/Batch
MBEW, "Material Valuation
MVKE, "Material Master: Sales Data
MLGN, "Material Data per Whse Number
MLAN, "Tax Classification: Material
T001W, "Plants/Branches
TBICU.
DATA: BEGIN OF VALUTAB OCCURS 0.
INCLUDE STRUCTURE RSPARAMS.
DATA: END OF VALUTAB.
DATA: BEGIN OF VARTECH.
INCLUDE STRUCTURE VARID.
DATA: END OF VARTECH.
DATA: PARMS LIKE ZXXDCONV.
DATA: REC_COUNT TYPE I,
REC_COUNT_BAD TYPE I,
ZJOBID LIKE TBIZU-JOBID,
ZJOBCOUNT LIKE TBIZU-JOBCOUNT,
ZMATNR LIKE MARA-MATNR,
ZTEXT(80) TYPE C.
CONSTANTS: LIT_ZERO(18) TYPE C VALUE '000000000000000000',
LIT_CHAR TYPE C VALUE '_',
LIT_CREATE LIKE BMM00-TCODE VALUE 'MM01',
LIT_CHANGE LIKE BMM00-TCODE VALUE 'MM02',
LIT_CHECK(1) TYPE C VALUE 'X'.
DATA: BEGIN OF INP_DATA OCCURS 0,
MATNR(18) TYPE C, " Material code
UMREN(6) TYPE C, " Denominator
MEINH(3) TYPE C, " Alternate UOM
UMREZ(6) TYPE C, " Numerator
END OF INP_DATA.
*eject
SELECTION-SCREEN BEGIN OF BLOCK INOUT WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (13) TEXT-004.
PARAMETERS: P_PC RADIOBUTTON GROUP SRC DEFAULT 'X'.
SELECTION-SCREEN COMMENT (6) TEXT-005.
PARAMETERS: P_UNIX RADIOBUTTON GROUP SRC.
SELECTION-SCREEN COMMENT (6) TEXT-006.
PARAMETERS: P_DS_TYP LIKE ZXXDCONV-DS_TYP
DEFAULT 'ASC'.
SELECTION-SCREEN END OF LINE.
*SELECT-OPTIONS: S_PATH FOR PARMS-PATH
NO INTERVALS
LOWER CASE.
PARAMETERS: P_PATH TYPE RLGRAP-FILENAME.
PARAMETERS: P_HDRLIN LIKE ZXXDCONV-HDR_LINES
DEFAULT 0,
P_JOBNAM LIKE TBICU_S-JOBNAME
MEMORY ID BM1,
P_DI_EXE AS CHECKBOX
DEFAULT LIT_CHECK,
P_MAPPE LIKE BGR00-GROUP
DEFAULT 'MRP_UOM_LOAD'
NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK INOUT.
*eject
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PATH.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
PROGRAM_NAME = SYST-REPID
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_PATH'
CHANGING
FILE_NAME = S_PATH-LOW
FILE_NAME = P_PATH
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2.
AT SELECTION-SCREEN.
Set up parameter record
PARMS-UNIX = P_UNIX.
PARMS-PC = P_PC.
PARMS-DS_TYP = P_DS_TYP.
PARMS-JOBNAME = P_JOBNAM.
PARMS-MAPPE = P_MAPPE.
PARMS-HDR_LINES = P_HDRLIN.
*eject
Main Processing Routine *
START-OF-SELECTION.
Initialization
PERFORM 0000_HOUSEKEEPING.
Initialize transaction data in I_BM00
PERFORM 0500_INIT_BMM00.
Process input files
SORT S_PATH BY SIGN OPTION LOW.
MOVE S_PATH-LOW TO PARMS-PATH.
MOVE P_PATH TO PARMS-PATH.
LOOP AT S_PATH.
AT NEW LOW.
CLEAR INP_DATA.
REFRESH INP_DATA.
Read source data into internal table
PERFORM 1000_GET_SOURCE_DATA TABLES INP_DATA.
Processs each record in internal table
ZTEXT = TEXT-007.
ZTEXT+13 = PARMS-DS_NAME.
PERFORM 4000_PROGRESS_INDICATOR USING ZTEXT.
Initialize transaction data in I_BM00
PERFORM 0500_INIT_BMM00.
LOOP AT INP_DATA.
Reset tables for each record
BMM00 = I_BMM00.
BMMH1 = I_BMMH1.
BMMH6 = I_BMMH6.
Load structures with data
MOVE-CORRESPONDING INP_DATA TO BMM00.
PERFORM 2000_WRITE_OUTPUT USING BMM00.
MOVE-CORRESPONDING INP_DATA TO BMMH1.
PERFORM 2000_WRITE_OUTPUT USING BMMH1.
MOVE-CORRESPONDING INP_DATA TO BMMH6.
PERFORM 2000_WRITE_OUTPUT USING BMMH6.
REC_COUNT = REC_COUNT + 1.
ENDLOOP.
ENDAT.
ENDLOOP.
IF REC_COUNT GT 0
AND P_DI_EXE EQ LIT_CHECK.
PERFORM 3000_START_DI_JOB.
ENDIF.
WRITE: / TEXT-008,
REC_COUNT.
PERFORM 9000_END_OF_JOB.
*eject
Include containing common routines used by direct input programs
INCLUDE ZMUSD071.
*eject
FORM 0500_INIT_BMM00 *
Initialize I_BMM00 with transaction code and views selected *
FORM 0500_INIT_BMM00.
***this changes done by samson**
if not inp_data[] is initial.
select single matnr from mara INTO ZMATNR where matnr = inp_data-matnr.
if sy-subrc = 0.
I_BMM00-TCODE = LIT_CHANGE.
Basic data
I_BMM00-XEIK1 = LIT_CHECK.
else.
I_BMM00-TCODE = LIT_CREATE.
Basic data
I_BMM00-XEIK1 = LIT_CHECK.
endif.
endif.
**this changes above done by samson**
Transaction code
I_BMM00-TCODE = LIT_CHANGE.
Basic data
I_BMM00-XEIK1 = LIT_CHECK.
ENDFORM.
INCLUDE ZMUSD069.
*eject
FORM 0000_HOUSEKEEPING *
Initialization routines *
FORM 0000_HOUSEKEEPING.
PERFORM 0010_LDS_NAME.
PERFORM 0020_DS_NAME.
PERFORM 0030_OPEN_FILE.
PERFORM 0040_INIT_STRUCTS.
ENDFORM.
*eject
FORM 0010_LDS_NAME *
Obtain logical file name from DI job details *
FORM 0010_LDS_NAME.
Check valid job name
SELECT SINGLE * FROM TBICU
WHERE JOBNAME EQ PARMS-JOBNAME.
IF SY-SUBRC EQ 0.
CALL FUNCTION 'RS_VARIANT_VALUES_TECH_DATA'
EXPORTING
REPORT = TBICU-REPNAME
VARIANT = TBICU-VARIANT
IMPORTING
TECHN_DATA = VARTECH
TABLES
VARIANT_VALUES = VALUTAB
EXCEPTIONS
VARIANT_NON_EXISTENT = 1
VARIANT_OBSOLETE = 2
OTHERS = 3.
IF SY-SUBRC EQ 0.
READ TABLE VALUTAB WITH KEY 'LDS_NAME'.
MOVE VALUTAB-LOW TO PARMS-LDS_NAME.
ELSE.
MESSAGE I001 WITH PARMS-JOBNAME.
MESSAGE A099.
ENDIF.
ELSE.
MESSAGE I000 WITH PARMS-JOBNAME.
MESSAGE A099.
ENDIF.
ENDFORM.
*eject
FORM 0040_INIT_STRUCTS *
Initialize structures for direct input records *
FORM 0040_INIT_STRUCTS.
Start of standard SAP initialization from example program RMMMBIME
*------- Write session record -
CLEAR BGR00.
BGR00-STYPE = MAPPENSATZ.
BGR00-GROUP = PARMS-MAPPE.
BGR00-NODATA = C_NODATA.
BGR00-MANDT = SY-MANDT.
BGR00-USNAM = SY-UNAME.
BGR00-START = BGR00-NODATA.
BGR00-XKEEP = BGR00-NODATA.
PERFORM 2000_WRITE_OUTPUT USING BGR00.
*----- Initialize structures -
NODATA = BGR00-NODATA.
PERFORM INIT_STRUKTUREN_ERZEUGEN(RMMMBIMI) USING NODATA.
End of standard SAP initialization from example program RMMMBIME
ENDFORM.
*eject.
FORM 3000_START_DI_JOB *
Start direct input job *
FORM 3000_START_DI_JOB.
ZTEXT = 'Starting '(021).
ZTEXT+9 = TBICU-JOBNAME.
PERFORM 4000_PROGRESS_INDICATOR USING ZTEXT.
CALL FUNCTION 'BI_START_JOB'
EXPORTING
JOBID = ' '
JOBTEXT = TBICU-JOBNAME
REPNAME = TBICU-REPNAME
SERVER = TBICU-EXECSERVER
VARIANT = TBICU-VARIANT
NEW_JOB = 'X'
CONTINUE_JOB = ' '
START_IMMEDIATE = 'X'
DO_NOT_PRINT = 'X'
USERNAME = SY-UNAME
IMPORTING
JOBID = ZJOBID
JOBCOUNT = ZJOBCOUNT
EXCEPTIONS
JOB_OPEN_FAILED = 1
JOB_CLOSE_FAILED = 2
JOB_SUBMIT_FAILED = 3
WRONG_PARAMETERS = 4
JOB_DOES_NOT_EXIST = 5
WRONG_STARTTIME_GIVEN = 6
JOB_NOT_RELEASED = 7
WRONG_VARIANT = 8
NO_AUTHORITY = 9
DIALOG_CANCELLED = 10
JOB_ALREADY_EXISTS = 11
PERIODIC_NOT_ALLOWED = 12
ERROR_NUMBER_GET_NEXT = 13
OTHERS = 14.
IF SY-SUBRC EQ 0.
WRITE: / 'Direct input job'(022), TBICU-JOBNAME, 'started'.
ELSE.
WRITE: / 'Direct input failed with return code'(023), SY-SUBRC.
ENDIF.
FORM 0020_DS_NAME.
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
CLIENT = SY-MANDT
LOGICAL_FILENAME = PARMS-LDS_NAME
OPERATING_SYSTEM = SY-OPSYS
IMPORTING
FILE_NAME = PARMS-DS_NAME
EXCEPTIONS
FILE_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC NE 0.
MESSAGE E002 WITH PARMS-LDS_NAME.
MESSAGE A099.
ENDIF.
ENDFORM.
*eject
FORM 0030_OPEN_FILE *
Open physical file for output *
FORM 0030_OPEN_FILE.
OPEN DATASET PARMS-DS_NAME FOR OUTPUT IN TEXT MODE. "thg191105
OPEN DATASET PARMS-DS_NAME FOR OUTPUT IN TEXT MODE
encoding default. "thg191105
IF SY-SUBRC NE 0.
MESSAGE E003 WITH PARMS-DS_NAME.
MESSAGE A099.
ENDIF.
ENDFORM.
*eject
FORM 1000_GET_SOURCE_DATA *
Read source data into internal table *
--> INP_DATA " Name of internal table passed as parameter *
FORM 1000_GET_SOURCE_DATA TABLES INP_DATA.
CALL FUNCTION 'Z_FILE_UPLOAD'
EXPORTING
UNIX = PARMS-UNIX
PC = PARMS-PC
FILETYPE = PARMS-DS_TYP
FILENAME = PARMS-PATH
HDR_LINES = PARMS-HDR_LINES
TABLES
DATA_TAB = INP_DATA
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
INVALID_SOURCE = 8
OTHERS = 9.
ENDFORM.
*eject
FORM 2000_WRITE_OUTPUT *
Write record in standard SAP structure to UNIX file *
--> I_STRUCT " Name of record passed as parameter *
*FORM 2000_WRITE_OUTPUT USING I_STRUCT."SRY28NOV05
FORM 2000_WRITE_OUTPUT USING I_STRUCT TYPE ANY. "SRY28NOV05
TRANSFER I_STRUCT TO PARMS-DS_NAME.
IF SY-SUBRC NE 0.
MESSAGE E004 WITH PARMS-DS_NAME.
MESSAGE A099.
ENDIF.
ENDFORM.
*eject
*& Form 2100_WS_DOWNLOAD
text *
--> p1 text
<-- p2 text
FORM 2100_WS_DOWNLOAD TABLES INP_DATA.
DATA: FILENAME LIKE RLGRAP-FILENAME. "SRY28NOV05
DATA: W_FILENAME TYPE STRING. "SRY28NOV05
DATA: W_FTYP(10) TYPE C VALUE 'DAT'. "SRY28NOV05
MOVE PARMS-DS_NAME TO FILENAME. "SRY28NOV05
MOVE PARMS-DS_NAME TO W_FILENAME. "SRY28NOV05
*BEGIN OF BLOCK COMMENT BY SRY28NOV05
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME = FILENAME
FILETYPE = 'DAT'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
importing
filelength =
TABLES
DATA_TAB = INP_DATA
FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
OTHERS = 8.
*END OF BLOCK COMMENT BY SRY28NOV05
*BEGIN OF BLOCK ADDED BY SRY28NOV05
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = W_FILENAME
FILETYPE = W_FTYP
TABLES
DATA_TAB = INP_DATA
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22.
IF SY-SUBRC NE 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*END OF BLOCK ADDED BY SRY28NOV05
ENDFORM. " 2100_WS_DOWNLOAD
*eject
FORM 4000_PROGRESS_INDICATOR *
Write progress text to status bar *
--> TEXT " Text passed as parameter *
FORM 4000_PROGRESS_INDICATOR USING TEXT.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT
EXCEPTIONS
OTHERS = 1.
ENDFORM.
*eject.
FORM 9000_END_OF_JOB *
Close files on UNIX *
FORM 9000_END_OF_JOB.
CLOSE DATASET PARMS-DS_NAME.
ENDFORM.
FORM 1000_GET_SOURCE_DATA TABLES INP_DATA.
CALL FUNCTION 'Z_FILE_UPLOAD'
EXPORTING
UNIX = PARMS-UNIX
PC = PARMS-PC
FILETYPE = PARMS-DS_TYP
FILENAME = PARMS-PATH
HDR_LINES = PARMS-HDR_LINES
TABLES
DATA_TAB = INP_DATA
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
INVALID_SOURCE = 8
OTHERS = 9.
ENDFORM.
*eject
FORM 2000_WRITE_OUTPUT *
Write record in standard SAP structure to UNIX file *
--> I_STRUCT " Name of record passed as parameter *
*FORM 2000_WRITE_OUTPUT USING I_STRUCT."SRY28NOV05
FORM 2000_WRITE_OUTPUT USING I_STRUCT TYPE ANY. "SRY28NOV05
TRANSFER I_STRUCT TO PARMS-DS_NAME.
IF SY-SUBRC NE 0.
MESSAGE E004 WITH PARMS-DS_NAME.
MESSAGE A099.
ENDIF.
ENDFORM.
*eject
*& Form 2100_WS_DOWNLOAD
text *
--> p1 text
<-- p2 text
FORM 2100_WS_DOWNLOAD TABLES INP_DATA.Hi,
Thnaks for your reply, This is my requirement.
Here my problem is i am trying to upload the data from flatfile which contain materil number, denominator, Actual UOM, Nominator field values.
Which is the data i need to upload into MM02 and MM01, if material number is new then it has to create the material, if material is already existing it has to update the UOM values.
here i am getting data into my internal table INP_DATA, from that i am trying to upload the data to database by using job name MRP_MATERIAL_MASTER_DATA_UPLOAD with direct input program RMDATIND.
when i execute my program i am getting success message all the records writtin from flatfile to application server. and job started message.
then if i go into sm37 screen there i execute the job it is also giving active message. if i refresh it it is showing job completed message.
then i look at job log status. there i found that for existing material it is expecting material type, for new material it is giving some gravity error.
So could u help me in this it will be gr8.
Thanks & Regards,
RamNV -
Sorry for this question but I'm new on lua and the LR SDK
I have the following problem:
I have a custom metadata set with two fields, eg:
1: Name, Type string
2: URL, Type url, readOnly: true
In the metadata tagset "URL" is hidden because it is empty and only "Name" is shown.
After an user has entered text in the field "Name" and pressed enter, an url should be generated and shown in the "URL"-field. The entered value from "Name" is a fix part of the "URL".
Is this possible without using a dialogbox?
Thank you for your help.Hi,
IjonTichyTS wrote: I have the following problem:
I have a custom metadata set with two fields, eg:
1: Name, Type string
2: URL, Type url, readOnly: true
In the metadata tagset "URL" is hidden because it is empty and only "Name" is shown.
If you want the URL value to be permanently visible even when empty, you will need to modify its entry in the metadata tagset as follows:
-- Note: GPS would otherwise be hidden when no value exists
{'com.adobe.GPS', alwaysVisible = true, label = 'alwaysVisible'},
The default for alwaysVisible is false which is why the URL field will normally be hidden.
IjonTichyTS wrote:
After an user has entered text in the field "Name" and pressed enter, an url should be generated and shown in the "URL"-field. The entered value from "Name" is a fix part of the "URL".Is this possible without using a dialogbox?
I suspect you are looking for a way to attach an observer or have an action fire when you change the value of a field in a metadata tagset. Currently Adobe has not exposed that functionality in their SDK so you will need to work around this using approaches such as John mentions above.
Matt -
Can I take a frame from my project and use it as a custom menu background with CS4 and its Encore
My project is edited in CS4.
I moved it to Encore CS4.
I don't want to use any of the supplied menu templates in CS4 Encore.
I was hoping CS4 would be all I needed to create custom menus using scenes from my project.
My question is: Can I take a frame from my project and use it as a custom menu background with CS4 and its built in Encore or do I need some other element from the Adobe catalog to make these custom chapter menus and sub-menus?
Thanks JimOK, I'm back. Here are my steps for creating Custom Menus with PS, En and PrPro:
In PrPro, move the CTI (Current Time Indicator) to the desired Frame. Check Frames on either side, with the Program Monitor’s Magnification to 100%, or maybe even 200% (you’ll need to scroll, but get a really clear picture). You want the clearest Frame in that area. With AME, in CS4, you’ll want to Export that Frame as .TIFF, or .BMP. I use .TIFF for this.
Now, for a caveat. When you Import this Exported Frame into Photoshop, be sure to check the specs., especially the PAR. You may have to use Image>PAR to adjust this to match your Project’s specs. Or, all might be perfect - just check this out.
Now, at this point, I choose the Library Menu, Blank, so that everything is setup. One can create the Menu from scratch, but careful attention needs to be paid to the exact naming conventions. At the very least, unless you’ve done this dozens of times before, use that Blank Menu, or similar as a guide, so you get things done, as they must be done.
Using that Blank Menu, just drag the Layer from your Exported Frame to your Menu image. It will appear above the black Background.
Add, or manipulate your Button Layer Sets, as is required, keeping them together. Remember that Button #1 will be the Button Layer Set, that is lower down in the Layers Palette. This can play a roll with Button Routing, back in Encore. Lower Button Layer Sets will have lower Button numbers.
Now, I always rename my Button Layer Sets, keeping the required characters - just changing the name. I also do all of my Button text in PS, and make sure to turn OFF Sync Button Names.
When done, Save_As .PSD, and then Import_As_Menu into Encore. Note: if you start with the Blank Menu, you can choose Edit in Photoshop, and then when done in PS, you just need to Save, and it will update in Encore. This is a personal workflow choice. I do the Edit in Photoshop route, but it is not necessary. One just needs to Import the resulting .PSD into Encore with Import_As_Menu, so that Encore does all the things that it needs to and recognizes the .PSD as a Menu.
When deciding what to base your Menu on, remember that you can "populate" your Menu with Buttons from the Functional Content. I’d suggest studying these Assets, and picking the ones that work best for you. You can still alter/edit those back in PS, so you just need to "get close."
Pay special attention to the required naming conventions. You cannot deviate from those first characters in the Button Layer Sets. They MUST be followed.
If you have any questions, do not hesitate to ask.
Good luck,
Hunt -
How to update TASK_hyperlink_address field with PSI?
Simple question but hard to do.
Can we have custom fields with html hyperlink?
And why having fields read only ????Enterprise Custom Fields do not support Hyperlinks. You can use the HREF standard task field for this purpose.
Gary Chefetz, MCITP, MCP, MVP msProjectExperts
Project and Project ServerFAQs
Project Server Help BLOG -
Populate object form with already provsioned resource object's data
OIM Version:
9102 BP19
Scenario:
We have to pre-populate resource object (ModifyObject) form fields with already provisioned resource object (ProvisionedObject) form fields which can be multi-instance resource.
This provided data will be used modify the already Provisioned resource object data (same ProvisionedObject). And this needs to be handled with approval workflow.
Approach:
We will use selected ProvisionedObject’s process instance key on web page in resource object pre-populate adapters. And using that process instance key we will fetch already provisioned resource (ProvisionedObject) object’s data.
Issue:
Not sure how can we pass the process instance key from WEB_PAGE to OIM_RESOURCE_OBJECT’s pre-populate adapter.
Any pointers towards the solution will be appreciated.My suggestion is...
At the time of raising the request, use userKey and in the code use getObjects() to retrieve the provisioned resource object information. Here you can retrieve Process Instance Key of the Provisioned resource and then retrieve the process data. So at this point you will have all the required data of the provisioned resource which can be returned to the object form field.
This is one approach. Experts may throw more pointers. -
The form where this happens contains an email field as well as a password field, so it does have both of the fields that are on the login page. It is used to modify the details of the user of our site and is accessed by the administrators, not the users themselves. To auto fill the fax field (which is named _fax) with my email address is very strange. If I log in as a different admin user then the email address I use to login appears in the field. The password field is also appears on the form and is being populated, presumably with my password. How can Firefox get it wrong and put an entry in a field with a different name, and why that field and not other empty fields on the form?
== This happened ==
Every time Firefox openedFirst be sure login and password are OK. Sometimes the address starts wit "http://..." and sometime starts with "ftp://...". Try both normal FTP access and Scure FTP access (SFTP). At the end, contact the site's provider.
Maybe you are looking for
-
The difference between 1.1.2 & 1.1.3?
other then the home screen and its harder to jailbreak...
-
I created a web page from Microsoft word 07 and I can't see my ping animations
My problem is with ping and gif animations not showing up in Firefox~!!!!!!!
-
Re-install N97mini after hard-reset
Hey, I already paid the Software by credit card and downloaded it directly on the mobile phone. Few days ago I had troubles with my phone and I couldn't start it anymore. After hard-reseting it, it worked again. Unfortunately all software is gone now
-
Converting bytes to pixels???
Hi Everyone, My Jdev version is 11.1.2.3.0. I have deloped one ADF applicaton which is working fine. Now i have added a table to the page which has 3 columns. The width of the column in ADF page should be equal to width of the column in the database.
-
Safari 6.0 external links bug
Hi, I'm running ML 10.8.1 with all the updates. When I click on external links (eg: links in Mail), it opens safari, and navigates to the website in full screen mode. But, the Menu Bar, the Bookmarks Bar, and the Tabs bar are not accessible. Moving t