Code for SAVE functionality in FPM_OIF_COMPONENT
Hi Experts,
I have enhanced the component DPR_DET_DATA_PROJECT_O. The SAVE functionality for this component exists in FPM_OIF_COMPONENT.
I have to raise error message depending on the custom fields added in DPR_DET_DATA_PROJECT_O when I click on 'SAVE' button.
Please share if any ideas where to write the code for SAVE functionality for the custom fields added on DPR_DET_DATA_PROJECT_O.
Regards,
Rafi
Hi Rafi,
These similar discussions might provide some assistance:
BAdI or enhancement on SAVE of Cproject
which badi triggers while saving cproject
Code to call for saving the data in WDC - DPR_PROJECT_VIEW
Cheers,
Amy
Similar Messages
-
How to create a transaction code for a function group with screen 100 as st
Hello ,
I have requirement where I need to create a function group and create screen 100, 200, 300 and include the function in the screens.
Customer asked me to create a transaction with the screen 100 as the starting screen.
Can you please let me know how to create a transaction code for a function group with screen 100 as starting screen.
[ It is not a module pool program ].
Thanks
Prashanth.
Moderator message - Please ask a specific question and do not ask the forum to do your work for you - post locked
Edited by: Rob Burbank on Jun 2, 2009 11:49 AMGo to transaction SE93, enter a transaction code that you want and click on "create". Enter a text and select the "Transaction with Parameters" button. In the Default Values section, enter START_REPORT in the transaction field. Check the "skip initial screen" box. In the Name of Screen field section enter the following lines:
Name of screen field: Value
D_SREPOVARI-REPORTTYPE RW
D_SREPOVARI-REPORT ZPCA
Save and transport accordingly. -
How to insert a code for a function module into a Customer Exit Variable?
I have two Key Figures viz., Net Prchs Rtl, and Net Prchs Unt. Both these Key figures have This Week (TW) and Last Week (LW). There is a variable for This week but there is no variable defined for Last week.
I need to get data in the column LW (Last Week) for both the key figures.
In function module EXIT_SAPLRRS0_001 one of the functions I have is:
Get the previous Fiscal Week
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
I need to create a new variable to get values in the Last week column for different key figures and use function 'DATE_TO_PERIOD_CONVERT' in that variable.
Can anyone please explain me the steps as to how to use a function module in a variable so that when the variable is used in a key figure it shows the output.
In other words what I want to know is after creating a Customer exit variable of type Characteristic value how do I refer the above mentioned function moduel and insert the code for the function module into the Customer exit variable that I created.
Thank you.
TR.Hi Wond,
Thanks a lot for your reply. I understand what you mean but I have never done this before so can you please explain it in a detailed manner. I have the following code:
Get the previous Fiscal Week
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = ld_date
i_periv = lc_periv
IMPORTING
e_buper = ln_poper
e_gjahr = ln_bdatj
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
lc_poper = ln_poper.
CONCATENATE ln_bdatj lc_poper+1(2) INTO wa_e_t_range-low.
wa_e_t_range-sign = 'I'.
wa_e_t_range-opt = 'EQ'.
APPEND wa_e_t_range TO e_t_range.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
I believe I should now use the above code in my customer exit variable. If that's right can you please explain me the steps as to how should I do this so that the variable gets populated.
Thank you.
Regards,
TR. -
HI ALL,
I am working on MM01 Tcode . In recording I got all ok codes except save button .
can any one help me how to see the ok code for save button...I think some command is there to find.
Thanks in advance.before clicking SAVE. put /H on the command bar. hit enter.. debugger is switched on..
now click SAVE.
debugger starts.
now in debugger check the value of sy-ucomm
by the way, its BU for save button in MM01
Edited by: Soumyaprakash Mishra on Oct 28, 2009 4:31 PM -
What is the ok code for Save (to post a document)
Hi all Technos
How to post a document(Save it) in BDC In Tr Code F-02 after all entry? What is code for that.
In simple what is the ok code for SAVE. For your kind infromation ENTER is not taking.
Plz any body help me For that.
Every usefull answer will be rewarded with points..
Thanks in advance
shovanHi Shovan,
OK-code for save is =BU
Check this recording..Award points if useful
perform bdc_dynpro using 'SAPMF05A' '0100'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BKPF-BLDAT'
'06.05.2008'.
perform bdc_field using 'BKPF-BLART'
'SA'.
perform bdc_field using 'BKPF-BUKRS'
'BP01'.
perform bdc_field using 'BKPF-BUDAT'
'19.05.2008'.
perform bdc_field using 'BKPF-MONAT'
'5'.
perform bdc_field using 'BKPF-WAERS'
'USD'.
perform bdc_field using 'FS006-DOCID'
perform bdc_field using 'RF05A-NEWBS'
'40'.
perform bdc_field using 'RF05A-NEWKO'
'630020'.
perform bdc_dynpro using 'SAPMF05A' '0300'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BSEG-WRBTR'
'100'.
perform bdc_field using 'BSEG-MWSKZ'
'I0'.
perform bdc_field using 'BSEG-TXJCD'
'ca0000000'.
perform bdc_field using 'DKACB-FMORE'
'X'.
perform bdc_dynpro using 'SAPLKACB' '0002'.
perform bdc_field using 'BDC_OKCODE'
'=ENTE'.
perform bdc_field using 'COBL-KOSTL'
'1201'.
perform bdc_dynpro using 'SAPMF05A' '0700'.
perform bdc_field using 'BDC_OKCODE'
*'=BU'.*
Thanks,
Rvaee.. -
How to write code for save file directory?
how to write code for save file directory?
how to find usa timezone code using java swing?
i have some code help me
public class ItsInitializer {
private static boolean s_initialized = false;
private ItsInitializer() {
public static synchronized void initialize() {
if (!s_initialized) {
// Modifies default time zone, disables Daylight Saving Time.
TimeZone l_defaultTimeZone = TimeZone.getDefault();
int l_rawOffset = l_defaultTimeZone.getRawOffset();
String l_id = l_defaultTimeZone.getID();
SimpleTimeZone l_simpleTimeZone = new SimpleTimeZone(l_rawOffset,
l_id,
0,
0,
0,
0,
0,
0,
0,
0);
TimeZone.setDefault(l_simpleTimeZone);
s_initialized = true;
2.
long timeMillis = ...;
long time = timeMillis / 1000;
String seconds = Integer.toString((int)(time % 60));
String minutes = Integer.toString((int)((time % 3600) / 60));
String hours = Integer.toString((int)(time / 3600));
for (int i = 0; i < 2; i++) {
if (seconds.length() < 2) {
seconds = "0" + seconds;
if (minutes.length() < 2) {
minutes = "0" + minutes;
if (hours.length() < 2) {
hours = "0" + hours;
3.
import java.text.SimpleDateFormat;
import java.util.Date;
public class Convert {
public String getDateTime(String pattern){
SimpleDateFormat sdf = new SimpleDateFormat(pattern);
return sdf.format(new Date());
* @param args
public static void main(String[] args) {
Convert con = new Convert();
System.out.println(con.getDateTime("hh:mm:ss"));
5.import java.text.SimpleDateFormat;
import java.util.Date;
public class Convert {
public String getDateTime(String pattern){
SimpleDateFormat sdf = new SimpleDateFormat(pattern);
return sdf.format(new Date());
* @param args
public static void main(String[] args) {
Convert con = new Convert();
System.out.println(con.getDateTime("hh:mm:ss"));
[ November 23, 2005: Mess
private Locale locale = Locale.US;
private static final String[] tzStrings = {
"America/New_York",
"America/Chicago",
"America/Denver",
"America/Los_Angeles",
Date now = new Date();
for ( TimeZone z : zones) {
DateFormat df = new SimpleDateFormat("K:mm a,z", locale);
df.setTimeZone(z);
String result = df.format(now);
System.out.println(result);
String date="05/19/2008 04:30 AM (EST)";
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy hh:mm aaa (z)");
TimeZone.setDefault(TimeZone.getTimeZone("PST"));
long millis = sdf.parse(date).getTime();
sdf.setTimeZone(TimeZone.getDefault());
System.out.println(sdf.format(new Date(millis)));
[ November 23, 2005: Mes -
Need code for a function module- Urgent
Hi friends,
I have a requirement where I am giving material description as an import parameter in the function module. ( Material description could be a wild search -- say - Mat* ) I want a sub routine in the function module which should get all the materials from the database ( mara or makt..not sure ) for the user entered Material description.
I want this particular code to be written using a sub-routine using formal parameters inside this fm . Could any one send me the code for this.
Thanks in advance,
Vishnu.Hi Vishvanath,,
Please find the below code.
DATA : BEGIN OF itab OCCURS 0,
matnr LIKE makt-MATNR,
MAKTX LIKE makt-MAKTX,
END OF itab.
DATA : BEGIN OF itab1 OCCURS 0,
matnr LIKE makt-MATNR,
MAKTX LIKE makt-MAKTX,
END OF itab1.
data : a(5) type c value 'TEST'.
perform mat_no using a.
form mat_no using p_a.
data : lv_temp(4) type c.
select matnr maktx from makt into table itab.
loop at itab.
lv_temp = itab-maktx+0(4).
if lv_temp = p_a.
move itab to itab1.
APPEND ITAB1.
endif.
endloop.
loop at itab1.
write :/ itab1.
endloop.
endform. " mat_no
Thanks.
Amjad. -
Code for save event in review screen of ess
Hi All,
I was unable to find the code for trigger of the save event when user clicks save button on ess application lastscreen in the VcPerAddressRevieww component, its not in view or controller of the component.When user hits save in the last screen after review where is programming code which is triggering the save event in any ESS application.
Thanks.nithya,Thanks for your answer but my question is on out of box ess source code for example in the review and save screen of ess application , when the user clicks save button there should be somewhere a call to fc component that calls the rfc to update the backend.I am looking for that call in the code, i didnot found it in VcperAddressReview Component controller or in the view.Is it a part of CC component or where can i find the call on save button hit.
Thanks,
sameer -
Creating Java code for the function module
Hi Colleagues,
I have a fuction module in ABAP system. Now I want to Generate java code for the FM.
I cam to know that we can achive that using AXIS, By getting the XML file for the fuction module and generate Java
Class file using that XML file.
Can any one tell me how to achive it.
Or any other way to do that?
Please provide you valid suggestions.
Regards,
SathyaHi,
You can integrate axis2 in eclipse. I think you have to find the plugin for that.
After that you can let axis generate the jave code (stubs and proxies) for your web service via the wsdl file.
Kind Regards,
Robin -
ABAP Query Code for Count Function
Hi,
I have an ABAP Query and just created a new field which requires ABAP Code to do the following :-
The report is for Purchase Orders and Purchase Requisitions. 2 Purchase Orders may have the same requisition, so what I want to do is count the number of the same requisitions in the report
e.g.
PO Req Count
45000001 10015 2
45000020 10015 2
Can some one please provide with the full code? Points will be awarded
ThanksHi,
No errors in the below code but it is bringing a value 0 even though there are duplicates in the table which is suggesting to me that the code is not working.
Any help would be appreciated. Thanks
DATA : BEGIN OF itab OCCURS 0,
aufnr LIKE ekkn-aufnr,
END OF itab.
DATA : count(2) TYPE p.
DATA : no_of_records(3) TYPE p.
Clear no_of_records.
select aufnr from ekkn into itab.
endselect.
SORT itab BY aufnr.
LOOP AT itab.
ADD 1 TO count.
AT END OF aufnr.
IF count GE 2.
ADD count TO no_of_records.
ENDIF.
CLEAR count.
ENDAT.
ENDLOOP.
*WRITE :/ 'Good Bye'.
DUPLICATES = NO_of_records. -
GUI status: codes for standard functions
Hi Experts,
I have created a custom GUI status in my screen and enabled BACK, CANCEL, EXIT, PRINT and FIND buttons.
With coding BACK, CANCEL and EXIT are working fine but what codes i should write for PRINT and FIND? Can anybody give me some sample codes.
Points assured.
Jogdand M BHi
For PRINT:
NEW-PAGE PRINT ON.
WRITE: 'Bye Bye'.
For FIND, something like
FIELD-SYMBOLS: <FIELD> TYPE ANY.
LOOP AT SCREEN.
ASSIGN (SCREEN-FIELD) TO <FIELD>.
IF <FIELD> CS MY_STRING'.
SET_CURSOR = SCREEN-FIELD.
EXIT.
ENDIF.
ENDLOOP.
In the PBO
SET CURSOR FIELD SET_CURSOR.
Max -
Trusted code for importData function
Hi,
I want to call xfa.host.importData with file path. I understand that this can be called with copying .js file under user's ApplicationData/Adobe/Javascript folder. I tried to add following code in JS to make it a trusted code, but I get exception in Javascript Debugger.
Code in JS file kept in Javascript folder
function importXML()
xfa.host.importData("3dPdfReport_1_data.xml");
myFunc = app.trustedFunction( function ()
// privileged and/or non-privileged code here
app.beginPriv();
importXML();
app.endPriv();
// privileged and/or non-privileged code here
I called myFunc in docReady event. But I get following exception.
xfa is not defined
3:XFA:form1[0]:#subform[0]:ListBox1[0]:docReady
If I call xfa.host.importData(""); in docReady event then it works fine by showing file dialog to choose the XML file to import. Please let me know if I'm missing something here.
Thanks
raghuvanPrivate Sub Duplicate(ByVal FormUID As String, ByVal strDocNum As String)
objRecord = objSBOAPI.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
strQuery = "SELECT * FROM [@Tablename] WHERE DocEntry = '" & strDocNum & "'"
objRecord.DoQuery(strQuery)
If objRecord.RecordCount > 0 Then
strQuery = "UPDATE [@Tablename] SET Status = 'C' Where DocEntry = '" & strDocNum & "'"
objRecord = objSBOAPI.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
objRecord.DoQuery(strQuery)
strDocNum = ""
End If
End Sub
With Regards
Micheal -
Match code help and coding for save menu for PF STATUS and BDC programming
hi,
pl guide me step by step i'm new to abap.
1) i need search help for field V_TVAG-BEZEI..this is field is there in my table control to select the values from the line of list for reason to reject.
2) i need code for SAVE button which i've created in PF STATUS.
3) do i need to to BDC programming for save and update the table control in return order as well as in sales order?...if yes how can i do that?hi,
pl guide me step by step i'm new to abap.
1) i need search help for field V_TVAG-BEZEI..this is field is there in my table control to select the values from the line of list for reason to reject.
2) i need code for SAVE button which i've created in PF STATUS.
3) do i need to to BDC programming for save and update the table control in return order as well as in sales order?...if yes how can i do that? -
Trying to create a Histogram type/object for aggregate functions
Hi,
I am trying to create an aggregate function that will return a histogram
type.
It doesn't have to be an object that is returned, I don't mind returning
a string but I would like to keep the associative array (or something
else indexed by varchar2) as a static variable between iterations.
I started out with the SecondMax example in
http://www.csis.gvsu.edu/GeneralInfo/Oracle/appdev.920/a96595/dci11agg.htm#1004821
But even seems that even a simpler aggregate function like one strCat
below (which works) has problems because I get multiple permutations for
every combination. The natural way to solve this would be to create an
associative array as a static variable as part of the Histogram (see
code below). However, apparently Oracle refuses to accept associate
arrays in this context (PLS-00355 use of pl/sql table not allowed in
this context).
If there is no easy way to do the histogram quickly can we at least get
something like strCat to work in a specific order with a "partition by
... order by clause"? It seems that even with "PARALLEL_ENABLE"
commented out strCat still calls merge for function calls like:
select hr,qtr, count(tzrwy) rwys,
noam.strCat(cnt) rwycnt,
noam.strCat(tzrwy) config,
sum(cnt) cnt, min(minscore) minscore, max(maxscore) maxscore from
ordrwys group by hr,qtr
Not only does this create duplicate entries in the query result like
"A,B,C" and "A,C,B" it seems that the order in rwycnt and config are not
always the same so a user can not match the results based on their
order.
The difference between my functions and functions like sum and the
secondMax demonstrated in the documentation is that secondMax does not
care about the order in which it gets its arguments and does not need to
maintain an ordered set in order to return the correct results. A good
example of a built in oracle function that does care about all its
arguments and probably has to maintain a similar data structure to the
one I want is the PERCTILE_DISC function. If you can find the code for
that function (or something like it) and forward a reference to me that
in itself would be very helpful.
Thanks,
K.Dingle
CREATE OR REPLACE type Histogram as object
-- TYPE Hist10 IS TABLE OF pls_integer INDEX BY varchar2(10),
-- retval hist10;
-- retval number,
retval noam.const.hist10,
static function ODCIAggregateInitialize (sctx IN OUT Histogram)
return number,
member function ODCIAggregateIterate (self IN OUT Histogram,
value IN varchar2) return number,
member function ODCIAggregateTerminate (self IN Histogram,
returnValue OUT varchar2,
flags IN number) return number,
member function ODCIAggregateMerge (self IN OUT Histogram,
ctx2 IN Histogram) return number
CREATE OR REPLACE type body Histogram is
static function ODCIAggregateInitialize(sctx IN OUT Histogram) return
number is
begin
sctx := const.Hist10();
return ODCIConst.Success;
end;
member function ODCIAggregateIterate(self IN OUT Histogram, value IN
varchar2)
return number is
begin
if self.retval.exist(value)
then self.retval(value):=self.retval(value)+1;
else self.retval(value):=1;
end if;
return ODCIConst.Success;
end;
member function ODCIAggregateTerminate(self IN Histogram,
returnValue OUT varchar2,
flags IN number)
return number is
begin
returnValue := self.retval;
return ODCIConst.Success;
end;
member function ODCIAggregateMerge(self IN OUT Histogram,
ctx2 IN Histogram) return number is
begin
i := ctx2.FIRST; -- get subscript of first element
WHILE i IS NOT NULL LOOP
if self.retval.exist(ctx2(i))
then self.retval(i):=self.retval(i)+ctx2.retval(i);
else self.retval(value):=ctx2.retval(i);
end if;
i := ctx2.NEXT(i); -- get subscript of next element
END LOOP;
return ODCIConst.Success;
end;
end;
CREATE OR REPLACE type stringCat as object
retval varchar2(16383), -- concat of all value to now varchar2, --
highest value seen so far
static function ODCIAggregateInitialize (sctx IN OUT stringCat)
return number,
member function ODCIAggregateIterate (self IN OUT stringCat,
value IN varchar2) return number,
member function ODCIAggregateTerminate (self IN stringCat,
returnValue OUT varchar2,
flags IN number) return number,
member function ODCIAggregateMerge (self IN OUT stringCat,
ctx2 IN stringCat) return number
CREATE OR REPLACE type body stringCat is
static function ODCIAggregateInitialize(sctx IN OUT stringCat) return
number is
begin
sctx := stringCat('');
return ODCIConst.Success;
end;
member function ODCIAggregateIterate(self IN OUT stringCat, value IN
varchar2)
return number is
begin
if self.retval is null
then self.retval:=value;
else self.retval:=self.retval || ',' || value;
end if;
return ODCIConst.Success;
end;
member function ODCIAggregateTerminate(self IN stringCat,
returnValue OUT varchar2,
flags IN number)
return number is
begin
returnValue := self.retval;
return ODCIConst.Success;
end;
member function ODCIAggregateMerge(self IN OUT stringCat,
ctx2 IN stringCat) return number is
begin
self.retval := self.retval || ctx2.retval;
return ODCIConst.Success;
end;
end;
CREATE OR REPLACE FUNCTION StrCat (input varchar2) RETURN varchar2
-- PARALLEL_ENABLE
AGGREGATE USING StringCat;GraphicsConfiguration is an abstract class. You would need to subclass it. From the line of code you posted, it seems like you are going about things the wrong way. What are you trying to accomplish? Shouldn't this question be posted in the Swing or AWT forum?
-
ABAP Sample code for HR_MAINTAIN_MASTERDATA
Hi folks,
I want to delimit a record in the HR master Table wi the help of Function Module HR_MAINTAIN_MASTERDATA, but its not updating HR master table correctly so please send me some sample code for that function module.
usefull points will rewarded.
Reg,
Hariharanhi
good
check with this code
Call update function module:
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
PERNR = SS300_0001T-PERNR
ACTIO = OPERATION
BEGDA = VALIDITYBEGIN
ENDDA = '99991231'
SUBTY = SPACE
NO_ENQUEUE = SPACE
IMPORTING
RETURN1 = RETURN
TABLES
PROPOSED_VALUES = VALUES
MODIFIED_KEYS =
EXCEPTIONS
OTHERS = 1.
IF RETURN IS INITIAL.
CONCATENATE SS300_0002-VORNA SS300_0002-NACHN
INTO ENAME SEPARATED BY SPACE.
CONDENSE ENAME.
MESSAGE S006 WITH ENAME SPACE.
ELSE.
MESSAGE ID RETURN-ID
TYPE 'S'
NUMBER RETURN-NUMBER
WITH RETURN-MESSAGE_V1 RETURN-MESSAGE_V2
RETURN-MESSAGE_V3 RETURN-MESSAGE_V4.
ENDIF.
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0ce464dc8b11d2803800c04f99fbf0/content.htm
reward point if helpful.
thanks
mrutyun^
Maybe you are looking for
-
Itunes does not recognise ipod touch
i've reinstalled the latest version of itunes plus ios 6 and followed the troubleshooting sections for Windows 7 PC but itunes does not recognise the ipod touch. the USB cable is ok (charges the ipod anyway) but when I run diagnostics it does not se
-
I recently updated my software on my iphone 4 to the iOS 5 and ever since i have had no service. I have been on the phone constantly with at&t tech support and apple. Tech support cannot figure it out and said they think my problem has everything to
-
Macs Rebooting for No Apparent Reason
Hi, I have an iMac running OS X 10.8.2 at my office and a Mac Pro running OS X 10.8.2 at home, and for the past week or so the both have been rebooting themselves. The problem started with me walking into my office and finding the iMac computer at th
-
Bring Back "Wired Clients" List to Airport Utility
Hi Apple, Can you please bring back ability to see "Wired" Clients connected to Timecapsule in Airport Utility for iOS and Mavericks. Thanks Shawn
-
Should I advise my client to purchase contribute?
I'm a longtime user of GoLive and now, primarily, Dreamweaver. I'm about to start building a site for a small business that wants to do minor content editing in-house--the person doing it has little technical expertise but is generally comfortable on