Record field value control
one filed on the record with translate value, if I want the different role can see different value. what is the best way ? can I have use if and else to control the
translate value?
To control translate values in dropdown lists, you can use the ClearDropDownList and AddDropDownItem methods of the Field class. See the PeopleCode API Reference for details and examples.
Note that row-level security (by role, permission list or user) typically uses prompt tables with views to control dropdown list values. You may want to consider changing the translate edit to a prompt table edit.
Regards,
Bob
Similar Messages
-
How to reference recording fields values?
hi,
i am in the LSMW Maintain field mapping and conversion rules screen and i used the following abap coding routine to move values to a destination field :-
g_amount = VA02-KURSK + 3.
write g_amount
to VA02-KURSK decimals 2.
What i am doing above is i am adding a value of 3 to the destination structure field VA02-KURSK before writing it to the field. However when i run the convert data step of the lsmw it throws an abap run time error as "Unable to interpret "/ " as a number. " in the first line of the above code.
Can someone pls tell me how to fix this?You've posted to the VB.Net forum which is for Windows Forms applications and service and general Visual Basic topics. Since this is LightSwitch it is outside of our bailiwick (the first error about the messagebox shouldn't appear in windows forms).
I'm going to move this to the LightSwitch forum were you should be able to get more appropriate help.
Reed Kimble - "When you do things right, people won't be sure you've done anything at all" -
Is it possible to change the VBAP-ADRNR item address field value?
Hi,
Is it possible to update the VBAP-ADRNR item record field value?
I am trying to update this field value from BAPI_SALESORDER_CHANGE but it is not changing the value.
I am only able to change the corresponding address for that address number.
But I need to change the address number( I want to replace with header address number) itself.
If any ideas please let me know.
Thanks,
Mohan.ajitabap wrote:
Hi
>
> Schedule Lines related Data USING BAPISDORDER_GETDETAILEDLIST Then Pass them to BAPI_SALESORDER_CHANGE Then It work and update the field.
>
> Regards
> AJIT
eh????
What's the relevance of schedule lines and ADRNR?
@OP: Don't. There is a reason why SAP gives out a new ADRNR. And manually changing the value of a primary/foreign key is never a good thing to do. -
Click a report button to change a report field value
Hello All,
I need to create a report where when a user clicks a report button its image changes and a field relating to that record also changes from "N" to "Y"
I had a look at this Denes's example located on this link
http://htmldb.oracle.com/pls/otn/f?p=31517:133:7078361971556070::NO
The only thing lacking here is the ability to change a record field when the user click the image.
Would it be possible to change the record field value when the function is called ?
Hope this makes sense
FrankHi Jing,
I don't think it is easy, here is a sample that allows you to choose the page size and orientation (which are different master pages), Adobe LiveCycle Designer Cookbooks by BR001: Season Planner (or Year Planner) PDF Template
It effectively defines the form against each master page and recalculates the widths and heights when the page selected is made, but I don't know of another way.
Regards
Bruce -
I see that you can control which form is used based on security roles, but can you control it based on other field values? I'd like a new record to use a different form until a given status is updated. I have a status of draft and active. So
it would be nice if I could use form1 for those in draft, form2 for those that are active. But I only see where you can control that via the security roles.
I can code all of this via JavaScript, but having the ability to use two separate forms would be nice. Is that even possible.
Best regards,
Jon Gregory RothlanderHello,
Recheck following article - http://gonzaloruizcrm.blogspot.com/2014/11/avoiding-form-reload-when-switching-crm.html
Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
My blog -
New record default field value: same as current
Hi, OTN
A want to set a default value of a new record field, created by ADF Form. This field is not editable and shouldn't be shown at all.
New value should be the same as current.
The form is exposing an updatable detail View object based on two entity objects (only one of them is updatable).
How is it done? Please, advice.
ThanksYou are almost right, Sireesha.
This field really is a foreign key. But VO is built on three entity objects and is linked with a MasterVO using another key.
The model is (see model screenshot in the next message):
table1 ( id_one\[pk\] ) \--* table2 ( id_one\[fk\], id_three\[fk\]) \*-- table3 ( id_three\[pk\] ) --* table4 ( id_four\[pk\], id_three\[fk\] )
Hope the model is understandable.
MasterVO is build on table1.
DetailVO is build on tables 2, 3, 4. Only table4EO is updatable.
DetailVO is linked with MasterVO through table2.id_one.
I need to insert a row into table4, using DetailVO. So when I click Create, I want table4.id_three to be the same as table3.id_three. -
Search help for a field in table control based on another field value
Hi,
I want to attach the Search help for a field in table control based on another field value.
Please help me asap.
Will be highly rewardedHI,..
Check these links
search help in table control
Re: How to create Search Help for a field in Table control !!
How to create Search Help for a field in Table control !!
F4 Help In Table Control
Control table F4 help
Problem in F4 help in screen field
check this code
DATA: BEGIN OF it_value4 OCCURS 0,
TEXTCODE LIKE ZXX-TEXTCODE,
TEXTDESC LIKE ZXX-TEXTDESC,
END OF it_value4.
progname = sy-repid.
dynnum = sy-dynnr.
SELECT TEXTCODE TEXTDESC
FROM xxxx
INTO CORRESPONDING FIELDS OF TABLE<b> it_value4</b>
WHERE LOSS_CODE =<b> IT_VALUE1 .</b>
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'TEXTCODE'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'ITVALUE-TEXTCODE' "-->UR 4 th filed value in screen
value_org = 'S'
TABLES
value_tab = it_value4.
endmodule.
Message was edited by:
veereshbabu ponnada -
Update Record Field if Value Not Equal
Hello All,
I am using Toad for Oracle 10. I have a MERGE INTO Process that updates tbl_requisition based on FK - fk_allotment_id that equals parent table tbl_allotment PK - pk_allotment_id. Both tables have create, update and deletes triggers. The process is executed when a Apply Changes/update button is clicked from tbl_allotment. So, all the record data from tbl_allotment updates tbl_requisition record if the fk and pk keys are equal. My problem is if a record is updated within tbl_requisition. Now the record from tbl_requisition is different from tbl_allotment. If any value is updated from tbl_allotment for the matching pk_allotment_id = fk_allotment_id record from tbl_requisition. tbl_allotment record data will override the updated value within tbl_requisition. I would like to only update the values that were updated/changed and are not equal from tbl_allotment to tbl_requisition. Can anyone assist me with this?
Begin
MERGE INTO tbl_requisition req
USING tbl_allotment alt
ON (req.fk_allotment_id = alt.pk_allotment_id)
WHEN MATCHED THEN
UPDATE SET
req.FK_JOBCODE_ID = alt.FK_JOBCODE_ID,
req.FK_JOBCODE_DESCR = alt.FK_JOBCODE_DESCR,
req.FK_JOBCODE_PAYRANGE = alt.FK_JOBCODE_PAYRANGE,
req.FK_PAY_RANGE_LOW_YEARLY = alt.FK_PAY_RANGE_LOW_YEARLY,
req.FK_DEPARTMENT_ID = alt.FK_DEPARTMENT_ID,
req.FK_DIVISION_ID = alt.FK_DIVISION_ID,
req.FK_NUMBER_OF_POSITIONS = alt.NUMBER_OF_POSITIONS,
req.FK_DEPARTMENT_NAME = alt.FK_DEPARTMENT_NAME,
req.FK_DIVISION_NAME = alt.FK_DIVISION_NAME,
req.REPORT_UNDER = alt.REPORT_UNDER;
EXCEPTION
WHEN NO_DATA_FOUND THEN
dbms_output.put_line('No data found');
End; Thanks for reading this thread and I hope someone can provide some assistance. If the create tables or anything is needed that is not a problem to provide.Thanks for responding Frank and providing the EXCEPTION information also. Here are my create tables and insert statement. I changed the child table from tbl_requisition to tbl_allotment_temp, same process though.
CREATE TABLE "TBL_ALLOTMENT"
( "PK_ALLOTMENT_ID" NUMBER,
"FK_DEPARTMENT_ID" VARCHAR2(5),
"FK_DIVISION_ID" VARCHAR2(100),
"FK_JOBCODE_ID" NUMBER,
"FK_JOBCODE_DESCR" VARCHAR2(100),
"FK_JOBCODE_PAYRANGE" NUMBER(*,0),
"FK_PAY_RANGE_LOW_YEARLY" NUMBER(*,0),
"NUMBER_OF_POSITIONS" NUMBER,
CONSTRAINT "PK_ALLOTMENT_ID" PRIMARY KEY ("PK_ALLOTMENT_ID") ENABLE
CREATE TABLE "TBL_ALLOTMENT_TEMP"
( "PK_ALLOTMENT_TEMP_ID" NUMBER,
"FK_DEPARTMENT_ID" VARCHAR2(5),
"FK_DIVISION_ID" VARCHAR2(100),
"FK_JOBCODE_ID" NUMBER,
"FK_JOBCODE_DESCR" VARCHAR2(100),
"FK_JOBCODE_PAYRANGE" NUMBER(*,0),
"FK_PAY_RANGE_LOW_YEARLY" NUMBER(*,0),
"NUMBER_OF_POSITIONS" NUMBER,
CONSTRAINT "PK_ALLOTMENT_TEMP_ID" PRIMARY KEY ("PK_ALLOTMENT_TEMP_ID") ENABLE
INSERT INTO tbl_allotment
(FK_DEPARTMENT_ID, FK_DIVISION_ID, FK_JOBCODE_ID, FK_JOBCODE_DESCR,
FK_JOBCODE_PAYRANGE, FK_PAY_RANGE_LOW_YEARLY, NUMBER_OF_POSITIONS)
values
(00002, 0000220000, 100408, 'Revenue Analyst',
2210, 38389, 5);Once data is created for tbl_allotment, this insert statement inserts the data to tbl_allotment_temp.
INSERT INTO tbl_allotment_temp(
PK_ALLOTMENT_TEMP_ID,
FK_JOBCODE_ID,
FK_JOBCODE_DESCR,
FK_JOBCODE_PAYRANGE,
FK_PAY_RANGE_LOW_YEARLY,
FK_DEPARTMENT_ID,
FK_DIVISION_ID,
NUMBER_OF_POSITIONS)
VALUES (
:P3_PK_ALLOTMENT_ID,
:P3_FK_JOBCODE_ID,
:P3_FK_JOBCODE_DESCR,
:P3_FK_JOBCODE_PAYRANGE,
:P3_FK_PAY_RANGE_LOW_YEARLY,
:P3_FK_DEPARTMENT_ID,
:P3_FK_DIVISION_ID,
:P3_NUMBER_OF_POSITIONS);Once any update occurs to tbl_allotment, this process updates tbl_allotment_temp based on temp.pk_allotment_temp_id = alt.pk_allotment_id.
Begin
MERGE INTO tbl_allotment_temp temp
USING tbl_allotment alt
ON (temp.pk_allotment_temp_id = alt.pk_allotment_id)
WHEN MATCHED THEN
UPDATE SET
temp.FK_DEPARTMENT_ID = NVL (alt.FK_DEPARTMENT_ID, temp.FK_DEPARTMENT_ID),
temp.FK_DIVISION_ID = NVL (alt.FK_DIVISION_ID, temp.FK_DIVISION_ID),
temp.FK_JOBCODE_ID = NVL (alt.FK_JOBCODE_ID, temp.FK_JOBCODE_ID),
temp.FK_JOBCODE_DESCR = NVL (alt.FK_JOBCODE_DESCR, temp.FK_JOBCODE_DESCR),
temp.FK_JOBCODE_PAYRANGE = NVL (alt.FK_JOBCODE_PAYRANGE, temp.FK_JOBCODE_PAYRANGE),
temp.FK_PAY_RANGE_LOW_YEARLY = NVL (alt.FK_PAY_RANGE_LOW_YEARLY, temp.FK_PAY_RANGE_LOW_YEARLY),
temp.NUMBER_OF_POSITIONS = NVL (alt.NUMBER_OF_POSITIONS, temp.NUMBER_OF_POSITIONS);
End;Once the data is created within tbl_allotment the data is also inserted within tbl_allotment_temp. If tbl_allotment_temp.NUMBER_OF_POSITIONS value is changed from 5 to 10 is fine. The problem is when a update occurs within tbl_allotment and the updated field is not NUMBER_OF_POSITIONS. The changed field values from tbl_allotment should only update the field data within tbl_allotment_temp.
UPDATE tbl_allotment_temp
SET
NUMBER_OF_POSITIONS = 10
UPDATE tbl_allotment
SET
FK_JOBCODE_DESCR = 'Revenue Test'Now within tbl_allotment_temp only field FK_JOBCODE_DESCR should be updated to Revenue Test but my MERGE INTO process will update all the field values. So the updated NUMBER_OF_POSITIONS value 10 will now be 5. I would only like to update any changed value from tbl_allotment to tbl_allotment_temp. If any record value from tbl_allotment_temp was changed that value should not be updated from the MERGE INTO Process within tbl_allotment unless those values have been updated within tbl_allotment. Let me know if this is not clear so I can clarity more Frank.
Edited by: Charles A on Aug 29, 2011 8:41 AM -
Table Control: make a field editable or not based on another field value
HI All,
How to make a column field input enabled or disabled based on another field value in a Table Control.
Here's the scenario:
I have a table control with two columns, KTOKK and LIFNR. Now for certain KTOKK, the LIFNR field should be editable and for certain KTOKK it should not be editable.
Eg., KTOKK = 0001 => LIFNR field is not editable.
KTOKK = ZKTO => LIFNR field is editable.
But these fields are in a table control.
Please advice.
Thanks in advance,
RK.Hi RK,
Go through the below link..
how to make special field editable or diseditable in table control?
the code mentioned in the link.. just add ur conditions in the module....
Best Regards,
Brijesh -
How can I get the previous record's field value in a VO
Hi I would like to know how can I get the previous record's field value in a VO
For example : I have a VO porequisitionlinesvoimpl, and it contains 5 records (porequisitionlinesvoimpl.getRowCount() = 5). How can I search all records in the VO and get the field (attribute3) for all records?
Many thanks anyone can help
LawrenceHi ,
U can loop through the VO to get the value of attribute3,
need to extend the controller ,use below code
OAViewObject vo = (OAViewObject)oawebbean.getApplicationModule (VO1);
OARow row = null;
int fetchedRowCount = vo.getFetchedRowCount();
RowSetIterator Iter = vo.createRowSetIterator("Iter");
if (fetchedRowCount > 0)
Iter .setRangeStart(0);
Iter .setRangeSize(fetchedRowCount);
for (int i = 0; i < fetchedRowCount; i++)
row = (OARow)Iter .getRowAtRangeIndex(i);
String value = (String)row.getAttribute("Atrribute3");
Thanks
Pratap -
Dynamic field value in Sales order item table control
Hi
I need to find the VBAP-VKAUS (Usage indicator) field value in run time of the creation of sale order ...these values stored in the table TVLV.
when i debug the program SAPMV45A in the screen 4900 this VBAP-VKAUS value gets empty in structure VBAP even though i can see other values like MATNR etc...
this field is configurable (dynamic) field and not appear for all the ordertypes.
i need to pass this VBAP-VKAUS value to KOMPD-VKAUS
Thru user-exit..so please let me know if somebody knows how to find this VBAP-VKAUS value.
Thanks in advance
Madihi,
Plz Check the struc KOMP/KOMK. Let me know, if this helped.
Rgds,
Raghu. -
How to update field values in a database table using module pool prg?
hi
how to update field values in a database table using module pool prg?
we created a customized table, and we put 2 push buttons in screen painter update and display.
but update is not working?
data is enter into screen fields and to internal table, but it is not updated in database table.
thanks in adv
vidyaHI,
we already used the update statement. but its not working.
plz check this.
*& Module Pool ZCUST_CALL_REC
PROGRAM ZCUST_CALL_REC.
TABLES: ZCUST_CALL_REC,ZREMARKS.
data: v_kun_low like ZCUST_CALL_REC-kunnr ,
v_kun_high like ZCUST_CALL_REC-kunnr,
v_bud_low like ZCUST_CALL_REC-budat,
v_bud_high like ZCUST_CALL_REC-budat.
ranges r_kunnr for ZCUST_CALL_REC-kunnr .
ranges r_budat for zcust_call_rec-budat.
DATA: ITAB TYPE STANDARD TABLE OF ZCUST_CALL_REC WITH HEADER LINE,
JTAB TYPE STANDARD TABLE OF ZREMARKS WITH HEADER LINE.
*data:begin of itab occurs 0,
MANDT LIKE ZCUST_CALL_REC-MANDT,
kunnr like ZCUST_CALL_REC-kunnr,
budat like ZCUST_CALL_REC-budat,
code like ZCUST_CALL_REC-code,
remarks like ZCUST_CALL_REC-remarks,
end of itab.
*data:begin of Jtab occurs 0,
MANDT LIKE ZCUST_CALL_REC-MANDT,
kunnr like ZCUST_CALL_REC-kunnr,
budat like ZCUST_CALL_REC-budat,
code like ZCUST_CALL_REC-code,
remarks like ZCUST_CALL_REC-remarks,
end of Jtab.
CONTROLS:vcontrol TYPE TABLEVIEW USING SCREEN '9001'.
CONTROLS:vcontrol1 TYPE TABLEVIEW USING SCREEN '9002'.
*start-of-selection.
*& Module USER_COMMAND_9000 INPUT
text
MODULE USER_COMMAND_9000 INPUT.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
SET SCREEN 0.
LEAVE SCREEN.
CLEAR sy-ucomm.
WHEN 'ENQUIRY'.
perform multiple_selection.
perform append_CUSTOMER_code.
PERFORM SELECT_DATA.
call screen '9001'.
WHEN 'UPDATE'.
perform append_CUSTOMER_code.
PERFORM SELECT_DATA.
call screen '9002'.
perform update on commit.
WHEN 'DELETE'.
perform append_CUSTOMER_code.
PERFORM SELECT_DATA.
call screen '9002'.
ENDCASE.
ENDMODULE. " USER_COMMAND_9000 INPUT
*& Module STATUS_9000 OUTPUT
text
MODULE STATUS_9000 OUTPUT.
SET PF-STATUS 'ZCUSTOMER'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_9000 OUTPUT
*& Module USER_COMMAND_9001 INPUT
text
MODULE USER_COMMAND_9001 INPUT.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
SET SCREEN 0.
LEAVE SCREEN.
CLEAR sy-ucomm.
endcase.
ENDMODULE. " USER_COMMAND_9001 INPUT
*& Module STATUS_9001 OUTPUT
text
MODULE STATUS_9001 OUTPUT.
SET PF-STATUS 'ZCUSTOMER'.
SET TITLEBAR 'xxx'.
move itab-MANDT to zcust_call_rec-MANDT.
move itab-kunnr to zcust_call_rec-kunnr.
move itab-budat to zcust_call_rec-budat.
move itab-code to zcust_call_rec-code.
move itab-remarks to zcust_call_rec-remarks.
vcontrol-lines = sy-dbcnt.
ENDMODULE. " STATUS_9001 OUTPUT
*& Module USER_COMMAND_9002 INPUT
text
module USER_COMMAND_9002 input.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
SET SCREEN 0.
LEAVE SCREEN.
CLEAR sy-ucomm.
WHEN 'UPDATE'.
perform move_data.
UPDATE ZCUST_CALL_REC FROM TABLE ITAB.
IF SY-SUBRC = 0.
MESSAGE I000(0) WITH 'RECORDS ARE UPDATED'.
ELSE.
MESSAGE E001(0) WITH 'RECORDS ARE NOT UPDATED'.
ENDIF.
WHEN 'DELETE'.
perform move_data.
DELETE ZCUST_CALL_REC FROM TABLE ITAB.
IF SY-SUBRC = 0.
MESSAGE I000(0) WITH 'RECORDS ARE DELETED'.
ELSE.
MESSAGE E001(0) WITH 'RECORDS ARE NOT DELETED'.
ENDIF.
endcase.
endmodule. " USER_COMMAND_9002 INPUT
*& Module STATUS_9002 OUTPUT
text
module STATUS_9002 output.
SET PF-STATUS 'ZCUSTOMER1'.
SET TITLEBAR 'xxx'.
endmodule. " STATUS_9002 OUTPUT
*& Module update_table OUTPUT
text
module update_table output.
move itab-MANDT to zcust_call_rec-MANDT.
move itab-kunnr to zcust_call_rec-kunnr.
move itab-budat to zcust_call_rec-budat.
move itab-code to zcust_call_rec-code.
move itab-remarks to zcust_call_rec-remarks.
vcontrol-lines = sy-dbcnt.
endmodule. " update_table OUTPUT
***Selection Data
FORM SELECT_DATA.
SELECT mandt kunnr budat code remarks FROM zcust_call_rec INTO
table itab
WHERE kunnr IN r_kunnr AND BUDAT IN R_BUDAT.
ENDFORM.
****append vendor code
FORM APPEND_CUSTOMER_CODE.
clear r_kunnr.
clear itab.
clear r_budat.
refresh r_kunnr.
refresh itab.
refresh r_kunnr.
IF r_kunnr IS INITIAL
AND NOT v_kun_low IS INITIAL
AND NOT v_kun_high IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kun_low
IMPORTING
OUTPUT = r_kunnr-low.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kun_high
IMPORTING
OUTPUT = r_kunnr-high.
r_kunnr-option = 'BT'.
r_kunnr-sign = 'I'.
append r_kunnr.
PERFORM V_BUDAT.
ELSEIF r_kunnr IS INITIAL
AND NOT v_kun_low IS INITIAL
AND v_kun_high IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kun_low
IMPORTING
OUTPUT = r_kunnr-low.
r_kunnr-SIGN = 'I'.
r_kunnr-OPTION = 'EQ'.
APPEND r_kunnr.
PERFORM V_BUDAT.
ELSEIF r_kunnr IS INITIAL
AND v_kun_low IS INITIAL
AND NOT v_kun_high IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kun_low
IMPORTING
OUTPUT = r_kunnr-low.
r_kunnr-SIGN = 'I'.
r_kunnr-OPTION = 'EQ'.
APPEND r_kunnr.
PERFORM V_BUDAT.
ELSEIF r_kunnr IS INITIAL
AND v_kun_low IS INITIAL
AND v_kun_high IS INITIAL.
IF SY-SUBRC = 0.
MESSAGE I003(0) WITH 'ENTER CUSTOMER NUMBER'.
CALL SCREEN '9000'.
ENDIF.
PERFORM V_BUDAT.
ENDIF.
ENDFORM.
FORM V_BUDAT.
IF R_BUDAT IS INITIAL
AND NOT v_BUD_low IS INITIAL
AND NOT v_BUD_high IS INITIAL.
r_budat-low = v_bud_low.
r_budat-high = v_bud_high.
r_budat-option = 'BT'.
r_budat-sign = 'I'.
append r_budat.
ELSEIF R_BUDAT IS INITIAL
AND NOT v_BUD_low IS INITIAL
AND v_BUD_high IS INITIAL.
r_budat-low = v_bud_low.
r_budat-high = v_bud_high.
r_budat-option = 'EQ'.
r_budat-sign = 'I'.
append r_budat.
ELSEIF R_BUDAT IS INITIAL
AND v_BUD_low IS INITIAL
AND NOT v_BUD_high IS INITIAL.
r_budat-HIGH = v_bud_HIGH.
r_budat-option = 'EQ'.
r_budat-sign = 'I'.
append r_budat.
ELSEIF R_BUDAT IS INITIAL
AND v_BUD_low IS INITIAL
AND v_BUD_high IS INITIAL.
IF SY-SUBRC = 0.
MESSAGE I002(0) WITH 'ENTER POSTING DATE'.
CALL SCREEN '9000'.
r_budat-low = ''.
r_budat-option = ''.
r_budat-sign = ''.
ENDIF.
ENDIF.
ENDFORM.
*& Form update
text
--> p1 text
<-- p2 text
form update .
commit work.
endform. " update
*& Form move_data
text
--> p1 text
<-- p2 text
form move_data .
clear itab.
refresh itab.
move-corresponding zcust_call_rec to itab.
MOVE ZCUST_CALL_REC-MANDT TO ITAB-MANDT.
MOVE ZCUST_CALL_REC-KUNNR TO ITAB-KUNNR.
MOVE ZCUST_CALL_REC-BUDAT TO ITAB-BUDAT.
MOVE ZCUST_CALL_REC-CODE TO ITAB-CODE.
MOVE ZCUST_CALL_REC-REMARKS TO ITAB-REMARKS.
APPEND ITAB.
delete itab where kunnr is initial.
endform. " move_data
thanks in adv
vidya -
How To Print Field Value in TOP-OF-PAGE During Line Selection.
How To Print Field Value in TOP-OF-PAGE During Line Selection when double click on field.
(If my memory serves me well (not used for long time ago)
Assign values to system fields sy-tvar0 - sy-tvar9, they will replace the placeholders "&0" through "&9" in the list headers and column headers.
TOP-OF-PAGE DURING LINE-SELECTION.
WRITE: / 'Interactive Report &3'.
WRITE record-vbeln TO sy-tvar3.
Regards,
Raymond -
Field value not getting updated in R/3
Hello Experts!!
I am facing a problem while updating a field value back in R/3.
The Syncbo is of type U01 and the field has data type char 40.
The meRepMeta.XML file has following description
Field name="DESCR1" type="C" length="40" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="modify">false</Input>
1) when i test the function module in R/3. The field value is gets updated.
2) when i create a record for the sync BO from client , i can see the field value being created on the client.
3) when i synchronize, i dont get any error or warning and get a successful message.
S 15.07.2008 12:19:09 All updates for one TOP block were successful (seq. no.=65, TOP cntr.=0000000001)
15.07.2008 12:19:09 Synchronizer UPLOADER completed successfully (mobile ID=0000002646, SyncBO=ZDBMSERORD)
I am not able to locate where is the problem
Please suggest!!
Regards,
Priya GhoshHi,
please check your maping in the create handler in MEREP_SBUILDER. Perhaps the value is created on the client but not mapped to the field of the function module. Furthermore have a look into MEREP_MON and see if the data gets forwarded in there.
At last I would dump the information received by the function module into a table without any logic. So you can see what data actually is forwarded into the funct module - if brake point i not possible.
Hope this helps.
Regards,
Oliver -
Passing a table-field value in Crystal to a Store Procedure in SQL Server
I have been checking all over the interenet via searches and although some seem to come close to this, its still not what I want.
Essentially I need to pass value from Table-Field record (for each record read/selected) via a paramete to a Stored Procedure(SP) in SQL Server 2205/2008. I do NOT want to be prompted for a value for this parameter each time the report is run, simple pass the value in which will be used along with other select criteria to bring back one value for the report to use in a calcuation per record.
The value of the parameter is a date, but I understand it would be better to pass it in as a varchar(8) - 'YYYYMMDD' - and then reconvert it inside the SP, as follows:
In Crystal Reports 2008 SP3, I have a formula defined as,
trans_date = ToText ({F1ARS_STMT_WS_TRAN.TRANS_DATEI}, 'YYYYMMDD')
and essential just want to pass this to the SP below ... i.e. trans_date ---> @strTransDate
I then link the key fields [EXCH_RATE_TABLE_NAME] and [TRANS_CCY_CODE] to other tables in the Database Expert, and put [EXCH_RATE_AMT] on the report and use it to calculate what I want.
This works fine when the prompt comes up and I put in a proper date, but I don't what it to prompt, but simple pass the F1ARS_STMT_WS_TRAN.TRANS_DATEI in via the fornula/parameter and let teh SQL do the rest for each record selected..
CREATE PROCEDURE [dbo].sp_GET_EXCH_RATE_AMT (@strTransDate varchar(8)) --use format 'YYYYMMDD' to represent the date as a string.
-- Add the parameters for the stored procedure here
-- @TransDate datetime = now
AS
declare @TransDate datetime
set @TransDate = CONVERT(DATETIME, @strTransDate, 112)
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
SELECT [EXCH_RATE_TABLE_NAME], [TRANS_CCY_CODE], [EXCH_RATE_AMT]
FROM [F1CCY_EXCH_RATE]
WHERE [MAJOR_CCY_CODE] = 'BBD'
AND [START_DATEI] =
SELECT MAX([START_DATEI])
FROM [F1CCY_EXCH_RATE]
WHERE [MAJOR_CCY_CODE] = 'BBD'
AND [START_DATEI] <= @TransDate
END
GO
GRANT EXECUTE ON sp_GET_EXCH_RATE_AMT TO PUBLIC
GO
Thanks for any help. Can't tell the headache this has caused my both literally and figuratively.Hello,
I moved your post to the Report Design forum. Lots of SQL help in here...
I believe the problem is due to you using a Parameterized Stored Procedure. The first thing CR has to do is connect to your DB source which requires the date parameter before it can run the query to add the date filter, it's the SP that is prompting for the parameter. Therefore the report has not run so it can't get the field value from the report until you fill in the info for the SP. Catch 22 problem.... Which came first, the Chicken or the Parameter....
The report will work as you have noted but I don't know of anyway to refresh unless parameter is filled in again....
Jason has a lot of great solutions when it comes to these dilemmas, Possibly using a Command Object may help but I believe you will still run into the same issue....
Only way I can think of is to not use a parameter in the SP and let CR do the filtering client side. Of course this means all data is coming back to the client PC as you are likely trying to find a work around for.
Thank you
Don
Maybe you are looking for
-
Possible to install Creative Cloud on 2 computers, with multiple OS's/Dual Boot
I'm trying to find a solution to this issue; I just faced a similar problem when activating Windows 8 via Virtual Machine on my iMac and from the actual Bootcamp partition itself. I have Creative Cloud installed on my Retina MacBook Pro and iMac. I h
-
DW CS6 Help is not installed, Mac, USA?
How can I get DW help installed? I had Dreamweaver CS4, now bought CS6, which I installed last night. There is no option for installing help but DW says it is not installed. Tried opening dreamweaver_reference.pdf online in Safari, saved the file Acr
-
Hi, We have a requirement where in we have two roles service desk role (This role should only be able to search for a user or search for a role, but should not be able to modify them) org admin role(This role should only be able to create user but no
-
Macbook won't shutdown/restart on command
Hi, I'm a graphic design student and I use Adobe products on my book. After I use adobe illustrator or really any program for a while, my macbook wont restart after I'm done. Even if I close the program and dont use anything on the computer then try
-
Change one colour for another.
Quite simply I'd like to swap one colour for another: maybe to turn all black into red and leave the rest as it is...or select greens only and make them blue. I've found various ways to adjust and alter colours but usually the entire picture is alter