Sum of the fields in SO form using Forms personalization
In sales order form, Once we enter the item and qty in a line . The qty entered should be multiplied by volume of an item avaiable in mtl_system_items_b and should be displayed in the line level DFF(attribute14). Thus we get the line level Volume
Once n number of lines are entered in SO form . The sum of line level volume should be displayed in the header level DFF(attribute14.
I am able to get the Line level volume using global variable.
Could any one please let me know is it possible to get the sum of line level volume in the header DFF using forms personalization.
My requirment is to get the "Line level volume" information in line level DFF and "order level volume" information in header level DFF of a Sales Order form.
line level volume = unit_volume*quantity
Order level Volume = sum of n number of line level volumes = line level volume of line 1.1 + line level volume of line 1.2 + line level volume of line 1.3 ......
For Example consider an item 2E00001010 item. The volume of this item is mentioned in the physical attributes of an item. we can get the volume of this item from unit_volume in mtl_system_items_b . say for example the unit_volume of this item is 20 litres.consider another item 2X000X101 and unit_volume is 15 litres.
Now in sales order in line 1.1 i have entered an item 2E00001010 and quantity as 10. In line 1.2 i have entered an item 2X000X101 and quantity as 10 and saved the sales order.
1.1 line level volume = 20*10 = 200
1.2 line level volume = 15*10 = 150
Order level volume = 200 + 150 = 350
So as according to the requirement in
1.1 line level DFF(LINE.ATTRIBUTE14) 200 should be displayed .
1.2 line level DFF(LINE.ATTRIBUTE14) 150 should be displayed.
In header level DFF(order.attribute14) 350 should be displayed.
By using below forms personalization i am able to get the Line level Volume information displayed in Line level DFF(Line.attribute14)
seq 10
description : Line Level Volume
Trigger event : when-New-Item-Instance
Trigger Object : Line.Ordered_quantity
Level : Site
Action Seq: 10
Type: Property
Object Type: Global Variable
Target Object: XX_VOL
Property Name : Value
Value = =SELECT to_char(nvl(Unit_volume,0)) from mtl_system_items_b where segment1 =:line.ordered_item_dsp and organization_id = 89
Action Seq: 20
Type: Property
Object Type:Item
Target Object: LINE.ATTRIBUTE14
Property Name: Value
Value = =to_number(:global.XX_VOL)*:line.ordered_quantity
I would be glad if any one could let me know how to get the Order level volume and get displayed in the Header level DFF(order.attribute14) using forms personalization.
Similar Messages
-
Using MS Access Web App, can you set the tab order of the fields on a form?
Using MS Access Web App, can you set the tab order of the fields on a form? Doesn't appear to be a property. I don't see a programmatic method. I saw someone suggest using goto control on the after update event trigger but what if the person
doesn't edit the field? No event would be fired.
JimHi Jim,
>>Using MS Access Web App, can you set the tab order of the fields on a form?
I am afraid you could not. In Web applications, the tab order is set automatically and cannot be changed.
(From
https://support.office.com/en-au/article/Set-the-tab-order-for-controls-3d7f749c-5a53-42b2-bb0e-2323fa044e2e)
>> I saw someone suggest using goto control on the after update event trigger but what if the person doesn't edit the field? No event would be fired.
The goto method is a workaround, but it should be triggered by a specific event. What I can figure out is changing the order of the fields.
If this is a feature you want to include in future versions of Access Web app, please submit a feedback as the picture below:
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Problem in increasing the size of the fields in predifined forms.
Hello All,
I am facing aproblem while increasing the size of a field in predefined forms.I want to increase the size of remark field from 254 character to like 400 characters in A/R Invoice form of sales A/R module.
I tried to update the related field (OINV- Comments) directly from sqlserver but its not reflecting in sSAP form and still remark field is taking 254 characters only.
Please help to how to Increase the size of the fields in predifined forms.
Please reply ASAP, its very urgent.
Regards,
Nagababu.First of all you loose support as soon as you modify any table directly from SQL Server. You should NOT change any fields since this may affect how SBO works. Just by resizing a field doesn't mean that it will get resize in the form since you still have the programming part of it.
If you have new functionality or changes of that type I would suggest to post a message to support on the partner portal and/or post a comment in the SAP B1 forum here at SDN on the forum that handles new functionalities request.
Regards,
WB
PS.- Do a search at the SDK forum and there is a post where there is a list of what you can and CAN NOT do to tables beloging to SAP B1. -
How to calculate sum of the fields in adobeforms
Hello Experts
can i know how to calculate sum of fields in the adobe form. I have few fields to be summed in total field.
RegardsHello Surendra,
Suppose you are having 4 fields and the 4th field is the TOTAL field.
Write the below Javascript on the Initialize event of TOTAL field as shown below.
Remember that if you use just "+" sign without Number() or ParseInt() function it acts like String Concatenation.
this.rawvalue = Number( this.parent.field1.rawvalue ) +
Number( this.parent.field2.rawvalue ) +
Number( this.parent.field3.rawvalue ) ;
You can also write is as shown below.
this.rawvalue = parseInt( this.parent.field1.rawvalue ) +
parseInt( this.parent.field2.rawvalue ) +
parseInt( this.parent.field3.rawvalue ) ; -
How can we sum for the field on alv grid
Dear Freinds,
I am having the field count .....in the ouput (iam using alv grid) .......which dispalys the id's which are identical .
i have scneario similar to the below in my ALV Output
ID count total
4000 3 100
100
200 Can i get count 3 also along with 200 in alv?
i am using the code as follows for count can any one please let me know.
my earlier question which i put was confusing.........so i am givin the qustion again
clear ls_fieldcat.
ls_fieldcat-col_pos = 1.
ls_fieldcat-fieldname = 'ORGUNIT'.
ls_fieldcat-seltext_l = text-015. "'Orgunit'.
ls_fieldcat-key = 'X'.
ls_fieldcat-key_sel = 'X'.
ls_fieldcat-no_out = 'X'.
append ls_fieldcat to fp_i_fieldcat.
clear ls_fieldcat.
ls_fieldcat-col_pos = 2.
ls_fieldcat-fieldname = 'COUNT'.
ls_fieldcat-seltext_l = 'H.Count'.
ls_fieldcat-outputlen = 4.
ls_fieldcat-do_sum = 'X'.
ls_fieldcat-datatype = 'NUMC'.
append ls_fieldcat to fp_i_fieldcat.
clear ls_fieldcat.
ls_fieldcat-fieldname = 'TOTAL'.
ls_fieldcat-seltext_m = 'total'.
ls_fieldcat-col_pos = 3.
ls_fieldcat-outputlen = 17.
ls_fieldcat-do_sum = 'X'.
ls_fieldcat-datatype = 'CURR'.
append ls_fieldcat to fp_i_fieldcat.
Please let me know how can do if so what is the parameter i have to change for COUNT
regards
syamalHi Shamala Kiran.
My name is also kiran.I have a develop a code for u.Actually i cant understand your code.But i know ur problem .Plz check that code.In that code i develop a subtotals and grandttotal.Plz observe the FORM "FIELD CATALOG" in that observe the NETWR FIELD and observe the FORM SORTCATALOG then ur problem will be solved.
Copy the the below code and execute that code and the result.
If u r Satisfied with the answer plz give the REWARD POINTS.
CODE:
Type Pools
TYPE-POOLS:slis.
Tables
TABLES: vbak,vbap.
Global Variable
data: w_var type i.
Global Data
DATA:it_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat TYPE slis_fieldcat_alv,
it_sortcat TYPE slis_t_sortinfo_alv,
wa_sortcat LIKE LINE OF it_sortcat.
Internal Table
data: BEGIN OF it_salesorder OCCURS 0,
vbeln LIKE vbak-vbeln, " Sales Document Number
posnr like vbap-posnr, " Sales Doc Item
netwr like vbap-netwr, " Net Value
END OF it_salesorder.
SELECT OPTIONS
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln. " Sales Document Number.
SELECTION-SCREEN END OF BLOCK b1.
Initialization
INITIALIZATION.
PERFORM initialization.
*& Form initialization
text
--> p1 text
<-- p2 text
form initialization .
s_vbeln-sign = 'I'.
s_vbeln-option = 'BT'.
s_vbeln-low = '4969'.
s_vbeln-high = '5000'.
APPEND s_vbeln.
endform. " initialization
Start Of Selection
START-OF-SELECTION.
PERFORM field_catalog. "For Structure Creation
PERFORM fetch_data. "Get the Data From DB Table
PERFORM sorting USING it_sortcat.
End Of Selection
END-OF-SELECTION.
perform display_data.
*& Form field_catalog
text
--> p1 text
<-- p2 text
form field_catalog .
wa_fieldcat-col_pos = w_var. " Column Position Variable
wa_fieldcat-tabname = 'IT_SALESORDER'. " Internal Table Name
wa_fieldcat-fieldname = 'VBELN'. " Field Name
wa_fieldcat-key = 'X'. " Blue Color
wa_fieldcat-ref_tabname = 'VBAK'. " Table Name
wa_fieldcat-ref_fieldname = 'VBELN'. " Field Name
wa_fieldcat-seltext_m = 'Sales Doc No'. " Display Text In Screen
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
ADD 1 TO w_var.
wa_fieldcat-col_pos = w_var. " Column Position Variable
wa_fieldcat-tabname = 'IT_SALESORDER'. " Internal Table Name
wa_fieldcat-fieldname = 'POSNR'. " Field Name
wa_fieldcat-ref_tabname = 'VBAP'. " Table Name
wa_fieldcat-ref_fieldname = 'POSNR'. " Field Name
wa_fieldcat-seltext_m = 'Sales Doc Item'. " Display Text In Screen
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
ADD 1 TO w_var.
wa_fieldcat-col_pos = w_var. " Column Position Variable
wa_fieldcat-tabname = 'IT_SALESORDER'. " Internal Table Name
wa_fieldcat-fieldname = 'NETWR'. " Field Name
wa_fieldcat-ref_tabname = 'VBAP'. " Table Name
wa_fieldcat-ref_fieldname = 'NETWR'. " Field Name
wa_fieldcat-do_sum = 'X'. " Sum
wa_fieldcat-seltext_m = 'Net Value'. " Display Text In Screen
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
ADD 1 TO w_var.
endform. " field_catalog
*& Form sorting
text
-->P_IT_SORTCAT text
form sorting using p_it_sortcat TYPE slis_t_sortinfo_alv.
wa_sortcat-fieldname = 'VBELN'.
wa_sortcat-up ='X'.
wa_sortcat-subtot = 'X'.
APPEND wa_sortcat TO p_it_sortcat.
endform. " sorting
*& Form display_data
text
--> p1 text
<-- p2 text
form display_data .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = it_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = it_sortcat
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_salesorder
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " display_data
*& Form fetch_data
text
--> p1 text
<-- p2 text
form fetch_data .
select a~vbeln
posnr
b~netwr
from vbak as a
inner join vbap as b on avbeln = bvbeln
into table it_salesorder
where a~vbeln in s_vbeln.
endform. " fetch_data -
Send the fields of a form with POST method
I have a form based on a table, used to insert news. The problem is that I have to send the fields of the form to another aplication when I push the INSERT button, but I have to send them using the POST method.
I tried to insert code in the event of the INSERT button to do that, but I think it uses the GET method and the other application doesn't receive anything.
Thank's.FWIW, the usual explanations in regards to this are wrong more often that they are right.
For example, the Acrobat License Agreement says nothing about emailing extended documents or posting extended documents on a web site, but rather simply deploying them.
Also, it only mentions instances of an extended document in relation to how many the licensee may extract information from if the document was deployed to more than 500 recipients and returned to the licensee.
If there are 500 or fewer recipients, the licensee may extract information from an unlimited number of instances of an extended document.
George -
Not getting all the fields of MARA by using DDIF_NAMETAB_GET
Hi,
Please to solve the below issue.
I am using the DDIF_NAMETAB_GET FM and trying to all the fields of MARA tabel but i getting only 27 records ie. 27 fields. when i look at DD03L i can 220 records but i am not sure why the output only shows 27records.
Any help is really appreciated.HI,
Chek cthis ..
Function module DDIF_NAMETAB_GET
Import parameters Value
TABNAME MARA
ALL_TYPES
LFIELDNAME
GROUP_NAMES X
UCLEN 00
Export parameters Value
X030L_WA MARA
DTELINFO_WA 00000000000000000000000000000000
TTYPINFO_WA 00000000000000000000000000000000
DDOBJTYPE TRANSP
DFIES_WA 0000000000
LINES_DESCR 22 Entries
Tables Value
X031L_TAB 0 Entries
Result: 231 Entries
DFIES_TAB 0 Entries
Result: 230 Entries -
Why can't I find the field remark when I use LSMW to create customer master
I want to create customer master data with LSMW.
Object 0050 客户主记录
Method 0000
Program Name RFBIDE00
Program Type B Batch Input
but I can't find the field 'Comments' which is in view general data -> address.
pls help me to find it.
tks!Hi,
This is quiet simple.
See when you enter your Tcode in LSMW & start recording, on the first screen where you enter the customer details to create, you see a tick below "Use central adress management"
Just tick this & record you will get comment in your recording
Hope this helps you
Regards,
Dhananjay -
How to change the property of the fields on screen while using BDC
Hello,
I am working on a program where I am using BDC call transaction method to update vendor master data using Fk02. I need to call the transaction in mode 'E'. As per the requirement I don't want user to see all the fields available on that screen. For example on Payment transactions screen I only want user to see fields like Bank key, bank number in the editable mode and rest all the fields on the screen should be greyed out.
Can you please help with how can i do this.Hi,
I think you can achieve this using transaction variant. Create a transaction variant using SHD0 and grey out the fields which you want. After that in BDC, instead of calling FK02, call the transaction variant you created. you may have to change the BDC recording a bit, but i think you can give it a try?
Do let me know if it helps you.
Regards,
Raghav. -
I have a user who is unable to edit his time sheet in Adobe Reader XI. It worked fine in Adobe Reader 9.6. I recently upgraded his reader to version XI and he lost the ability to edit the fields. I re-imaged his machine and re-did his profile. He was able to edit his time sheet. A week later he's back to where he was. He was able to go to another machine with Adobe XI and edit his time sheet but he can't do it on his normal workstation. His time sheet shows the purple bar at the top telling him to fill out the form and that he can save data typed into the form. We're running XP SP3. How can I troubleshoot this?
My guess would be keyboard related. I'm guessing the field you're trying to fill has a keystroke event allowing only certain types of character. If the keyboard is faulty OR if the keyboard's layout (English, french, numLock, capLock) have been changed, allowed character could be someplace else.
I would first verify the presence of a particular format or a keystroke event in the format tab. I would then test my layout by typing charaters in another application such as notepad. Any chance the maximum character allowed would have mistaken be set to 0?
Also, I see you mentionned:
He was able to go to another machine with Adobe XI and edit his time sheet but he can't do it on his normal workstation
By Adobe, I'm guessing you mean Reader. Is it possible the default application on this other machine is Acrobat instead? If it is the case, the problem would probably be the way the file was created and maybe it would require to enable Extended features....... -
Issue when suming the field in Select query using inner join
Hi All,
SELECT A~OI_SHNUM
A~FORWAGENT
A~ROUTE
A~SHTYP
A~DTSHP_EACT
A~/BIC/GTCLICENS
A~/BIC/GTCADD04
A~COMP_CODE
SUM( C~GRS_WGT_DL )
C~UNIT_OF_WT
INTO TABLE I_LAYONE
FROM ( ( /BIC/ANTCD000200 AS A
INNER JOIN /BIC/AGSSD000700 AS B ON BOI_SHNUM = AOI_SHNUM )
INNER JOIN /BIC/AGSSD000600 AS C ON CDELIV_NUMB = BDELIV_NUMB ).
I need to sum the field C~GRS_WGT_DL
While compiling it show the error given below
The field "C~UNIT_OF_WT" from the SELECT list is is missing in the
GROUP BY clause. is missing in the GROUP BY clause. is missing in the
GROUP BY clause. is missing in the GROUP BY clause. is missing in the
GROUP BY clause. is "C~UNIT_OF_W
with regards,
ThambeHi,
Try the following SQL statement. Hope it helps you.
SELECT A~OI_SHNUM
A~FORWAGENT
A~ROUTE
A~SHTYP
A~DTSHP_EACT
A~/BIC/GTCLICENS
A~/BIC/GTCADD04
A~COMP_CODE
SUM( C~GRS_WGT_DL )
C~UNIT_OF_WT
INTO TABLE I_LAYONE
FROM ( ( /BIC/ANTCD000200 AS A
INNER JOIN /BIC/AGSSD000700 AS B ON BOI_SHNUM = AOI_SHNUM )
INNER JOIN /BIC/AGSSD000600 AS C ON CDELIV_NUMB = BDELIV_NUMB )
GROUP BY
A~OI_SHNUM
A~FORWAGENT
A~ROUTE
A~SHTYP
A~DTSHP_EACT
A~/BIC/GTCLICENS
A~/BIC/GTCADD04
A~COMP_CODE.
Murthy. -
How to pass the FORM Fields value by Form Personalization
Hi ALL,
I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine...
can any one suggest what to do???
i tried with these syntax
TEST_EMP_FP(:ADDR.ADDRESS_ID,'ABC')
TEST_EMP_FP(${item.ADDR.ADDRESS_ID.value},'ABC')
Regards
RaviHi,
Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transact5ions screen, The invoice number should be defaulted in the report parameter).
Regards,,
Anil. -
How to set the order of the fields in List forms
I am currently building custom content type using Announcements. I have added 5 custom field types in list defoinition using schema.xml but my fields are appearing after default fields like title, Body, Expiry and then my fields in DispForm.aspx. I want
to change the order of the fields appearing in NewForm.aspx. How can i do that ?Set the value in schema as you want to display
<ViewFields>
<FieldRef Name="LinkTitleNoMenu"></FieldRef>
<FieldRef Name="GroupName"></FieldRef>
<FieldRef Name="SeqID"></FieldRef>
<FieldRef Name="Image"></FieldRef>
<FieldRef Name="URL"></FieldRef>
<FieldRef Name="LinkTarget"></FieldRef>
<FieldRef Name="Visible"></FieldRef>
<FieldRef Name="SubLinkTitle"></FieldRef>
<FieldRef Name="DisplayComingSoon"></FieldRef>
</ViewFields>
Er.vinay -
Hi,
I have read and tried to follow all the advice I saw on the forum as well as some additional forums but to no avail. Is someone able to look at what I have and help show me where I can go from here? Thanks!That's what I realzed at first, but then I did create a flowable subform for the fields and it's still not quite right. Unless the reason is that the flowable subform isn't set up correctly, which if that is the case, I can't find the answer as to why it won't work for me when I have the same settings as what's been described. Is there a way to get you what I've done? Not sure how to diagnose the problem otherwise...
-
How to Chage the data format through Forms Personalization
Hi Experts,
I would like to do like,
for example in the oracle form has two fields called
start data(DD-MON-YY)
end date(DD-MON-YY)
but actullay i would like to have like
start date(DD-MON-YY HH24:MI:SS)
end date(DD-MON-YY HH24:MI:SS)
It can be done through forms personalization?
we are using Apps 11.5.8.
Please help me to do it.
Regards
R.SundaravelTry using FORMAT_MASK property in Forms personalization
Property name - FORMAT_MASK
Value - DD-MON-YYYY HH24:MI:SS
Maybe you are looking for
-
Bind an inputFile value to a data control methods parameter
Hello I am trying to create a InputFile (ADF Faces) which is linked to a data control method. The method reads a specified file and returns the content which is then displayed in table form. <br><br> I have a filereader Class with the following metho
-
How set Image Source with C#
Hi, In C# I use FileOpenPicker to select the test.jpg, But it can't display the test.jpg. 1. C# private async void button_addImage_Click(object sender, RoutedEventArgs e) FileOpenPicker fileOpenPicker = new FileOpenPicker(); //fileOpenPicker.ViewMode
-
I have a solution for fixed or frozen headers in interactive reports
I thought I would share this with the group. I found a way to be able to fix the headers in an interactive report. Maybe there is a better solution out there but I could not find one. If anyone has one and can share their solution it would be great.
-
How do you change the domain name and primary DNS server ip address??
-
I forget secret answer i want to reset
i forget secret answer i want to reset but the reset email not correct i want to send it to my main email please