How to pass the values from internal table to field groups
hi all,
how can i pass the internal table values to field groups?
already field groups are holding some values.. INSERT STATEMENT IS NOT WORKING as it is ovewriting the existing values..
Use full answers will be rewared.
Thanks.
Moderator message - duplicate post locked
Edited by: Rob Burbank on Jun 23, 2009 9:51 AM
Hi,
You can use INSERT statement to put a work area of an Internal table in Field-group
and use Extract to get info out of it.
Hope it helps,
Raj
Similar Messages
-
Passing a value from internal table to a powerpoint slide
Hi,
Does anyone know how to pass a value from internal table to a powerpoint slide? I would also need some codes with regards to the coding to open the powerpoint and insert the value in.
Thanks.
Points will be awarded.
Hope to hear from you soon.
Lawrencegeez!! do feel sorry for you
you can fire FM WS_EXECUTE to open power point but passing a variable at run-time i'm not sure, sorry. -
Fetch the values from internal table inside an internal table (urgent!!)
data : BEGIN OF PITB2_ZLINFO occurs 0,
BEGDA LIKE SY-DATUM,
ENDDA LIKE SY-DATUM,
PABRJ(4) TYPE N, "Payroll Year
PABRP(2) TYPE N, "Pay. Period
ZL LIKE PC2BF OCCURS 0,
END OF PITB2_ZLINFO.
I have a internal table like this,
How to Fetch the values from internal table inside an internal table.
Kindly Help me on this..
Regards,
Ram.Hi,
Try this....
Loop at PITB2_ZLINF0.
Loop at PITB2_ZLINF0-ZL.
endloop.
Endloop.
Thanks...
Preetham S -
How to retrieve the values from a table if they differ in Unit of Measure
How to retrieve the values from a table if they differ in Unit of Measure?
If no data is read
- Insure that you use internal code in SELECT statement, check via SE16 desactivating conversion exit on table T006A. ([ref|http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa0122493111d182b70000e829fbfe/frameset.htm])
If no quanity in result internal table
- There is no adqntp field in the internal table, so no quantity is copied in itab ([ref|http://help.sap.com /abapdocu_70/en/ABAPINTO_CLAUSE.htm#&ABAP_ALTERNATIVE_1@1@]).
- - Remove the CORRESPONDING, so quantity will fill the first field adqntp1. ([ref|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_WA.htm])
- - Then loop at the internal table and move the quantity when necessary to the 2 other fields.
* Fill the internal table
SELECT msehi adqntp
INTO TABLE internal table
FROM lipso2
WHERE vbeln = wrk_doc1
AND msehi IN ('KL','K15','MT').
* If required move the read quantity in the appropriate column.
LOOP AT internal_table ASSIGNING <fs>.
CASE <fs>-msehi.
WHEN 'K15'.
<fs>-adqnt2 = <fs>-adqnt1.
CLEAR <fs>-adqnt1.
WHEN 'MT'.
<fs>-adqnt3 = <fs>-adqnt1.
CLEAR <fs>-adqnt1.
ENDCASE.
ENDLOOP.
- You could also create another table with only fields msehi and adqntp and then collect ([ref|http://help.sap.com/abapdocu_70/en/ABAPCOLLECT.htm]) the data to another table.
Regards,
Raymond -
How to pass the value from Sub report to main report
I have un report(mainreport) within a subreport(subreport).
With reporting services, how to pass the value from Sub report to main report?
thanksHi Alebet,
With reporting services to pass values from sub report in to main report is not supported directly.
But there are some workarounds through which you can get this .
There are two ways to get this.
1- Put your sub report query into some table. i mean to say through the subreport query get some temporary table.
2- Using this temporary tables data write some Scala function in the data base.
3- Now in your main report query return this scala function as a column.
4- Extract the column value where ever you want in your main report which is getting calculated from the subreport query. so you will be getting the values returned from the subreport in the main report.
This will definitely work fine as i have done some report in this way.
Another way of doing is that
1- prepare another data set with the same query as in sub report in the data tab.
2- then refer this 2nd dataset in your main report .
But better way will be the top one.
Anyway please let me know if you get the solution.
Thanks
Mahasweta -
How to pass the text from a table to the field label on the selection scre
hi guru's
i have requirement were in i have to pass the text from a table as field label for
a input field on the selection screen.
EX: selection screen
(xxxxxxx ) __________
field label
please help
regards,
varahi all,
can you please check the code, and suggest am i doing wrong any were.
types: xtab(200).
data : ttab type table of xtab,
w_so type xtab.
data: routine(32) value 'TEMP_ROUTINE',
program(8),
message(128),
line type i.
AT SELECTION-SCREEN OUTPUT.
select field text DATA_ELEMENT from zauthgrptxt into table t_fieldlabel where STARALLOWED EQ c_asteriks.
DESCRIBE TABLE t_fieldlabel LINES N.
w_so = 'REPORT ZTEMP_PROGRAM.'.
append w_so to ttab.
w_so = 'FORM TEMP_ROUTINE.'.
append w_so to ttab.
loop at t_fieldlabel.
w_field = t_fieldlabel-field.
CONCATENATE 'SELECT-OPTIONS: ' ' P_' w_field zspace ' FOR ' ' T_FIELDLABEL-' w_field ' NO INTERVALS NO-EXTENTION.' INTO w_so.
append w_so to ttab.
endloop.
w_so = 'ENDFORM.'.
append w_so to ttab.
generate subroutine pool ttab name program
message message
line line.
if sy-subrc = 0.
perform (routine) in program (program).
else.
write:/ Message.
endif.
The sy-subrc = 4. nothing is coming into 'program' at generate subroutine pool
very urgent requirement please help
thanks,
vara -
How to pass the values from the Wb Dynpro Application to the SAP Backend ?
Hi All,
Good morning..,
I have scenario like:
I want to pass the values from the web dynpro appication to the SAP Back end R/3 Table. IN backend the RFC is writtn to accept the structure input from the Webdynpro.
Upto know I imported the corresponding RFC and maaped to the View.
How to proceed with the coding to save the data...
PLease suggest...
Regards and Thanks in Advance,
CSPHi Pradeep
Steps:
1. First create an instance for bapi and bind the instance to the bapi node.
Z<bapi name> zb=new Z<bapi name>();
wdContext.nodeZ<bapi name>. bind(zb);
2. Then if u have the import parameter u have to set them by using
The instance of the above bapi.
Zb.set<import parameters>;
3. If the bapi has a table parameters then the structure for the table parameters will also be imported
In the model class.
4. Set the table parameters by creating the instance for that structure and using this instance set it.
Z<Struct>itm tab=new Z<Struct>();
Tab.set<table parameters>
5. Then add the structure instance to the bapi instance.
Zb.add(Tab);
6. Then Execute the bapi after setting the import parameters.
7. If there is any export parameters, then get the values after execution.
Look at this thread for codes
Re: RFC call on click of button
Regards,
Arun -
How to pass the value from JSP or HTML to Applet
Plz reply ....How can we pass the value from the JSP Page or from HTML page to Applet embedded in same page....
Hi,
<applet codebase = "."
archive = foo.jar"
code = "com.bar"
name = "bar"
id = "bar"
width = "<%=Request["width"] %>"
HEIGHT = "<%=Request["appHeight"] %>"
hspace = "0"
vspace = "0"
align = "middle"
alt = "Applet is Loading..."
>
<param name="LANGUAGE" value="<%=Request["lan"] %>">
<param name="LOGOUT_USER_URL" value="EndSession.asp">
<param name="DATA_READ_INTERVAL" value="10000">
<param name="REFRESH_INTERVAL" value="5000">
<param name="DEFAULT_FONT" value="Arial">
</applet>
pass values @ ur html or jsp page to Applet as parameters.
Refer above code. By using getParameter() method of Applet, u can take values inside applet. -
How To Pass the value from JSP to Applet
plz reply how can we pass the value from the JSP to Applet ...the applet is embedded in JSP page....
Hi,
<applet codebase = "."
archive = foo.jar"
code = "com.bar"
name = "bar"
id = "bar"
width = "<%=Request["width"] %>"
HEIGHT = "<%=Request["appHeight"] %>"
hspace = "0"
vspace = "0"
align = "middle"
alt = "Applet is Loading..."
>
<param name="LANGUAGE" value="<%=Request["lan"] %>">
<param name="LOGOUT_USER_URL" value="EndSession.asp">
<param name="DATA_READ_INTERVAL" value="10000">
<param name="REFRESH_INTERVAL" value="5000">
<param name="DEFAULT_FONT" value="Arial">
</applet>
pass values @ ur html or jsp page to Applet as parameters.
Refer above code. By using getParameter() method of Applet, u can take values inside applet. -
How to pass the values from one screen to another
HI,
consider me21n,
po is created with the item category L,so components tab is enabled.that u all know.
i have added the custom tab in the item details with netwt,gross wt,no of pieces and one more field.
those fields are also in component structure of material data.
i need to pass the matnr,maktx,quantity,ntwt,grosswt from the component to be displayed in the subscreen.
i used import mdpm to xmdpm from memory id 'subcon', where it is exported from the function module 'me_components-maintain'.
how to pass all the values from component of structure MDPM to the subscreen of custom tab in the item details.
help me pls........................'hi everyone,
MODULE status_0111 OUTPUT.
data : fill type i.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.,
DESCRIBE TABLE lt_zzmm_po_comp LINES fill.
ctrl_0111-lines = fill.
ENDMODULE. " STATUS_0111 OUTPUT
MODULE fetch_data OUTPUT.
ctrl_0111-lines = 2.
import xmdpm to lt_xmdpm from memory id 'SUBCON'.
IF not sy-subrc eq 0.
CLEAR lt_zzmm_po_comp[].
LOOP AT lt_xmdpm.
MOVE-CORRESPONDING lt_xmdpm TO lt_zzmm_po_comp.
APPEND lt_zzmm_po_comp.
ENDLOOP.
MOVE-CORRESPONDING lt_zzmm_po_comp TO ctrl_0111.
read table ctrl_0111-cols into col where index = 3.
ENDIF.
ENDMODULE. " FETCH_DATA OUTPUT
MODULE pass_line OUTPUT.
READ TABLE lt_zzmm_po_comp INDEX ctrl_0111-current_line.
MOVE-CORRESPONDING lt_zzmm_po_comp TO ctrl_0111.
ENDMODULE. " PASS_LINE OUTPUT
flow logic
PROCESS BEFORE OUTPUT.
MODULE status_0111.
MODULE FETCH_DATA.
loop at lt_zzmm_po_comp WITH CONTROL ctrl_0111 cursor
ctrl_0111-current_line.
module pass_line.
endloop.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0111.
loop.
*module read_data.
endloop.
but i cant see my fields in the table control .....i dont know y it is not coming?can anyone help me with code... -
Eliminate the values from internal table
I have an internal table with fields..
begin of it occurs 0,
ebeln
matkl
werks
end of it.
its filled with values..
ebeln | matkl | werks |
12111 | A123 | LK
12111 | A123 | LK
12111 | A123 | LK
12111 | A123 | LK
12111 | A123 | LK
12111 | A123 | LN
12121 | A124 | LK
12121 | A124 | LK
12121 | A124 | LK
12122 | A125 | LK
12122 | A125 | LK
12122 | A125 | LK
12123 | A126 | LN
12123 | A126 | LN
Now I want to eliminate the values from the internal table where all ebeln and werks are different..for example..all 12111's should be eliminated from the internal table as the it has different werks assighned to one of the ebeln's..and I need only ebeln's with 12121 and 12123.
Any suggention would be helpful..
Thanks,
M/Hi,
DATA : v_ebeln LIKE table name-ebeln,
v_werks LIKE table name--werks.
SORT itab BY ebeln werks .
LOOP AT ITAB.
ON CHANGE OF itab-ebeln.
Move : itab-ebeln TO v_ebeln,
itab-werks TO v_werks.
ENDON.
IF ITAB-ebeln NE v_ebeln OR
ITAB-werks NE v_werks.
DELETE ITAB WHERE ebeln EQ ITAB-ebeln .
clear : v_ebeln , v_werks.
ENDIF.
ENDLOOP. -
How to pass the value from sub report to sub report
how i want get one value from sub report to sub report..
can i do this one...
how can get the value.
i know main report to sub report
i tried that way but
value is 0.00 is comming
Any reasons.Hi Try this.
Create a formula like this in subreport1 (from the report where you want to pass your value)
Whileprintingrecrods;
Shared Numbervar x :={subreport1Value};
Then go to 2nd sub report and Create a formula like this
Whileprintingrecrods;
Shared Numbervar x ;
Note :Your sub report1 should execute before sub report2 .That means sub report1 should be in the above section of sub report2 -
How to extract the values from WPBP table
Hi experts,
We are in preparation of a custom report.
In the report we want to have a value from WPBP table.
We want to extract the value of Capacity utilization level from WPBP table.
Could you please let me know the way to extract the value.
Please advice.
Regards,
Sairam.Hi Sairam,
Why do you try to get capacity utilization level from WBPB. Even if there is split in payroll capacity utilizatian level in WPBP shows the value in IT0008 basic pay.
So instead you can get the required information from table PA0008 Field for capacity utilization level is BSGRD
Regards;
Okan -
How to pass the value from z-program to screen
Hi,
I have created a Z-report which is displaying the data according to the selection screen,but while going to click on 1 pushbutton,it should call z-transaction.
My problem is how i will pass the selected data to my screen.suppose i have selected 1 material no.,i want to pass the material no. to my matnr field in my screen(which is already present in my screen)HI.
Create SET PF-STATUS 'STATUS'.like as follows.
1 .double click on 'STATUS1' create pushbutton by appilcation tool bar.
2 .In fuction attributs ,In fuction code give your t-code.
3.In Fucntion type give T.
Eg:
module STATUS_1001 output.
SET PF-STATUS 'STATUS1'.
SET TITLEBAR 'TITLE1'.
endmodule. " STATUS_1001 OUTPU
It will helpfull u.
Regards.
Jay -
How to get the value from Advanced table
Hi,
In the Advanced table have 2 LOV fields, I need LOV field value dynamically in the controller to validate the save button, if iam not selected any value in lov save button will not allow to save the data. In the table i am using 'Add another row'. How to get the lov field value in the process form request??? and how to do this requirement
Thanks
Naresh1. You can specify required property on LOV field to "yes". For events where you wish to disable the client side validations, set the property disable client side validation to "true".
2. If above behavior is not what you are looking for, then you need to handle in AM and not CO.
a. Call an AM method from CO.
b. In that AM method, get handle of VO.
c. Iterate the VO Rows and check for your validation rules.
-Prince
http://www.princekapoor82.blogspot.com
Maybe you are looking for
-
Difference between Scheduling lines and Delivery schedule
Hi SD Experts can u say me the clear difference between Scheduling lines and Delivery schedule. where we will maintain deliver schedule. whether delivery schedule is automatically created along scheduling agreements.. with regards James
-
QuickTime takes forever to open larger movie files and files over network
Quicktime 7.2 used to open files immediately, but now it stops responding for a couple minutes or more before finally opening movie files. Any one else having this problem?
-
My husband and I shared the same apple id I accidentally deleted his number from the iCloud And now his phone won't receive phone calls or text what do I do
-
Dell monitors go into power save cycle
I got 2 brand new Dell P2412H monitors to use as a dual display. However when the computer puts the display to sleep they go into a "Entering Power Save Mode" cycle and the display never shuts off it stays blue and continues to do that. This happens
-
How Do You Annotate a Graphic Such as your Signature in PDF Using Preview?
Hi. I'm filling out a form that needs a signature. How do you annotate your signature (as a graphic perhaps?) to the PDF using Preview. Thanks in advance. Gbu.