Function Module to modify provider specific settings in rsdichapro
Hi guys,
does anybody know the function module used to modify the provider specific settings for an InfoCube.
Thanks in advance.
Alex
Hi there!
For me it worked just by going to se16 and changing the records one by one. I wanted to modify the provider-specific properties and in specific the constant that restricts the infocube values and is used for logical partitioning (RSDICHAPRO-CHACONST) and it worked from there.
Br
Angelo
Similar Messages
-
Function module to modify the vendor confirmation data
Hi,
I am using ME_CONFIRMATION_UPODATE to add a new record to table EKES, ie I am able to see the vendor confirmation in purchase order. Can I use the same function module to modify the same record in above table EKES or anyother function module is there? My requirment is to change the delivery date once again in confirmation tab in purchase order.
Please help,
Thanks,
Vengal Rao.Hi All,
I could use the same function module and change the delivery date, i thing I changed is the data in field KZ , instead of 'I' used 'U'. to update the existing data.
Thanks,
Vengal Rao. -
Function module to modify the user roles & profiles
Hi All,
I am working on user maintenance and i need a function module to modify the user roles & profiles.
Thanks in Advance.
Phani.i used the below fms
BAPI_USER_ACTGROUPS_ASSIGN for assigning the roles.
delete the profiles of the user qnd assign the profiles to the user:
BAPI_USER_PROFILES_DELETE
BAPI_USER_PROFILES_ASSIGN
i used the above FMs for my requirement.
Regards,
Phani. -
Update Function module - How to provide detailed messages in case of errors
Hello everyone,
I am using update function modules. When there is a error, the Message i provide goes to inbox and i get a express message.
I am looking for ways to provide detailed messages (multiple lines) and i also need to add the error message returned by the BAPI
Providing a long text for the MESSAGE also does not work.
How can i achieve this ?
ThanksHi,
The express message is because the update functions executes in background.
You can view the detail messages of updates [Error Information from Update Management|http://help.sap.com/saphelp_nw04/helpdata/en/e5/de874735cd11d3acb00000e83539c3/content.htm]
For your requirement have alook at [Application Log and Application-Specific Error Tables|http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm]
There are some functions avaibale for this and is mentioned in the document.
Keshav -
Function module to modify fields in an interactive report
use fm POPUP_GET_VALUES.
data : itabt like sval occurs 0 with header line.
itabt-TABNAME = 'MARA'.
itabt-FIELDNAME = 'MATNR'.
append itabt.
itabt-TABNAME = 'MARD'.
itabt-FIELDNAME = 'LGORT'.
append itabt.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
NO_VALUE_CHECK = ' '
POPUP_TITLE = 'Give value'
START_COLUMN = '5'
START_ROW = '5'
IMPORTING
RETURNCODE =
TABLES
FIELDS = itabt
EXCEPTIONS
ERROR_IN_FIELDS = 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.
My requirement is in this I want only the second fields on changemode,The first fields should be dsiabled as it is a primary field.
Is this the right function module ?If so how do I incorporate the above functionality else what is alrternative functiuon module.
very urgenthi,
use
itabt-TABNAME = 'MARA'.
itabt-FIELDNAME = 'MATNR'.
itabt-FIELD_ATTR = '03'.
"but then you must give an input for the field
itabt-VALUE= 1000.
append itabt.
A.
Message was edited by:
Andreas Mann -
Function Module for ATP Check specific to BATCH
Hi All,
I have a requriement where I need to find the available stock for a material for a given plant and most importantly BATCH.
I tried using BAPI_MATERIAL_AVAILABILTY, but it returns the overall stock avaliable at the plant level irrespective where I mention the BATCH. In other words I can SEE in MMBE that the for the BATCH there is no UNRESTRICTED STOCK , however when i execute the Function module It shows me the total stock availabe at the Plant .
Please let me know if there is any fm that caters to my requirement.
Thanks
SrinivasHi Srinivas,
Can you please elaborate the solution?
Regards
Ankush -
Function Module to modify MARC table
Hi all,
Is There any Function Module which modifys the table MARC.
please suggest.
regards,
chandra.Hello Reddy,
Check this sample code:
*& Report ZYTEST02 *
report zytest02 .
parameters:matnr like bapimathead-material,
maktx like bapi_makt-matl_desc default 'Mat. autm. AE',
werks like bapi_marc-plant,
vkorg like bapi_mvke-sales_org,
vtweg like bapi_mvke-distr_chan.
start-of-selection.
perform material_create using matnr
maktx
werks
vkorg
vtweg.
*& Form material_create
* text
* -->P_MATERIAL text
form material_create using value(p_matnr)
value(p_maktx)
value(p_werks)
value(p_vkorg)
value(p_vtweg).
tables: mara.
* shift p_matnr right deleting trailing space.
* translate p_matnr using ' 0'.
data: headdata like bapimathead occurs 0 with header line.
data: clientdata like bapi_mara.
data: clientdatax like bapi_marax.
data: salesdata like bapi_mvke.
data: salesdatax like bapi_mvkex.
data: plantdata like bapi_marc.
data: plantdatax like bapi_marcx.
data: return like bapiret2.
data: taxclassifications like bapi_mlan occurs 0 with header line.
data: commitmessages like bapi_matreturn2 occurs 0 with header line.
data: returnmessages like bapiret2 occurs 0 with header line.
data: materialdescription like bapi_makt occurs 0 with header line.
data: charx value 'X'.
* Kopfdaten
headdata-material = p_matnr.
headdata-matl_type = 'FERT'.
headdata-ind_sector = 'M'.
* Sichten die gepflegt werden sollen
headdata-basic_view = charx. "Sicht auf Grunddaten
headdata-sales_view = charx. "Sicht auf Vertriebsdaten
* Daten für die Sicht GRUNDDATEN 1
materialdescription-langu = sy-langu.
materialdescription-matl_desc = p_maktx.
append materialdescription.
* Mandantenspezifische Materialdaten
clientdata-base_uom = 'ST'.
clientdatax-base_uom = charx.
clientdata-trans_grp = '0001'.
clientdatax-trans_grp = charx.
* Materialdaten auf Werksebene
plantdata-plant = p_werks.
plantdatax-plant = p_werks.
plantdata-loadinggrp = '0001'.
plantdatax-loadinggrp = charx.
* Verkaufsdaten
salesdata-sales_org = p_vkorg.
salesdatax-sales_org = p_vkorg.
salesdata-distr_chan = p_vtweg.
salesdatax-distr_chan = p_vtweg.
* Steuerklassifikation
taxclassifications-depcountry = 'DE'.
taxclassifications-tax_type_1 = 'MWST'.
taxclassifications-taxclass_1 = '1'.
append taxclassifications.
call function 'BAPI_MATERIAL_SAVEDATA'
exporting
headdata = headdata
clientdata = clientdata
clientdatax = clientdatax
plantdata = plantdata
plantdatax = plantdatax
* FORECASTPARAMETERS =
* FORECASTPARAMETERSX =
* PLANNINGDATA =
* PLANNINGDATAX =
* STORAGELOCATIONDATA =
* STORAGELOCATIONDATAX =
* VALUATIONDATA =
* VALUATIONDATAX =
* WAREHOUSENUMBERDATA =
* WAREHOUSENUMBERDATAX =
salesdata = salesdata
salesdatax = salesdatax
* STORAGETYPEDATA =
* STORAGETYPEDATAX =
importing
return = return
tables
materialdescription = materialdescription
* UNITSOFMEASURE =
* UNITSOFMEASUREX =
* INTERNATIONALARTNOS =
* MATERIALLONGTEXT =
taxclassifications = taxclassifications
returnmessages = returnmessages
* PRTDATA =
* PRTDATAX =
* EXTENSIONIN =
* EXTENSIONINX =
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = charx
importing
return = commitmessages.
* commit work and wait.
* Für den Fall das es notwendig wird die Exclusive Sperre wegräumen
CALL FUNCTION 'DEQUEUE_EMMARAE'
EXPORTING
matnr = p_matnr.
* if return-type ne 'S'.
format color col_negative.
loop at returnmessages.
write: / returnmessages-message.
endloop.
* endif.
loop at commitmessages.
write: / commitmessages-message.
endloop.
endform. " material_create
If useful reward.
Vasanth -
IS-R:functional modules in IS-Retail
Hi experts,
Can anyone tell me the" functional modules" of IS-Retail?Give all the functional modules which you use and give the T-code to execute them.
Regards
SwamyA function module is a separate program that can be called from your ABAP code to perform a specific task.
SAP comes with a library of pre-written function modules. Function modules are pooled together into function groups.
E.g. calendar functions
Function modules have a clearly defined fixed interface for data exchange.
As one of member suggested go to tcode se37 to explore functional builder.
You can display information about existing function modules:
Attributes: specifies administrative information like the person responsible for the module and a short description of the module.
Import: contains a list of the formal parameters that are used to pass data to a function module.
Export: contains a list of the formal parameters that are used to receive data from a function module.
Changing: contains a list of the formal parameters that are used both to pass data to and receive data from a function module.
Tables: specifies the tables that are to be passed to a function module. Table parameters are always passed by reference.
Exceptions: shows how the function module reacts to exceptions.
Source code: program code of the function module.
Documentation: provides information about the interface and exceptions.
For retail specific fuctional module, u can explore yourself on tcode se37.
Regards, -
Web Dynpro Java Internationalization and backend ABAP function modules
Friends,
I have a requirement where I want my Web Dynpro Java application to support BRAZIL and CHINESE.
I have been through the sample programs and tutorials and I understand how to support my application in these 2 languages. The challenge I am facing is how to communicate the language to the backend code (ABAP function modules) so that the function modules can written language specific error messages and texts.
I searched SDN but could not find anything. Your help is appreciated.Prashant,
When you are configuring JCo connection in WebDynpro Content Administrator, just left language settings blank for metadata connection (you may do the same for data connection). Now WD will supply language of currently logged-in user when obtaining connection settings from system landscape and you'll get necessary functionality.
By default locale of user determined by parameter sap-locale (sap-locale=de_DE for example), settings of user's browser and lastly preferences of user stored in UME.
Btw, BRAZIL (or Portugees for this matter) is not fully supported language by SAP, so R/3 side may be not translated or partly translated.
Valery Silaev
SaM Solutions
http://www.sam-solutions.net -
Hi, when a function module is modified and saved, the system is asking for request number. What should be given there? Even if we do not have plans to transport this module, we need to provide the request number? Thanks
HI,
if u create that function module in different package other than that of local package it will ask u for the req number.save it in $tmp package or click on the create request number to get rid of that problem.
to change the package go to that function module and select goto->object directory entry.one pop-up will come.select change button there u can change the package.
rgds,
bharat.
Message was edited by:
Bharat Kalagara -
How to create a callback function module
Hi all,
I am working in a requirement where we need to call a function module at a 'after change' event. So how to create a callback function module and register it with the crmvevent ?_
I created a sample function module and try to create entries in table crmv_event_cust, but i got an error message saying that the function module name I provided is not in table CRMC_FUNC_ASSIGN. When I try to create entry there, I got a message that function module is not in CRMC_OBJ_FUNC and that table is a standard table with no maintanance options !!
looks like i am going in wrong way ... can any one please help ??Looking at my system all you need to do is create the entry for the callback function in maint view: CRMV_FUNC_ASSIGN.
Your entry should be as simple as Z-function name Object Function - <same as others in the segment you are assigning>
IE for the partner it would be CRM_PARTNER as object function, for general order processing CRM_ORDER
Take care,
Stephen -
Help on ABAP Function Module (Unit 1)
Hello ABAP Experts,
I need help with the below mentioned lesson plan. I donot have source code for The ABAP Function Module - BC401_GET_SEP_STRING. For the Source Code Solution in the Lesson Plan to work, I need the source code for the above mentioned function module.
The Lesson Plan with Solution is posted below:
Exercise 1
Unit: Data Types and Data Objects in Detail
Topic: Defining Data Types and Data Objects
Basic Statements
Processing Character Strings
At the conclusion of these exercises, you will be able to:
u2022 Define structure types locally in the program
u2022 Define elementary and complex data objects
u2022 Split strings
u2022 Use conversion rules
u2022 Display the contents of data objects in lists
In this exercise, you will use a template to create a program that receives a single data record from the database table SFLIGHT in form of a character string. The program will split the this character string into its components and display it formatted in a list.
Because the focus of this exercise is not on the transfer of data as a character string, we will use a function module that will provide us with the required database. This will simulate actual cases, such as data transfer from an external system.
Program: ZBC401_##_SPLIT_STRING
Template: SAPBC401_DTOT_SPLIT_STRING
Model solution: SAPBC401_DTOS_SPLIT_STRING
is your two-digit group number
1-1 Copy the program, SAPBC401_DTOT_SPLIT_STRING and give it the new name ZBC401_##_SPLIT_STRING.
1-2 Familiarize yourself with the main body of the program. Pay special attention to the content of the data object datastring after the function module call. Use the Debugger to do this, and/or display the character string in a list. (The function module itself is here seen as a black box. For this exercise, it is not necessary to understand its construction.)
1-3 To be able to split the character string into its components you must first remove the ## characters. Remove the two leading separators from the character string first. Then copy the initial part up to the closing separators to the auxiliary variable set_string. For this, set_string has to be defined appropriately.
1-4 Now use the separators to split the contents of the auxiliary variable set_string into the structure wa_flight_c. The latter is typed with the local program structure type st_flight_c. You still have to comment out the components of this structure type and assign them an appropriate type.
1-5 As a test, display the fields of the structure, wa_flight_c in a list.
1-6 In the list displayed in exercise 1-5, you should have observed that some of the fields were displayed without formatting u2013 for example, the PRICE field. Your next step is to change this.
To do this, convert the data you have extracted by copying it to data objects with suitable types. Also, not all components of wa_flight_c are to be displayed.
For this purpose, a structure wa_flight has already been defined. It is typed with the structure type st_flight. You must comment out the components of st_flight and find appropriate types for these components for the formatting. Then copy the identically-named components of the character-type structure wa_flight_c to the fields of the structure wa_flight.
Display the contents of the structure wa_flight in a list. Use the appropriate formatting options for the WRITE statement for the fldate and price components.
Data Types and Data Objects in Detail Solution 1
Unit: Data Types and Data Objects in Detail
Topic: Defining Data Types and Data Objects
Basic Statements
Processing Character Strings
REPORT sapbc401_dtos_split_string.
TYPES:
BEGIN OF st_flight_c,
mandt(3) TYPE c,
carrid(3) TYPE c,
connid(4) TYPE n,
fldate(8) TYPE n,
price(20) TYPE c,
currency(5) TYPE c,
planetype(10) TYPE c,
seatsmax(10) TYPE n,
seatsocc(10) TYPE n,
paymentsum(22) TYPE c,
seatsmax_b(10) TYPE n,
seatsocc_b(10) TYPE n,
seatsmax_f(10) TYPE n,
seatsocc_f(10) TYPE n,
END OF st_flight_c,
BEGIN OF st_flight,
carrid(3) TYPE c,
connid(4) TYPE n,
fldate TYPE d,
price(9) TYPE p DECIMALS 2,
currency(5) TYPE c,
planetype(10) TYPE c,
seatsmax TYPE i,
seatsocc TYPE i,
END OF st_flight.
DATA:
datastring TYPE string,
set_string TYPE string,
wa_flight_c TYPE st_flight_c,
wa_flight TYPE st_flight.
START-OF-SELECTION.
CALL FUNCTION 'BC401_GET_SEP_STRING'
EXPORTING
IM_NUMBER = '1'
IM_TABLE_NAME = 'SFLIGHT'
IM_SEPARATOR = '#'
IM_UNIQUE = 'X'
IMPORTING
ex_string = datastring
EXCEPTIONS
no_data = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE a038(bc401).
ENDIF.
SHIFT datastring BY 2 PLACES.
FIND '##' IN datastring.
IF sy-subrc <> 0.
MESSAGE a702(bc401).
ENDIF.
SPLIT datastring AT '##' INTO set_string datastring.
SPLIT set_string AT '#' INTO
wa_flight_c-mandt
wa_flight_c-carrid
wa_flight_c-connid
wa_flight_c-fldate
wa_flight_c-price
wa_flight_c-currency
wa_flight_c-planetype
wa_flight_c-seatsmax
wa_flight_c-seatsocc
wa_flight_c-paymentsum
wa_flight_c-seatsmax_b
wa_flight_c-seatsocc_b
wa_flight_c-seatsmax_f
wa_flight_c-seatsocc_f.
MOVE-CORRESPONDING wa_flight_c TO wa_flight.
WRITE: /
wa_flight-carrid,
wa_flight-connid,
wa_flight-fldate DD/MM/YYYY,
wa_flight-price CURRENCY wa_flight-currency,
wa_flight-currency,
wa_flight-planetype,
wa_flight-seatsmax,
wa_flight-seatsocc.this FM is to get one element value from the XML
if you want to convert the whole XML use FM SMUM_XML_PARSE
Regards
Raja
Kindly close your previous threads and assing points.
Re: Creation of SIMPLE TRANSFORMATIO(ST)for deserialisation of XML ->ABAP data. -
BAPI or Function Module for getting Pending Purchase Orders Information
Dear Sir,
We have input information comprising of :
List of Item Codes
Plant
WBS Element
For this input data set , We want to know the list of Pending Purchase Orders information . To get the desired information , we are looking for the suitable BAPI / Function Module which can provide the desired information .
I understand that there is ME2L tcode availavle which can give the desired information .
But as we need to use the information in one of our Z program , so we need the BAPI / Function Module .
Kindly help us to know the suitable BAPI / Function Module available for getting the desired information .
With Thanks and Rgds
Sonia AgarwalHi
Check if this is helpfull:
BAPI_PO_GETDETAIL
BAPI_PO_GETDETAIL1
regards, -
Function Module to Search Service Contract ?
Hi All
I have to search the Service contracts based on :
1. Customer i.e. Sold-to-party and partner function
2. Product and
3. Sales org.
Is there any Function module which will provide ablove parmeters as Import gives me list of Service contracts?
thanks
AKTry Using:
CRM_SERVICE_CONTRACTS_SEARCH -
Function module/Webservice for Sytem status overview widget
Hi,
We want to create a "System status overview" - widget, which can show very briefly an overview of which systems are up an which are down (+ some additional backgroundinfo).
(Instead of communicating system statusses via e-mail)
Therefore we are looking for a function module/webservice which provides status info of all systems linked to Solution Manager. Does anybody knows about a standard functionality which provides this information, or does an application lik that already exists?
Thanks in advance for your replies.
Cheers,
SanderHi Mohammed,
Thanks for the reply.
That 's exactly the information we need, but we want to be able to create a simple display to the end user:
- without logging into the system
- displaying only a red or a green light/system
- information about all systems in all solutions
to put into the portal or even better, to put into a widget (I was thinking about using Adobe Air for this one).
To do so, I think there will be the need of a simple web service which returns a list of all systems toghether with their availability status...?
KR,
Sander
Maybe you are looking for
-
I can't get apple store to accept my password to download a free app.
I can' get Apple Store to accept my password . All efforts at reset have been futile. What do I Do?
-
What can Xserve and Mac OS X Server do that Mac OS X and .mac cannot?
After repeatedly bumping up against internal and external hard drive storage limits (easy to do with photography and HD video) I am considering an Xserve for storage space and easy access to files. Some of the features of Leopard Server such as iCal
-
Hi Sap Experts Could You please explain about the Transportation.
-
So that we may better diagnose DOWNLOAD problems, please provide the following information. - Server name - Filename - Date/Time - Browser + Version - O/S + Version - Error Msg
-
Hello, Updated to 10.1.7 and noticed that when you close the program an instance of acrobat stays open in task manager with high 50%+ cpu usage. Will not close at all unless you end task. if you open adobe again a new instance opens again consuming m