Posting A/P Invoice with date from 2008
I just cant get that straight ... please help me in finding the right way.
At the beginning of 2009 I have set the Period Index in Document Numbering Series to 2009 for all series, so people could continue to work. We are working with on numbering series for every document and I want the number to just running on.
Now, I have an Invoice dated from 28.12.2008. So, I set (unfortunately have to, every time) the posting period to 12/08. After that, I can not open A/P invoice because of the numbering.
I then tried to add a numbering series to have one for 2008 and a new one for 2009. Still I have to set the one corresponding to the posting period to set as default and i have to change this for every posting that belongs to 2008 or 2009, forth and back.
What is the correct way to do this?
It can't be that every time an invoice from 2008 has to be posted, the posting period and the numbering series have to be changed to 2008, and back to 2009 afterwards.
It's unhandy enough that everytime after a change of month, the posting period has to be changed back and forth in administrative settings (and cant be easily selected right from the current module, i.e. A/P invoice).
Needing to change the numbering system as well even locks out other users from posing to the current period for the time of the change back.
Any hints highly appreciated.
Thanks
Franz
Hello Franz,
The quickest way to limit your issue is the following:
- keep the same posting indicator when the posting period changes
- use the same series
Obviously, I do not know if this is legally acceptable in your country.
This scenario will require the user to change the Current Period back and fro if they need to add new documents in the previous period.
I am sorry but this is what I can suggest. I know it could be time consuming, but it will avoid mistakes.
Kind Regards,
Marcella Rivi
SAP Business One Forums Team
Similar Messages
-
Work with data from a table of another SAP R/3 system
Hi,
I want to work with data from a table of another system. I know there's a function called 'RFC_READ_TABLE' but I don't know really how it works. What I want to do is to get data from that system and pass it to the one where I'm working in order I can continue working with this data in the report.
Besides, I'd like to select only the records that have some conditions.
I'd appreciate if someone could tell how to do it, whether with FM 'RFC_READ_TABLE' or in another way.
Thanks in advance,
Gerard
P.S: The systems are already connected in SM59Yes, you can use RFC_read_table .You can pass the number of columns but I recommend you to bring all results in your internal table after that you can filter the records. Most of the time I have notice when you make RFC call with this FM to another system it works but it may also happen that other system controlling authorization and then it might give you nothing. As I face this problem on my last Project.
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
Prepopulating PDF Fillable Forms with data from XML files
How can I get a PDF fillable form to open pre-populated with data from an XML file automatically? I've been using Adobe Standard 9.0 and am willing to upgrade in a modest fashion if necessary. I am aware of the Navigation method > Forms > Manage Form Data > Import Data. This works fine, however, my users are not smart enough to do tis much clicking and selecting. Is there an automated way to have this XML data merged into the PDF file on the fly. These files will reside on an internal local area network and will be operated on local PC's that will probably have Acrobat Reader ONLY. I have been told that the only way to accomplish this is through Java Scripting. I would prefer to do this the 'old fashioned' way of command line switches, but that does not appear to be an option. Does anyone have a sample Javascript that would accomplish what I am trying to achieve. Any help would be greatly appreciated.
Hi Sharon
The easiest way is:
- Open your PDF form within Acrobat
- From the File menu, import the XML form data into the form
- From the File menu, use Save As... to save the file with a new name.
The new PDF will be identical to the original one, but will have the data embedded in it. Voila.
If you want the same form to pre-populate with different XML files depending on the circumstances, or if you're generating the XML on the fly, then things get more complicated. (And more expensive.) As your consultant said, LiveCycle Forms is one option, but it is expensive (actually even more than 10K). There are other options, including Cold Fusion, custom servlets, etc.
Howard
http://www.avoka.com -
Make readonly pdf with data from forms
Hi there,
I really appriciate any help on this issue...
I am not able to make read only file with data from the fillable pdf forms.
Requirement is my client need some form where they can enter some data and make a read only file from those forms and send them to their clients.
So I made fillable form in acrobat and send them, they will use reader to fill up the form but I dont know how to save those file with data so it will become just a document.
is there any way ?
Thanks....
-M.I am soory I am slow...
I made form file in acrobat... but after that my client is going to use reader and enter data to this forms and saves it. and then my client is going to send them to their customers.
So I shall use reader code and make all fields read only right ?
In this case I have to make a button and run this code on submit ?
Thanks.
-M. -
How do I replace data on my PC with data from iCloud?
How do I replace data on my PC with data from iCloud?
This long article covers all types of transfers, including moving to a new computer: http://www.ilounge.com/index.php/articles/comments/moving-your-itunes-library-to -a-new-hard-drive
-
PDF Creation with data from SAP system
Hi All,
I need to generate a PDF file using Adobe Document Service. The content of the PDF can be from any datasource (Oracle/ BW/ R3 ), So I require Webdynpro code for pdf creation with data from any of the systemHi Deepak,
Before starting the code just like that,make sure u have configured all services in Visual Administrator.
U can refer this:
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/95/5a08cd0e274a0bae559622d6670722/frameset.htm">Configuration Guide</a>
regards
Sumit -
Output triggred in the invoice with Date/Time 1
Output triggred in the invoice with Date/Time as 1 i e Send with periodically scheduled job.
So could you let me know when this gets triggeed if we maintain 1 in condition record?
Thanks,
PraveenHi Praveen,
When you maintain 1in the Date/Time column in the Condition Records for O/P of say the Invoice it means that you are telling the system to send the O/P with periodically scheduled job.
To achieve this you must use the report program RSNAST00.The message is processed through report program RSNAST00. This report program can be scheduled periodically or started manually.
For scheduling periodically you need to set up a batch process in SM35.
Hope this helps,
J Nagesh -
Trying to populate a table with data from WebRowset
Hi,
I want to be able to populate my tables with data from WebRowsets that have been saved to files. Everything goes good until I get to acceptChanges(). At which point I get a NullPointerException.
Here's the code...
WebRowSet wrs = new WebRowSetImpl();
FileReader reader = new FileReader(inputFile);
wrs.readXml(reader);
wrs.beforeFirst();
CachedRowSet crs = new CachedRowSetImpl();
crs.setSyncProvider("com.sun.rowset.providers.RIXMLProvider");
crs.populate(wrs);
crs.beforeFirst();
crs.acceptChanges(con);
Results in...
java.lang.NullPointerException
at com.sun.rowset.CachedRowSetImpl.acceptChanges(CachedRowSetImpl.java:867)
at com.sun.rowset.CachedRowSetImpl.acceptChanges(CachedRowSetImpl.java:919)
I'm using Java 1.5_02. I looked at the source code for CachedRowSetImpl, and the only thing I could think of is that maybe "provider.getRowSetWriter()" in the following snippet is returning null....
public void setSyncProvider(String s)
throws SQLException
provider = SyncFactory.getInstance(s);
rowSetReader = provider.getRowSetReader();
rowSetWriter = (TransactionalWriter)provider.getRowSetWriter();
Any ideas?? Thanks!I have the same problem after setting com.sun.rowset.providers.RIXMLProvider.
Looks like a bug to me.
By the way, why are you creating a new CachedRowSet and populate it with a WebRowset (which extends CachedRowSet)? -
Filling dynamic internal table with data from other internal table
Hi Friends,
My problem is that i have already built a dynamic internal table
(class int_table->create) but now i want to fill it with data from other internal table.
The dynamic table column name and the field value of the data filled internal table are same, but how to access that column name, since i cant hard code it anyway.
Like if my werks field value is '8001'. I want to place it under the column 8001 of dynamic table, Can anybody help me in this regard?
Awarding points is not a problem for even giving a slight hint.
Best RegardsHi
See this
Dynamic internal table is internal table that we create on the fly with flexible column numbers.
For sample code, please look at this code tutorial. Hopefully it can help you
Check this link:
http://www.****************/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm
Sample code:
DATA: l_cnt(2) TYPE n,
l_cnt1(3) TYPE n,
l_nam(12),
l_con(18) TYPE c,
l_con1(18) TYPE c,
lf_mat TYPE matnr.
SORT it_bom_expl BY bom_comp bom_mat level.
CLEAR: l_cnt1, <fs_dyn_wa>.
Looping the component internal table
LOOP AT it_bom_expl INTO gf_it_bom_expl.
CLEAR: l_cnt1.
AT NEW bom_comp.
CLEAR: l_cnt, <fs_dyn_wa>, lf_mat.
For every new bom component the material data is moved to
temp material table which will be used for assigning the levels
checking the count
it_mat_temp[] = it_mat[].
Component data is been assigned to the field symbol which is checked
against the field of dynamic internal table and the value of the
component number is been passed to the dynamic internal table field
value.
ASSIGN COMPONENT c_comp_list OF STRUCTURE <fs_dyn_wa> TO
<fs_check>.
<fs_check> = gf_it_bom_expl-bom_comp.
ENDAT.
AT NEW bom_mat.
CLEAR l_con.
ENDAT.
lf_mat = gf_it_bom_expl-bom_mat.
Looping the temp internal table and looping the dynamic internal table
*by reading line by line into workarea, the materialxxn is been assigned
to field symbol which will be checked and used.
LOOP AT it_mat_temp.
l_nam = c_mat.
l_cnt1 = l_cnt1 + 1.
CONCATENATE l_nam l_cnt1 INTO l_nam.
LOOP AT <fs_dyn_table2> ASSIGNING <fs_dyn_wa2>.
ASSIGN COMPONENT l_nam OF STRUCTURE <fs_dyn_wa2> TO <fs_xy>.
ENDLOOP.
IF <fs_xy> = lf_mat.
CLEAR lf_mat.
l_con1 = l_con.
ENDIF.
Checking whether the material exists for a component and if so it is
been assigned to the field symbol which is checked against the field
of dynamic internal table and the level of the component number
against material is been passed to the dynamic internal table field
value.
IF <fs_xy> = gf_it_bom_expl-bom_mat.
ASSIGN COMPONENT l_nam OF STRUCTURE <fs_dyn_wa> TO <fs_check>.
CLEAR l_con.
MOVE gf_it_bom_expl-level TO l_con.
CONCATENATE c_val_l l_con INTO l_con.
CONDENSE l_con NO-GAPS.
IF l_con1 NE space.
CONCATENATE l_con1 l_con INTO l_con SEPARATED BY c_comma.
CLEAR l_con1.
l_cnt = l_cnt - 1.
ENDIF.
<fs_check> = l_con.
l_cnt = l_cnt + 1.
ENDIF.
ENDLOOP.
AT END OF bom_comp.
At end of every new bom component the count is moved to the field
symbol which is checked against the field of dynamic internal table
and the count is been passed to the dynamic internal table field
value.
ASSIGN COMPONENT c_count OF STRUCTURE <fs_dyn_wa> TO <fs_check>.
<fs_check> = l_cnt.
INSERT <fs_dyn_wa> INTO TABLE <fs_dyn_table>.
ENDAT.
ENDLOOP.
Reward if useful
Anji -
Load Grid with data from System.Data.DataTable
Hi all.
A have a System.Data.DataTable e need load a grid with data from this DataTable.
How Load a Grid with data from System.Data.DataTable?Hi Francisco,
actually i don't think that you can use a .NET datatable to fill a business one grid.
the business one has it's own datatable.
in c# it would look like this:
oForm.DataSources.DataTables.Add("MyDataTable");
((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).DataTable = oForm.DataSources.DataTables.Item("MyDataTable");
oForm.DataSources.DataTables.Item(0).ExecuteQuery("SELECT Field FROM [dbname].dbo.TABLE");
((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).CollapseLevel = 1;
((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).AutoResizeColumns();
((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single;
good night
lg David -
To populate dynamically created int table with data from other table
Hi everybody,
I have already created an internal table dynamically, but now want to populate it with data from another IT depending on the plant name.
My dynamic int table contains fields with plant name like '8001' ,'8002' and so on.
no I want to read data from the other table and depending on bwkey which contains similar data like plant name , want to append to this new dynamic int table through read key statement.
I cannot reference the field name hard coded as it does not allow field symbol reference to be hard coded.
Pls help.Hi,
Check the code below:
REPORT ztestdyn.
TYPE-POOLS : slis.
TABLES: yyle0003.
DATA:
g_exit TYPE c,
g_save VALUE 'A', "For parameter I_SAVE
g_repid LIKE sy-repid, "For program name
g_variant TYPE disvariant. "For parameter IS_VARIANT
*Tables
DATA: d_ref TYPE REF TO data,
d_ref1 TYPE REF TO data,
i_alv_cat1 TYPE TABLE OF lvc_s_fcat,
ls_alv_cat1 LIKE LINE OF i_alv_cat1.
DATA: BEGIN OF total_tab OCCURS 0 ,
tknum TYPE yyle0003-tknum,
quantity TYPE p, "yyle0003-QUANTITY,
END OF total_tab.
DATA: BEGIN OF g_scandata_tab OCCURS 0.
INCLUDE STRUCTURE yyle0003.
DATA: END OF g_scandata_tab.
DATA: g_yyle0003_tab LIKE yyle0003 OCCURS 0 WITH HEADER LINE.
DATA: g_itab1 TYPE TABLE OF yyle0003.
DATA: wa_itab1 LIKE g_scandata_tab.
TYPES: BEGIN OF itab2,
tknum TYPE yyle0003-tknum,
vhilm TYPE yyle0003-vhilm,
quantity TYPE p,
END OF itab2.
DATA: g_itab3 TYPE TABLE OF itab2.
DATA: wa_itab3 TYPE itab2.
DATA: g_itab5 TYPE TABLE OF itab2.
DATA: wa_itab5 TYPE itab2.
DATA: g_itab4 TYPE TABLE OF itab2.
DATA: wa_itab4 TYPE itab2.
DATA: gv_wa TYPE REF TO data.
DATA : wa_tab TYPE itab2.
DATA: BEGIN OF itab6 OCCURS 0,
vhilm TYPE yyle0003-vhilm,
quantity TYPE p,
END OF itab6.
******************Start of Internal Table Definition *******************
DATA:
g_custom_container_0100 TYPE REF TO cl_gui_custom_container,
g_alv_grid_0100 TYPE REF TO cl_gui_alv_grid,
g_container_0100 TYPE scrfname VALUE 'LIST',
g_mylayout TYPE lvc_s_layo,
ok_code LIKE sy-ucomm.
FIELD-SYMBOLS :<f_fs> TYPE table,
<f_fs11> TYPE table,
<f_fs1> TYPE table,
<f_fs3> TYPE ANY,
<f_fs4> TYPE ANY,
<f_field> TYPE ANY,
<f_fs5> TYPE ANY.
FIELD-SYMBOLS: <fs_wa> TYPE ANY.
DATA: l_var TYPE i,
l_i TYPE i.
DATA: l_var1 TYPE char20,
l_var2 TYPE char20.
DATA: l_TOTAL TYPE I,
L_FILL TYPE i,
L_TOT TYPE I.
DATA: l_int TYPE i,
l_sum TYPE i.
FIELD-SYMBOLS: <f_fs2> TYPE itab2, "
<f_fs6> TYPE ANY,
<f_fs7> TYPE ANY.
DATA: l_var3 TYPE char15.
DATA: l_quant TYPE p.
FIELD-SYMBOLS: <f_fs8> LIKE itab6, "
<f_fs9> TYPE ANY,
<f_fs10> TYPE ANY.
FIELD-SYMBOLS : <f_fs12> TYPE ANY,
<f_fs13> TYPE ANY.
SORT g_scandata_tab BY tknum vhilm.
LOOP AT g_scandata_tab INTO wa_itab1.
MOVE-CORRESPONDING wa_itab1 TO wa_itab3.
APPEND wa_itab3 TO g_itab3.
ENDLOOP.
LOOP AT g_itab3 INTO wa_itab3.
COLLECT wa_itab3 INTO g_itab4.
ENDLOOP.
LOOP AT g_itab4 INTO wa_itab4.
MOVE-CORRESPONDING wa_itab4 TO wa_itab5.
MOVE-CORRESPONDING wa_itab4 TO itab6.
APPEND wa_itab5 TO g_itab5.
COLLECT itab6.
ENDLOOP.
CLEAR wa_itab3.
SORT g_itab4 BY tknum vhilm.
DELETE ADJACENT DUPLICATES FROM g_itab4 COMPARING vhilm.
DESCRIBE TABLE g_itab4 LINES l_var.
l_i = '2'.
ls_alv_cat1-fieldname = 'TKNUM'.
ls_alv_cat1-col_pos = 1.
ls_alv_cat1-coltext ='ShipmentNo.'.
APPEND ls_alv_cat1 TO i_alv_cat1.
DATA: l_var4(10) TYPE c,
l_var5(10) TYPE c,
l_fieldname(20) TYPE c..
LOOP AT g_itab4 INTO wa_itab4.
IF l_var >= 1.
CONDENSE wa_itab4-vhilm NO-GAPS.
ls_alv_cat1-fieldname = wa_itab4-vhilm. "l_fieldname.
ls_alv_cat1-col_pos = l_i.
ls_alv_cat1-coltext = wa_itab4-vhilm.
ls_alv_cat1-do_sum ='X'.
APPEND ls_alv_cat1 TO i_alv_cat1.
CLEAR : ls_alv_cat1, l_fieldname.
l_i = l_i + 1.
ENDIF.
AT LAST.
ls_alv_cat1-fieldname = 'TOTAL'. "l_fieldname.
ls_alv_cat1-col_pos = l_i.
ls_alv_cat1-coltext = 'TOTAL'.
ls_alv_cat1-do_sum ='X'.
APPEND ls_alv_cat1 TO i_alv_cat1.
CLEAR : ls_alv_cat1, l_fieldname.
ENDAT.
SORT i_alv_cat1 BY fieldname.
DELETE ADJACENT DUPLICATES FROM i_alv_cat1.
ENDLOOP.
SORT i_alv_cat1 BY col_pos.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = i_alv_cat1
IMPORTING
ep_table = d_ref.
ASSIGN d_ref->* TO <f_fs>.
CREATE DATA gv_wa LIKE LINE OF <f_fs>.
ASSIGN gv_wa->* TO <fs_wa>.
DELETE ADJACENT DUPLICATES FROM <f_fs> COMPARING ALL FIELDS.
LOOP AT itab6.
CLEAR wa_itab5.
wa_itab5-tknum = 'Total'.
MOVE-CORRESPONDING itab6 TO wa_itab5.
APPEND wa_itab5 TO g_itab5.
CLEAR wa_itab5.
ENDLOOP.
DESCRIBE TABLE g_itab5 LINES L_TOT.
LOOP AT TOTAL_TAB.
L_TOTAL = L_TOTAL + total_tab-quantity.
ENDLOOP.
LOOP AT g_final ASSIGNING <f_fs2>.
ASSIGN COMPONENT 'TKNUM' OF STRUCTURE <f_fs2> TO <f_fs6>.
ASSIGN COMPONENT 'TKNUM' OF STRUCTURE <fs_wa> TO <f_fs7>.
<f_fs7> = <f_fs6>.
CONDENSE <f_fs2>-vhilm NO-GAPS.
ASSIGN COMPONENT 'VHILM' OF STRUCTURE <f_fs2> TO <f_fs3>.
ASSIGN COMPONENT 3 OF STRUCTURE <f_fs2> TO <f_fs4>.
MOVE <f_fs3> TO l_var1.
ASSIGN COMPONENT l_var1 OF STRUCTURE <fs_wa> TO <f_fs5>.
<f_fs5> = <f_fs4>.
CLEAR total_tab-quantity.
READ TABLE total_tab WITH KEY tknum = <f_fs6>.
IF sy-subrc = 0.
ASSIGN total_tab-quantity TO <f_fs12>.
ASSIGN COMPONENT 'TOTAL' OF STRUCTURE <fs_wa> TO <f_fs13>.
<f_fs13> = <f_fs12>.
ENDIF.
L_FILL = L_FILL + 1.
IF L_FILL = L_TOT.
ASSIGN L_TOTAL TO <f_fs12>.
ASSIGN COMPONENT 'TOTAL' OF STRUCTURE <fs_wa> TO <f_fs13>.
<f_fs13> = <f_fs12>.
ENDIF.
AT END OF <f_fs2>-tknum.
APPEND <fs_wa> TO <f_fs>.
CLEAR <fs_wa>.
ENDAT.
ENDLOOP.
CLEAR: <f_fs6>,
<f_fs7>.
CLEAR <fs_wa>.
CALL SCREEN 0100.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'ZVKS'.
SET TITLEBAR 'ZVKS'.
CHECK sy-ucomm IS INITIAL.
SORT g_scandata_tab BY tknum vhilm.
CREATE OBJECT g_custom_container_0100
EXPORTING container_name = g_container_0100
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
CREATE OBJECT g_alv_grid_0100
EXPORTING i_parent = g_custom_container_0100.
g_mylayout-grid_title = 'Display Scanning data'.
CALL METHOD g_alv_grid_0100->set_table_for_first_display
CHANGING
it_outtab = <f_fs>
it_fieldcatalog = i_alv_cat1
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
Regards
Kannaiah -
How export one table along with data from one location to other location
Hi All,
I'm new in export/import practice.
Can anyone plz tell the steps along with commands to do the following:
1. I want to export a table with data from one location(computer) to other(computer) that are in same network.
2.Also from one user to another user.
I'm using oracle 10g.
regards
Sonia
Edited by: 983040 on Feb 19, 2013 11:35 PMFirst of all read documentation
Oracle Export/Import : http://docs.oracle.com/cd/B19306_01/server.102/b14215/exp_imp.htm
Datapump Export/Import : http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_overview.htm
If you are using Datapump or Traditional Export/import you need to follow following steps
*1) Take User dump via EXPDP on Computer A .*
For EXP
exp username/password owner=Test file=D:\test.dmp log=D:\test.log
For EXPDP
expdp username/password schemas=TEST directory=TEST_DIR dumpfile=TEST.dmp logfile=TEST.log*2) Copy that to Computer B*
*3) Import dumpfile.*
For IMPDP Use remap_schema optionhttp://www.acehints.com/2012/05/data-pump-impdp-remapschema-parameter.html
For IMP use fromuser and touser option
one user to another user imp -
Prepopulating PDF forms with data from XML file
How can I get a PDF form to open pre-populated with data from an XML file automatically? I've been using Adobe LifeCycle Designer 8.0 and there doesn't seem to be a way to do it. The closest I came was to use the ImportData method, but that only lets you specify a data file if the form is signed (certified), which these aren't and don't need to be because we're using them on an internal company web page. ImportData works if there is no file name, but then the user has to navigate to and select the correct file, which we can't rely on our users to do.
I've researched this problem for days on this and other websites and haven't found an answer (one Adobe advisor suggested purchasing LifeCycle Forms, which is not an option because it's a $10,000 software package and the company wouldn't authorize a purchase that steep). We will buy a less-expensive option if there is one. We'll even hire a consultant if we can find one to who can design a supportable solution. All suggestions will be much appreciated.Hi Sharon
The easiest way is:
- Open your PDF form within Acrobat
- From the File menu, import the XML form data into the form
- From the File menu, use Save As... to save the file with a new name.
The new PDF will be identical to the original one, but will have the data embedded in it. Voila.
If you want the same form to pre-populate with different XML files depending on the circumstances, or if you're generating the XML on the fly, then things get more complicated. (And more expensive.) As your consultant said, LiveCycle Forms is one option, but it is expensive (actually even more than 10K). There are other options, including Cold Fusion, custom servlets, etc.
Howard
http://www.avoka.com -
Problem populating html form fields with data from database.
I'm using a straight forward piece of code to populate a form with data from a database, to create and 'edit record' page. The code is as follows;
TO RETREVE THE DATA FROM THE DATABASE;
$query = "SELECT * FROM $table WHERE newsletter_id = '$newsletter_id'" ;
mysql_select_db($database) ;
$result = mysql_query($query, $connect);
$numRows = mysql_num_rows($result);
$dbnewsletter_title = mysql_result($result,$i,'newsletter_title');
TO POPULATE THE FORM FEILD;
<tr>
<td width="140"><p class="admin">Newsletter title</p></td>
<td><input name="newsletter_title" type="text" <? print "value=$dbnewsletter_title";}?> /></td>
</tr>
However, when I view the page, the string shows in the text feild, but seems to be split at the point of the first space. So basically only the first word of the string shows in the text field. If I try to print '$dbnewsletter_title' outside of the table, the string is shown in full as it should be.
Does anyone know what is causing this problem?
Many ThanksPut the value in quotes:
<?php print "value='$dbnewsletter_title'"; ?> -
Formatted Search with data from active window
Hi experts,
I created a FMS on the order document. To let the FMS work, i use some data from the active order window like this $[$38.1]. In this FMS i also show some data to the user. To complete my FMS, i would have to add a where statement, with the active window the custom window i show the user. If i look into the system information, following information shows up below:Form 20000034, Item =4, Pane=0, Column = Col2, Variable =1 #000006294,Col2.
Any idea's on how i can make a FMS with data from this active custom window?
Kind Regards,
FrederikHello Frederik,
Have you tried
$[$Item.Column]
$[$4.Col2]
And i want to say it is possible to pick value from other not activate form .
by using SQL syntax after add temp table.
Thanks
Manvendra Singh Niranjan
Maybe you are looking for
-
Users with read access to the site unable to view Managed Metadata Navigation
Hi everyone, I created a Managed Metadata service and created group, term-set and terms I gave read access to users I set up navigation to use Managed Navigation I am logged in as farm admin and able to view the navigation when i browse site. But use
-
I have just installed CS6 Design Std in Windows 7. The installation went through fine, but only Acrobat works. Photoshop crashes, and Illustrator loads after several error message. Even so, there is not even an option to "activate" either in Illustra
-
Problem uploading a webpage+swf
Hallo everybody, I have a tricky problem that occurs to me only recently. My flash website has the swf files embedded in two web pages index.html and studio.html. In index.html i have the intro and in studio.html all the rest. I have changed a link i
-
[CRMC_R3_ORG_GENERATE] Cannot generate Sales Areas
HI CRM experts, Can you please help us with this problem? We are trying to generate 11 Sales Areas from R3 to CRM using txn CRMC_R3_ORG_GENERATE. 6 of them were generated successfully but the other 5 were not and has a red icon under Generated column
-
Hello Everyone, Iam launching a PCUI Transaction in CRM from CRM_PCUITOOLS. for the Sales Order <b>CRMD_BUS2000115</b>. But I see the following Techinical Information on the Sceen.How can this be Suppressed. Analyze Information OIC2 Application View