Append error on field length
Hi all,
I've gotten the header/trailer removed in the sender communication channel using java mapping and now must take the resulting detail rows and only allow them to be 80 characters in length and in flat text format (as it was initially). Below is how I have content conversion set up on the receiver communication channel:
*note - if I remove the content conversion in the receiver channel concatenation of the files without the header/trailer works flawlessly but the message is still in pixml format. there is no issue with the append functionality, simply the output of the detail row set to a max of 80 characters followed by another detail row at 80 characters, etc. in flat text format***
Processing parameters: Append
file type: text
file encoding: blank
Recordset Structure: DetailRow
DetailRow.fieldNames Bytes4,RecId,Date1,Filler
DetailRow.fieldFixedLengths 4,6,6,64
DetailRow.addHeaderLine 0
DetailRow.endSeparator 'nl'
communication channel errors received in RWB:
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value '1528W COFFEYVIL KSL 11011409UP COFFEYVIL KS 587970587970' too long (>6 for 2. column) - must stop', probably configuration error in file adapter (XML parser error)
Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value '1528W COFFEYVIL KSL 11011409UP COFFEYVIL KS 587970587970' too long (>6 for 2. column) - must stop', probably configuration error in file adapter (XML parser error)'
Can anyone lend a hand on this one?
Much thanks,
Don
Hi Don,
From the details of your error message in RWB, it is crystal clear that :
DetailRow.fieldNames Bytes4,RecId,Date1,Filler
DetailRow.fieldFixedLengths 4,6,6,64
the RecId field whose length is declared to be 6 has got a value in the payload which is greater than 6. And no parameters have been used to tackle such a situation. So such an error has occured.
You can refer this link for getting hold of all the parameters that are used in receiver file adapter content converson:
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
I think your problem will be solved if you use DetailRow.fixedLengthTooShortHandling parameter in your Content Conversion.
If you want that the value is shortened to the maximum permitted length only, then use the value Cut for this parameter, else use the value Ignore which means that the system applies the value completely regardless of it being too long.
HOPE THIS HELPS YOU BUDDY!!!!!
THANKS
BISWAJIT
Similar Messages
-
Field Length Cannot Be Reduced UDF
I have a problem where i accidentally updated the Alphanumeric UDF to 100 and now i want to reduce its size and it prompts me with an error saying "Field Length Cannot Be Reduced". Any way to fix this?
Hi David,
You will not be able to Reduce Length of UDF once Created.
This is Standard System Behavior.
If its your requirement then Delete existing UDF and then Create again same UDF name with less Length.
Hope this help
Regards::::
Atul Chakraborty -
i am trying to generate purchase order and i create a BAPI also which is active.
But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".Hi,
Yeah i tried my Z_BAPI in R3 and then giving some ERROR.
This is my CODE-
FUNCTION ZBAPIPOTV2.
*"*"Local Interface:
*" IMPORTING
*" VALUE(POHD) TYPE ZPOHD OPTIONAL
*" VALUE(POITEM) TYPE ZPOITEM OPTIONAL
*" TABLES
*" RETURN STRUCTURE BAPIRET1 OPTIONAL
data: ls_pohd type bapimepoheader,
ls_pohdx TYPE bapimepoheaderx,
lt_poit TYPE TABLE OF bapimepoitem,
lt_poitx TYPE TABLE OF bapimepoitemx,
ls_poit TYPE bapimepoitem,
ls_poitx TYPE bapimepoitemx.
MOVE-CORRESPONDING pohd to ls_pohd.
MOVE-CORRESPONDING poitem to ls_poit.
ls_pohdx-comp_code = 'x'.
ls_pohdx-doc_type = 'x'.
ls_pohdx-vendor = 'x'.
ls_pohdx-purch_org = 'x'.
ls_pohdx-pur_group = 'x'.
ls_poit-po_item = '00010'.
APPEND ls_poit to lt_poit.
ls_poitx-po_item = '00010'.
ls_poitx-po_itemx = 'x'.
ls_poitx-material = 'x'.
ls_poitx-plant = 'x'.
ls_poitx-quantity = 'x'.
APPEND ls_poitx to lt_poitx.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
POHEADER = ls_pohd
POHEADERX = ls_pohdx
* POADDRVENDOR =
* TESTRUN =
* MEMORY_UNCOMPLETE =
* MEMORY_COMPLETE =
* POEXPIMPHEADER =
* POEXPIMPHEADERX =
* VERSIONS =
* NO_MESSAGING =
* NO_MESSAGE_REQ =
* NO_AUTHORITY =
* NO_PRICE_FROM_PO =
* PARK_COMPLETE =
* PARK_UNCOMPLETE =
* IMPORTING
* EXPPURCHASEORDER =
* EXPHEADER =
* EXPPOEXPIMPHEADER =
TABLES
RETURN = return
POITEM = lt_poit
POITEMX = lt_poitx
* POADDRDELIVERY =
* POSCHEDULE =
* POSCHEDULEX =
* POACCOUNT =
* POACCOUNTPROFITSEGMENT =
* POACCOUNTX =
* POCONDHEADER =
* POCONDHEADERX =
* POCOND =
* POCONDX =
* POLIMITS =
* POCONTRACTLIMITS =
* POSERVICES =
* POSRVACCESSVALUES =
* POSERVICESTEXT =
* EXTENSIONIN =
* EXTENSIONOUT =
* POEXPIMPITEM =
* POEXPIMPITEMX =
* POTEXTHEADER =
* POTEXTITEM =
* ALLVERSIONS =
* POPARTNER =
* POCOMPONENTS =
* POCOMPONENTSX =
* POSHIPPING =
* POSHIPPINGX =
* POSHIPPINGEXP =
* SERIALNUMBER =
* SERIALNUMBERX =
* INVPLANHEADER =
* INVPLANHEADERX =
* INVPLANITEM =
* INVPLANITEMX =
ENDFUNCTION.
i am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)". -
EEWB field length modification error
Hi,
In our system, an EEWB project is already exist for custom fields in Quotation's product item (CI_EEW_CUSTOMER_I).
I want to change the field length of those custom fields. Thus, I run the wizard of this EEWB project and change some of the field length.
After the wizard and some of the tables are converted, following error occurs:
Task CRM_BTX_ADD_NEW_FIELDS CD3100
deleting of existing BAdI Implementation "ZEEW_CUSTOMER_I01" failed
Moreover, the EEWB icon is changed to red & broken.
How can I continue and make it back to normal?Hi
The error is coming because EEWB does changes in the ABAP dictionary objects. Now you are not able to delete the field properly thats why you are getting the error
Once you delete the field then only you can process.
check your customizing in transaction EEWC.
Look at note 649336 to set up the customizing.
Regards
Manohar -
Hi,
running SQL*Loader (Release 8.1.7.2.1) causes an error "SQL*Loader-704: Internal error: Maximum record length must be <= [10000000]". This error occurs when SQLLoader is trying to load several thousand records into a database table. Each record is less than 250 bytes in length.
Any idea what could cause the problem?
Thanks in advance!
Ingo
And here's an extract from the log file generated by SQLLoader :
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 1360 rows, maximum of 10485760 bytes
Continuation: none specified
Path used: Conventional
Table "SYSTEM"."BASICPROFILE$1", loaded from every logical record.
Insert option in effect for this table: APPEND
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
UUID FIRST * O(X07) CHARACTER
DOMAINID NEXT * O(X07) CHARACTER
LASTMODIFIED NEXT * O(X07) DATE DD/MM/YYYY HH24:MI:SS
ANNIVERSARY NEXT * O(X07) CHARACTER
BIRTHDAY NEXT * O(X07) CHARACTER
COMPANYNAME NEXT * O(X07) CHARACTER
DESCRIPTION NEXT * O(X07) CHARACTER
FIRSTNAME NEXT * O(X07) CHARACTER
COMPANYNAMETRANSCRIPTION NEXT * O(X07) CHARACTER
FIRSTNAMETRANSCRIPTION NEXT * O(X07) CHARACTER
GENDER NEXT * O(X07) CHARACTER
HOBBIES NEXT * O(X07) CHARACTER
HONORIFIC NEXT * O(X07) CHARACTER
JOBTITLE NEXT * O(X07) CHARACTER
KEYWORDS NEXT * O(X07) CHARACTER
LASTNAME NEXT * O(X07) CHARACTER
LASTNAMETRANSCRIPTION NEXT * O(X07) CHARACTER
NICKNAME NEXT * O(X07) CHARACTER
PREFERREDLOCALE NEXT * O(X07) CHARACTER
PREFERREDCURRENCY NEXT * O(X07) CHARACTER
PROFESSION NEXT * O(X07) CHARACTER
SECONDLASTNAME NEXT * O(X07) CHARACTER
SECONDNAME NEXT * O(X07) CHARACTER
SUFFIX NEXT * O(X07) CHARACTER
TITLE NEXT * O(X07) CHARACTER
CONFIRMATION NEXT * O(X07) CHARACTER
DEFAULTADDRESSID NEXT * O(X07) CHARACTER
BUSINESSPARTNERNO NEXT * O(X07) CHARACTER
TYPECODE NEXT * O(X07) CHARACTER
OCA NEXT * O(X07) CHARACTER
SQL*Loader-704: Internal error: Maximum record length must be <= [10000000]As a second guess, the terminator changes or goes missing at some point in the data file. If you are running on *NIX, try wc -l data_file_name. This will give a count of the number of lines (delimited by CHR(10) ) that are in the file. If this is not close to the number you expected, then that is your problem.
You could also try gradually working through the data file loading 100 records, then 200, then 300 etc. to see where it starts to fail.
HTH
John -
Type conflict when calling a function module (field length)
Dear All,
I am getting this following error while executing: Type conflict when calling a function module (field length)
This is piece of coding i have writern in my action button.
method SEARCH_MATERIAL .
data:
node_mat_input TYPE REF TO if_wd_context_node,
node_mat_output TYPE REF TO if_wd_context_node,
material TYPE BAPIMATDET-MATERIAL,
itab TYPE TABLE OF BAPIMATDOA.
node_mat_input = wd_context->get_child_node( 'NODE_MAT_INPUT' ).
node_mat_output = wd_context->get_child_node( 'NODE_MAT_OUTPUT' ).
node_mat_input->get_attribute( EXPORTING name = 'MATERIAL'
IMPORTING value = material ).
CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'
EXPORTING
material = material
PLANT = plant
VALUATIONAREA =
VALUATIONTYPE =
MATERIAL_EVG =
IMPORTING
MATERIAL_GENERAL_DATA = itab
RETURN =
MATERIALPLANTDATA =
MATERIALVALUATIONDATA =
node_mat_output->bind_table( itab ).
endmethod.
Attributes are:
Node name = INPUT its structure is BAPIMATDET
INPUT attributes = MATERIAL of type BAPIMATDET-MATERIAL
Thanks,
Gopi.Hi Amit,
I have used service call to fetch records from that bapi..
The following is the code generated by service call:-
METHOD execute_bapi_material_get_deta .
declarations for context navigation
DATA:
node_bapi_material_get_de TYPE REF TO if_wd_context_node,
node_exporting TYPE REF TO if_wd_context_node,
node_material_general_dat TYPE REF TO if_wd_context_node,
node_importing TYPE REF TO if_wd_context_node,
lri_element TYPE REF TO if_wd_context_element.
declarations for fuba parameters
data:
stru_c_material_general_dat TYPE if_componentcontroller=>element_material_general_dat.
DATA:
attr_material TYPE bapimatdet-material,
attr_plant TYPE bapimatall-plant.
get all involved child nodes
node_bapi_material_get_de = wd_context->get_child_node( `BAPI_MATERIAL_GET_DE` ).
node_exporting = node_bapi_material_get_de->get_child_node( `EXPORTING` ).
node_material_general_dat = node_exporting->get_child_node( `MATERIAL_GENERAL_DAT` ).
node_importing = node_bapi_material_get_de->get_child_node( `IMPORTING` ).
get input from context
node_importing->get_attribute( EXPORTING name = `MATERIAL`
IMPORTING value = attr_material ).
node_importing->get_attribute( EXPORTING name = `PLANT`
IMPORTING value = attr_plant ).
the invocation - errors are always fatal !!!
CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'
EXPORTING
material = attr_material
plant = attr_plant
" valuationarea = wd_This->Valuationarea
" valuationtype = wd_This->Valuationtype
" material_Evg = wd_This->Material_Evg
IMPORTING
material_general_data = stru_c_material_general_dat
" return = wd_This->Return
" materialplantdata = wd_This->Materialplantdata
" materialvaluationdata = wd_This->Materialvaluationdat
node_material_general_dat->bind_structure( stru_c_material_general_dat[] ).
ENDMETHOD.
but the problem is I am getting the following error while compiling...
" stru_c_materialplantdata " is not an internal table - the " OCCOURS n" specification is missing.
Thanks,
Gopi.
Edited by: Yegalaivan on Nov 18, 2009 8:30 AM -
Hi Team,
We r tring to create table with field length 250 and 'CHAR' type and one more field 'STRING 'for unlimited length.While creating table entries ,it is tsking only 130 length for all fields.it is not taking 250 characters for 250 length field.and it is not taking unlimited length for String field.Plz let me know.Hello Mohan,
CHAR 250 is right. i am not facing any problem.
can you please explain in detail what you have done and what error you are getting.
Regards,
Sujeet
Edited by: Sujeet Mishra on Dec 2, 2009 4:42 AM -
Getting correct field length when creating formats for delimited flat files
Using Data Services 3.2 to pull in tsv and Excel source files.
When creating a new format for each file, DS tries to intelligently set the field size for each column. However, it seems to sample only a portion of the file. The end result is that it often determines too short a length for a field.
Is there a way to force it to scan an entire file before it sets the field length? Or alternatively, how to get it to at least throw an error instead of silently truncating my data?I am not aware of any way to force DS to scan the whole file, or to log a warning when it truncates. The field sizes DS sets by using a sample of the data is only really to give you a starting point, you need to try and determine the maximum possible lengths preferably from someone who understands the source of the data or through profiling. But the profiling method will obviously only be based on the data you have at the time of profiling, new data added to the source later could exceed the field lengths. The way I prefer to handle this is to set all the field lengths to longer than expected, eg. varchar(999) and then use a validation transform immediately after reading the file to check for any fields that exceed the maximum allowed for the target system and send these to an error file/table.
-
What is the best way to declare field length 500 in internal table?
Hi all,
what is the best way to declare field length 500(constant value allways) in internal table?
I am trying to send data from internal table to file format, and I have a field in internal table with 500 length (constant value always). So how do I can declare and append this field value to table?
Thanks
MuraliHi. Please see the following example program, notice how I am filling the field with the constant value.
report zrich_0001.
* CLASS lcl_main DEFINITION
class lcl_main definition.
public section.
types: begin of ttab,
fld1(500) type c,
end of ttab.
data: itab type table of ttab.
data: xtab type ttab.
methods: constructor,
write_itab.
endclass.
* CLASS lcl_main IMPLEMENTATION
class lcl_main implementation.
method constructor.
<b>
xtab-fld1 =
'This is one part of the total string which needs to be really' &
' long and this is a constant and we need to move it to a work' &
' area and then append it to the internal table which has a' &
' field with a length of five hundred characters'.
append xtab to itab.</b>
endmethod.
method write_itab.
loop at itab into xtab.
write:/ xtab-fld1.
endloop.
endmethod.
endclass.
data: o_main type ref to lcl_main.
start-of-selection.
create object o_main.
call method o_main->write_itab.
Regards,
Rich Heilman -
Control an Integer field Length without using Validation ??
Hi,
I have Couple of fields where I need to configure them as Integers.
Now each one has a fixed length that i need to limit to.
But when i create a field of type: integer, i cannot select teh length!!!
To achive this the idea i have is to write a validation which checks length..
But can i achive it without going for a validation on each field???
PS: I am aware that TEXT field can limit the length But it also allows me to enter text values, my requirement clearly says that to allow users to only enter Numeric values..
Did anyone face a similar Case?
Kind Regards
EvaHi Eva,
I didn't try in the system, but I feel there are two solutions to achieve your requirement (*of course in both cases you will need to write a simple validation)
Solution 1 : When field is defined as "Integer" in Console.
lets take an example, you want to restrict an integer field with a limit of max 4 characters.
Maximum value of a 4 character integer can be "9999". So, you can put a simple validation to compare the field value with 9999. if the value is less then this means fields values is less than 4 characters, else more than 5 characters.
In this case Your validation expression in expression editor will be:
FIELD NAME<= "9999"
Solution 2 : When field is defined as "Text" in Console.
In this case you can restrict the maximum field length through Console. But you will also need to write a validation to ensure that user is not entering any alphabets or special characters in this field.
In this Case you can use below validation:
HAS_ALL_CHARS(FIELD NAME, "0","9")
This will ensure that field has all characters between 0 and 9 and doesn't hold any special character or alphabets.
In Both cases you will need to set "Automatic Execution" property as "Error". Also please do not manually type any function or value in expression editor. use drop down for fields, operators, functions etc. and enter numeric values using the first blank box before dimension list.
Kindly revert if you face any issues.
-Shiv -
FIXED FIELD LENGTH is not constant
Hello Guru's,
This is the question asked in IBM .
What will you do if field length of a field in flat file is not constant or not equal to the FIXED FILED LENGTH ?.
i.e. f1 is of length is 10 and in one row its length is only 9 what will happen and what will you do to overcome this situation.( consider its a FILE TO FILE SCENARIO )
can anyone help me in this regard.
Thanks in advance.> This is the question asked in IBM .
> What will you do if field length of a field in flat file is not constant or not equal to the FIXED FILED LENGTH ?.
> i.e. f1 is of length is 10 and in one row its length is only 9 what will happen and what will you do to overcome this situation.( consider its a FILE TO FILE SCENARIO )
The ans for this question is very simple.
Since your FIXED FIELD LENGTH is 10 correct. now if any value comes of length 9 or less, then there will be no problem at all. It will work perfectly without doing anything. BUT if your length goes beyond 10 then it will throw an error message which you can see in RWB.
Shorter length is never a problem in case of FIXED FIELD LENGTH.
I hope now you got the ans, but good way to learn is, to create a simple scenario and test it. )
Regards,
Sarvesh -
How to set field length in Dynamic IT tab
Hi All,
I am creating 1 dynamic internal table with refrence of field catalog, but in the dynamic IT tab and work area i am gettinf field length is 10 char.
But i want to change this into 15 or 20 char like this.... how can i change this
Please help me .
DATA: ep_tab TYPE REF TO data,
new_line TYPE REF TO data.
FIELD-SYMBOLS: <l_table> TYPE table,
<l_line> TYPE ANY.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
I_STYLE_TABLE = c_char
it_fieldcatalog = it_fieldcatalog
I_LENGTH_IN_BYTE = ' '
IMPORTING
ep_table = ep_tab.
ASSIGN ep_tab->* TO <l_table>.
CREATE DATA new_line LIKE LINE OF <l_table>.
ASSIGN new_line->* TO <l_line>.
This is my code.
Regards,
Arjun.Hi,
try this
** ALV DECALRATION
DATA : wa_lvc_cat TYPE lvc_s_fcat,
gt_lvc_cat TYPE lvc_t_fcat.
DATA : wa_fieldcat TYPE slis_fieldcat_alv,
gt_fieldcat TYPE slis_t_fieldcat_alv.
DATA : wa_slis_layout TYPE slis_layout_alv.
PERFORM create_dynamic_itab. " Fill fieldcatlog and create dynamic itab
*& Form CREATE_DYNAMIC_ITAB
* text
* --> p1 text
* <-- p2 text
FORM create_dynamic_itab .
CLEAR g_pos .
PERFORM fill_gt_lvc_cat_fld USING 'MATNR' 18 . "fieldname outputlen.
PERFORM fill_gt_fieldcat_field USING c_x 'MATNR' 'CHAR' 18 text-006.
PERFORM fill_gt_lvc_cat_fld USING 'CODE' 40 .
PERFORM fill_gt_fieldcat_field USING ' ' 'CODE' 'CHAR' 40 text-024.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = gt_lvc_cat
IMPORTING
ep_table = new_table.
ENDFORM. " CREATE_DYNAMIC_ITAB
*& Form FILL_gt_lvc_cat_FLD
* text
* -->P_0006 text
* -->P_18 text
FORM fill_gt_lvc_cat_fld USING p_fieldname TYPE any
p_outputlen TYPE any.
wa_lvc_cat-fieldname = p_fieldname . " 'MATNR'
wa_lvc_cat-outputlen = p_outputlen. " 18
APPEND wa_lvc_cat TO gt_lvc_cat.
CLEAR wa_lvc_cat.
ENDFORM. " FILL_gt_lvc_cat_FLD
*& Form FILL_GT_FIELDCAT_FIELD
* text
* -->P_C_X text
* -->P_0012 text
* -->P_0013 text
* -->P_18 text
* -->P_TEXT_006 text
FORM fill_gt_fieldcat_field USING p_key TYPE any
p_fieldname TYPE any
p_datatype TYPE any
p_outputlen TYPE any
p_seletext_m TYPE any.
g_pos = g_pos + 1.
wa_fieldcat-col_pos = g_pos. " 1.
wa_fieldcat-key = p_key . " c_x.
wa_fieldcat-fieldname = p_fieldname. " 'MATNR'.
wa_fieldcat-datatype = p_datatype. " 'CHAR'.
wa_fieldcat-outputlen = p_outputlen. " 18.
wa_fieldcat-seltext_m = p_seletext_m. " text-006. "'Material'.
APPEND wa_fieldcat TO gt_fieldcat.
CLEAR wa_fieldcat.
ENDFORM. " FILL_GT_FIELDCAT_FIELD
PERFORM fill_output_layout. " Fill the output data into field symbol
*& Form FILL_OUTPUT_LAYOUT
* text
* --> p1 text
* <-- p2 text
FORM fill_output_layout .
ASSIGN new_table->* TO <fs_table>.
CREATE DATA new_line LIKE LINE OF <fs_table>.
ASSIGN new_line->* TO <fs_line>.
LOOP AT gt_mseg INTO wa_mseg.
ASSIGN COMPONENT 'MATNR' OF STRUCTURE <fs_line> TO <fs_field>.
<fs_field> = wa_mseg-matnr.
READ TABLE gt_grdtrans INTO wa_grdtrans WITH KEY mawerk = wa_mseg-WERKS
matnr = wa_mseg-matnr
mat_doc = wa_mseg-mblnr binary search.
IF sy-subrc = 0.
LOOP AT gt_qmfe INTO wa_qmfe WHERE qmnum = wa_grdtrans-qmnum.
READ TABLE gt_qpct2 INTO wa_qpct2 WITH KEY codegruppe = wa_qmfe-fegrp
code = wa_qmfe-fecod
BINARY SEARCH .
IF sy-subrc = 0.
ASSIGN COMPONENT 'CODE' OF STRUCTURE <fs_line> TO <fs_field>.
<fs_field> = wa_qpct2-kurztext.
ENDIF.
endloop.
clear wa_qmfe.
ENDIF.
ENDLOOP.
CLEAR wa_mseg.
PERFORM fill_layout. " Filling the layout of REUSE_ALV_GRID_DISPALY
*& Form FILL_LAYOUT
* text
* --> p1 text
* <-- p2 text
FORM fill_layout .
wa_slis_layout-zebra = c_x.
wa_slis_layout-colwidth_optimize = c_x.
ENDFORM. " FILL_LAYOUT
Edited by: ShaliniSinha on Mar 30, 2009 1:49 PM
Edited by: ShaliniSinha on Mar 30, 2009 1:55 PM -
How can I restrict field lengths in a field?
I have a field that I want the user to only enter a 5 character response, not a 4 or 6 character response. Is '?????' field validation the only option?
There is a LEN function that you can use to validate the entry. It returns the length of the field. You could build a validation rule to ensure the field length is 5 and that anything other than 5 characters returns an error message. You would need to build more specific validation rules if your result needed to be numeric or non-numeric. The LEN function only rerturns the length.
Good Luck,
Thom -
ALV (Factory class) field length problem
Hi experts!
I build an ALV report using the Factory method. But I can't set the field length.
When I set the field length in a column attributes it doesn't change nothing
What is the problem?
My column attributes are like that:
TRY.
lr_column ?= lr_columns->get_column( 'NAME1' ).
lv_text_s = text-103.
lv_text_m = text-103.
lv_text_l = text-103.
lr_column->set_long_text( text-103 ).
lr_column->set_short_text( lv_text_s ).
lr_column->set_medium_text( lv_text_m ).
<b> lr_column->set_output_length( 30 ) .</b>
lr_column->set_active_for_rep_interface( gc_default ).
CATCH cx_salv_not_found.
ENDTRY.
Thanks forehead,
DaniHi,
In ur fieldcat populate the output length field.
CLEAR x_fieldcat.
x_fieldcat-fieldname = 'FLAG'.
x_fieldcat-seltext_l = 'Text' .
<b> x_fieldcat-outputlen = 30.</b>
x_fieldcat-col_pos = 1.
APPEND x_fieldcat TO it_fieldcat. -
APEND the file depending upon the source field length
Dear ALL,
Scenario is IDOC to FILE(using File Content Conversion in receiver side)
*Requirement:*
Payment Id is the field from IDOC.
1st time data for the field length is 6 digit that always end with '0' that is 6th character or 6th position '0'(this for the 1st transaction in a Day)
2nd time data for the same field length is 5 digit(this is the 2nd transaction in the same day.this can be many times)
End of the day the last transaction always the same field length should be 6 digit and end of the digit always 1.when the last transaction is over then appended files should be merged and send to target folder.
All this transactions always same file and should append.
Could you please give some idea.
Note: with out BPM.
thanks and regards
walter stephenHi Suraj
R3 TO File using file content conversion.
1st transaction to till last transaction all the file will store in local folder.As soon as the last transaction completed then the appended file file move to target folder using command line(DOS command)
Note:
all the transaction should be the same file.
File construction mode will be append.
this not merging using partner profile.
thanks and regards
walter stephen
Maybe you are looking for
-
Import into Consolidation system failed
Hello, We are on NW04s and tryign to import ESS component and other standard components like SAP_JEE,SAP_BUILDT into the Consolidation system and import fails in between with the CBS Log as: Build number assigned: 7851 Change request state from QUEUE
-
Can not fine symbol... class SwingWorker is not working...
Hi , my code is like this. I am using netbeans ide 5.5. package concurrency; import java.util.List; import java.util.Random; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.GridBagLayout; import java.awt.GridB
-
Hi! I am new to struts and JSP! So i am developing a webapplikation with that. Now, i want a dynamic change of a form! For example: Click on add and a new textfield or a new select will be created. How can i do that? And how to solve the form.propert
-
Hi all, We have UCCX 7.0.1 product in our company, and was wondering if CUCM Silent Monitoring through the Phone's BIB (Build In Bridge) is possible from CSD. I know UCCE supports Silent Monitoring through CM BIB, but I could not find any document sa
-
I have a premiere CS5 project with HD 1920x1080p 24fps. I have (2) 45 minute timelines and I am using Encore to author my DVD. Please help me understand the best way to approach this. My first thought was to import both premiere timelines into encor