BAPI OR RFC THAT RETURNS THE VALUE TABLE CONTENTS THAT IS SPECIFIED IN DOM
HI ALL,
i have requirement of BAPI or RFC that returns the value table contants(text table) in CRM..
for ex:
if i pass the dataelement or domain or checktable as input parameter,could i get the contents of its text table associated with it....
please if there is way help me on this..
thanks and regards,
goutham,
Check these FM
RFC_READ_TABLE
RFC_GET_TABLE_ENTRIES
Similar Messages
-
Parameter field should pick the values which are there in the value table
Hi Experts,
I have a requ. where in a parameter field should pick only the values which are there in the value table for that particular field and should not allow the User to put in any other value.
The value table is created in the program manually.
EX:If the value table contains two sales organization VE03 and VE65 then the field shouldn´t allow anyother value other then those two.
Thanks and Regards,
ArunTry using a listbox.
report zrich_0001.
type-pools: vrm.
data: ivrm_values type vrm_values.
data: xvrm_values like line of ivrm_values.
data: name type vrm_id.
parameters: p_vkorg(4) type c as listbox visible length 20.
at selection-screen output.
name = 'P_VKORG'.
xvrm_values-key = 'VE03'.
xvrm_values-text = 'VE03'..
append xvrm_values to ivrm_values.
xvrm_values-key = 'VE65'.
xvrm_values-text = 'VE65'..
append xvrm_values to ivrm_values.
call function 'VRM_SET_VALUES'
exporting
id = name
values = ivrm_values.
at selection-screen.
if p_vkorg is initial.
message e001(00) with 'Please enter a sales org'.
endif.
Regards,
RIch Heilman -
SUBMIT and return the value of that report into internal table
Dear all,
I have a requirement. I want to submit a report and return the value of that report into my internal table.
How to do this.
Pl. guide.Hi Vidhya,
Below links from SAP help will resolve your issue.
http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3bde358411d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bd1358411d1829f0000e829fbfe/content.htm
Edited by: Harsh Bhalla on Jan 2, 2010 11:54 AM -
What is the Function MOdule that returns the fields in database table order
Hello Folks
I have a dynamic internal table with fields ( which are not in order). I want to display them in the order of which they are present in the database table? Is there any function module that returns the fields in database order?
FAQ. Please search before posting your question.
Edited by: Suhas Saha on Oct 10, 2011 10:19 PMHi,
You can use this BAPI.
<b>BAPI_SALESORDER_GETLIST</b>
Reward if useful.
Regards,
Vimal -
Updating a table with a query that return multiple values
Hi,
I'm trying to update a table which contain these fields : ItemID, InventoryID, total amounts
with a query that return these values itemId, inventoryid and total amounts for each items
Mind you, not all the rows in the table need to be updated. only a few.
This what i wrote but doesn't work since the query return multiple values so i can't assign it to journalAmounts.
UPDATE [bmssa].[etshortagetemp]
SET JournalAmounts = (SELECT sum(b.BomQty) FROM [bmssa].[Bom] b
JOIN [bmssa].[SalesLine] sl ON sl.ItemBomId = b.BomId
JOIN [bmssa].[SalesTable] st ON st.SalesId = sl.SalesId
WHERE st.SalesType = 0 AND (st.SalesStatus IN (0,1,8,12,13)) AND st.DataAreaId = 'sdi'
GROUP BY b.itemid, b.inventdimid)
Any advise how to do this task?Remember that link to the documentation posted above that explains exactly how to do this. When you read it which part exactly were you having trouble with?
-
Create a new column in a table that compares the value of one column with its previous value
The DDL:
DECLARE
@T TABLE
IDNO
int,
name
varchar(40),
[Date]
datetime2,
Price1
float,
Price2
float
DECLARE
@K TABLE
IDNO
int,
name
varchar(40),
[Date]
datetime2,
Price1
float,
Price2
float
INSERT
INTO @T
VALUES(22,'C_V_Harris','2014-01-02 10:23:49.0000000',
23.335,
23.347)
INSERT
INTO @T
VALUES(21,'C_V_Harris','2014-01-02 10:05:13.0000000',
23.357,
23.369)
INSERT
INTO @T
VALUES(20,'C_V_Harris','2014-01-02 09:56:15.0000000',
23.364,
23.377)
INSERT
INTO @T
VALUES(19,'C_V_Harris','2014-01-02 09:45:26.0000000',
23.351,
23.367)
INSERT
INTO @T
VALUES(18,'C_V_Harris','2014-01-02 09:43:20.0000000',
23.380,
23.396)
INSERT
INTO @T
VALUES(17,'C_V_Harris','2014-01-02 09:34:28.0000000',
23.455,
23.468)
INSERT
INTO @T
VALUES(16,'C_V_Harris','2014-01-02 09:30:37.0000000',
23.474,
23.486)
INSERT
INTO @T
VALUES(15,'C_V_Harris','2014-01-02 09:18:12.0000000',
23.419,
23.431)
INSERT
INTO @T
VALUES(14,'C_V_Harris','2014-01-02 09:16:06.0000000',
23.360,
23.374)
INSERT
INTO @K
SELECT
ROW_NUMBER()
OVER (ORDER
by IDNO)
AS RN,*
FROM
@T
SELECT
* FROM
@K
--not working:
SELECT
a.RN,a.Price2
FROM
@K a
INNER
JOIN @K
b
ON
a.RN=b.RN-1
WHERE
a.Price2>b.Price2
I need to create a view with a column (say 'Comp' below) that compares the value of each row in Price2 with the previous Price2 row, and it is greater then +1, the
same 0, and less -1.
The processed table should be:
IDNO
name
Date
Price1
Price2
Comp
22
C_V_Harris
1/2/2014 10:23:49
23.335
23.347
0
21
C_V_Harris
1/2/2014 10:05:13
23.357
23.369
1
20
C_V_Harris
1/2/2014 9:56:15
23.364
23.377
1
19
C_V_Harris
1/2/2014 9:45:26
23.351
23.367
-1
18
C_V_Harris
1/2/2014 9:43:20
23.38
23.396
1
17
C_V_Harris
1/2/2014 9:34:28
23.455
23.468
1
16
C_V_Harris
1/2/2014 9:30:37
23.474
23.486
1
15
C_V_Harris
1/2/2014 9:18:12
23.419
23.431
-1
14
C_V_Harris
1/2/2014 9:16:06
23.36
23.374
-1
How can I structure the statement to get (the most recent - order by date ) result for Comp?Satheesh Variath, I just had to make some corrections from your script to get the correct answer:
CREATE
VIEW vw_Comp
AS
SELECT
TOP 1 t.IDNO,t.name,t.[Date],t.Price1,t.Price2,
CASE
WHEN t.Price2
> LAG(Price2,1)
OVER (PARTITION
BY name
ORDER BY IDNO)
THEN 1
WHEN t.Price2
< LAG(Price2,1)
OVER (PARTITION
BY name
ORDER BY IDNo)
THEN -1
ELSE 0
END
AS Comp
FROM
@T t
ORDER
BY DATE
DESC
The adjustments: the selection of the most recent comparison (Top 1) and the use of the function LAG (instead of LEAD) to get the previous value of the column. -
BAPI that returns the PurchasingOrg of given user.
Hi all,
I'm trying to find BAPI that returns the PurchasingOrg of given user.
Any help will be very appreciated.
Thanks,
DannyL>
Danny Leviev wrote:
> Hi all,
>
> I'm trying to find BAPI that returns the PurchasingOrg of given user.
>
> Any help will be very appreciated.
>
> Thanks,
>
> DannyL
Hi dear,
Can u explin in deatails what exactly you are looking for?? -
Mutator to compute set and return the value
Hi
I am having trouble working out how to do a mutator that does all three
compute a value set the value and then return it this is what i have so far
this example calculates and returns the value but does it set the value of totalSlices ???? this is the best option so far
public int totalSlices (){
int total = meatSlices + vegSlices;
return (int) total;
this one seems more likely to me but unsure is this a set method as well
public insert (int fiveC)
fiveCentCoin += fiveC;
returne fiveCentCoin;
this is the final example i have come up with but dont know if it sets the value as well
public int calculateCost () {
double cost;
if (age==0) {
age = 0.1;
if (neutered) {
cost = (100/age) + (stay * 3) + SHOTS + TAGS;
} else {
cost = (100/age) + (stay * 3) + SHOTS + TAGS + NEUTER;
return (int) Math.round (cost);
the problem i face i am not sure of how to combine a mutator calculation, set method and return it all in one i havnt done that before and cannot find an example
thanksI think you're trying to take a hollistic approach to programming. That won't work.
You need to go back and get a good understanding of exactly what each element of Java does.
Sylvia. -
Global Class that returns an internal table
Hello,
Is it possible to create a global class (under class builder) that returns an internal table like we used to do in a function module?
e.g. call function '<Function module name>'
tables = i_tab.
Thanks,
JeffreyHi Jeffrey,
Yeah u can do that by specifying importing parameters
to method.You can give table type for the parameters.
Thanks&Regards,
Siri. -
LOV does not return the value (2)
PPR in general does not work correctly if invalid HTML is generated. One example of an invalid HTML is having an opening <TD> tag immediately following another opening <TD> tag.
After checking everything else, if LOV still does not return the value, test whether it's not a problem with the invalid HTML by placing the messageLovInput outside of the complicated layout nestings you may have. If it works outside of the layout nestings, look for the possible problems in the layout nestings.Hi RamKumar,
Thanks for your reply.. I have already done that but no luck :(
Regards,
Hemanth J -
How crm visit the external website and return the value to crm
how crm visit the external website and return the value to crm?
AwenCan you elaborate the question? I assume that you are looking for some sort of mechanism to validate a customer's web site?
Regardless of the scenario, the way to validate or retrieve a value from an external web site is to write a plugin that executes a WebRequest to the external site and reads the response. -
How to get the values of the value table ?
Hello all,
I want to get the values of the value table, given a domain name.
Ex: To get the MATNR values of table MARA, giving the MATNR as input on the selection screen.
Is it possible? Is there any FM?
Thanks
SRHi
forget my previous answer.
Yuo can use a code like this:
PARAMETERS: p_table TYPE ddobjname,
p_dom LIKE dfies-domname.
DATA dfies_tab LIKE STANDARD TABLE OF dfies WITH HEADER LINE.
DATA: ftab TYPE TABLE OF string.
FIELD-SYMBOLS: <fs_table> TYPE table.
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
tabname = p_table
TABLES
dfies_tab = dfies_tab
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
CHECK sy-subrc <> 0.
LOOP AT dfies_tab WHERE domname = p_dom.
APPEND dfies_tab-fieldname TO ftab.
ENDLOOP.
SELECT (ftab)
FROM (p_table)
INTO TABLE <fs_table>.
In this case you have to create dynamically the table <fs_table> or you can also use a table string:
DATA: T_DATA TYPE STANDARD TABLE OF STRING.
SELECT (ftab)
FROM (p_table)
INTO TABLE T_DATA.
Max -
How can i do a variable User exit that present the values before execute
Hi Gurus,
How can i do a variable User exit that present the values before execute, i need this:
a variable that calculate SYS-DATUM until 30 days before (I got the code) but this variable run automatic because is user exit, i want this variable but first present the values, not execute automatic, this is because the users want the report that automatic present the values , helpHi,
Refer the below links,
http://documentation.softwareag.com/natural/nat424mf/pdf/ops_mf/conf_usrex.pdf
http://www.erpgenie.com/component/content/article/1097
http://www.apentia-online.at/UP/Apentia/files/Article/SAP_BW_User_Exits_and_BAdIs.pdf
Hope it helps you,
Regards,
Ravindra. -
BAPI or RFC for replicate the transaction LX03
Hi experts,
anyone know any BAPI or RFC for replicate the transaction LX03?
ThanksThere are no alternate transaction for OBY6
-
Is there a system table that stores the "create table" scripts
Does a Oracle system table exist that contains the "create table" scripts for tables defined under a schema?
I know I can build this with SQL by querying the user_tab_columns, but I was wondering whether the entire DML
statement is already stored in some other system table. In the Quest Toad software you can simply go to the "Schema Brower", "Tables",
then select the "Script" tab and it shows you the "create table" statement for the particular table that you are
looking at. I'm wondering whether Toad behind the scenes is building this "create table" script via the user_tab_columns
table or using another system table.
Thank you in advance,
Wesyou can use the DBMS_METADATA.GET_DDL procedure to obtain the details regarding the ddl statement used to create the table.
Maybe you are looking for
-
I'm looking for a high quality image of the flower in the iPhone 5 the website.
There is a flower that is used in the apple website, for the iPhone 5. It is purple and yellow. I've been looking all over the web for it but cannot find an image of it that doesn't have a glare on it. I guess it is owned by apple, but I was wonderin
-
No Keyboard / mouse..why is this so hard??
I have followed the beginners guide up to installing xorg and lxde. Whwnever I run startx lxde opens, but I have no mouse or keyboard control. I have HAL in daemons, I have installed evdev. I have tried without an xorg.conf. No luck. I have add
-
Get file list from directory(t.code: AL11).
Hi Frnds, i need to get the list of file for particular directory from t.code AL11, is there any Function Module to display the list of File from the directory in executable program, i have directory like '/home/im3/hrintf/processed/..... ' and now
-
Transferring data to new Intel iMac
What is the most efficient way to move files, iTunes music, settings, etc. from my current G5 to a new Intel based iMac? I'm thinking external hard drive but I might be missing something. Thanks.
-
OWB package import error. PRS-00318. In need of urgent help
Hello everyone, I am having a weird error when i try to import a package in owb. Saying "PRS-00318: SQL Error encountered while updating CMPALLFOLDERFCO for key ********************************* Please contact Oracle Support with the stack trace and