Userexit to write PAI code
Hi All
I had to write code at PAI event ON VALUE REQUEST for a custom field which I had added to VL02N transaction on the header --> processing tab.Can anybody give the userexit which is suitable to write this code.The program name is SAPMV50A.
Regards
Praneeth
Hi
Go to SE80 transaction and then choose PROGRAM from dropdown and then give your Program name(SAPMV50A) then it will display the tree , there you can see all PAI Modules present in the program. Depending on the requirement choose the Module and write your code.
Reward points if helpful.
Regards
Swathi
Similar Messages
-
Today I had the unhappy experience of a company or site I visited that installed three programs I didn't want. I uninstalled all of them in windows control panel (]remove programs). This however did not solve my problem.....no matter what I did I could not get startpage to come back. I did many things like go to tools and options and type it in close out and open and it was still not there. Finally my grandson uininstalled Firefox and reinstalled it and it was back.
My question is: Can you not write a code in the software that prevents this from happening and when people install Firefox ask them if they want this feature or write an ad on. Please this problem grows every day it gets worse. Before all you had to do is change it back now one can not get rid if it so easily.
We really would love this feature ask anyone.
Susan and TY for listening.Thanks You for your feedback. However this is support forum, You should suggest new features trought ''Help -> Send Your opinion'' or [https://input.mozilla.org/pl/feedback/firefox/31.0/ this website].
By the way there is method described in [http://kb.mozillazine.org/Locking_preferences this support article], maybe someone using Windows will write user friendly guide how to do it.
All I can tell you is that you have to lock ''browser.startup.homepage'' to ''about:home'' -
How to write source code in smart forms?
hi friends,
can anyone can help me in writing sorcecode in smartforms r
any materail link.
if it is helpful points can b rewarded.Thanks in advance.Hi,
Check this link for
how to write source code in smart forms?
http://****************/Tutorials/Smartforms/GettingStarted/SimpleText.htm
You can write Source Code in smartforms By Choosing Program Lines.
Check this link with Screen Shots
http://****************/Tutorials/Smartforms/PO/page1.htm
Reward All Helpfull Answers
Regards
Fareedas
Edited by: Fareeda Tabassum S on May 21, 2008 3:09 PM -
How to write a code for open new txt file in swing
hai all,
now i do one project in java.that project's GUI is Swing. But i don't known swing (basic).So how to write a code for open new txt file and "Open window " in menu item on swing.that means when i click the "New" on menu that time open a new txt file. open also like that type.
plz give me that code ! very urgent
Advance Thanks !
RSKSwing Tutorial:
http://java.sun.com/docs/books/tutorial/uiswing/index.html
Since you don't know the basic of swing read the tutorial, it is for your own good because it is useless if we provide you with a code you don't even understand and how it works.
If you want a menu read the tutorial about using menus and for opening a file read using JFileChooser.
note: don't use the word urgent because it implies that your problem is more important than others. -
How can we write the code for opening the command prompt and closing the
how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)
rakeshsikha wrote:
how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)? -
Hi All,
Can anyone tell me how two to write HTML code in
webdynpro application
to make myself clearer. this is what i want.
IWDTextView txt = (IWDTextView) view.createElement(IWDTextView.class, "txt" );
txt.setText("<hr>" + "Today Order");
But the above code is displaying literal string <hr> by the mean of <HR>
regards
ArunHi Nibu,
What I actually want to do is that- I have designed
a view having order details one below other on same screen.
What I want is to print the order detail page wise.
i.e Ist Orderdetail on first page , 2nd Order detail on 2nd page and so on.....that is I want a page break.
I got a code to provide a page break which is in javascript -
<script>
//<!--
document.write("hi");
document.write("<p style=\"color: blue; page-break-before: always\" >");
document.write("hiafter");
//-->
</script>
How 2 use this code in my webdynpro application.....or
is there any other mean to do so.
regards
Arun -
Html snippet is not working on iweb 9. i can't write a code, Html snippet is not working on iweb 9. i can't write a code
You don't get this window when you insert an HTML snippet on the page?
Click to view full size
If you don't try the following:
delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
Click to view full size
launch iWeb and try again.
OT -
Hi,
I have a internal table T. when the t-zuonr is blank, the ALV look like:
t-zuonr document no data
200630303 AB 2007.08.31
200627855 AB 2007.06.30
200627887 AB 2007.06.30
MSFT047/07 93631164 RV 2007.10.19
MSFT061/07 93594484 RV 2007.10.09
MSFT061/07 93594485 RV 2007.10.09
MSFT061/07 93594486 RV 2007.10.09
MSFT061/07 93594487 RV 2007.10.09
MSFT061/07 93594488 RV 2007.10.09
MSFT061/07 93594489 RV 2007.10.09
MSFT061/07 93594490 RV 2007.10.09
*I need to not show the company which t-zuonr is space.
How can I write the code?*
The original source code is as following:
SORT t.
LOOP AT t.
AT NEW bukrs.
CLEAR anz_dl.
CLEAR htext-anzahl.
CLEAR htext-datei.
htext-text1 = ' records writen in file '.
CLEAR p_pfad.
CONCATENATE
i_pfad
'CU_CC'
t-bukrs
sy-datum+6(2)
sy-datum+4(2)
sy-datum(4)
sy-uzeit
'.txt'
INTO p_pfad.
CLEAR outtab.
REFRESH outtab.
REFRESH: gt_outalv. "INS MG020207
ENDAT.
IF t-shkzg = 'H'.
h_betrg = t-wrbtr * -1.
ELSE.
h_betrg = t-wrbtr.
h_dmbtr = t-dmbtr.
ENDIF.
s-filler1 = s-filler2 = s-filler3 = s-filler4 = s-filler5 = ';'.
s-filler6 = s-filler7 = s-filler8 = ';'.
s-filler9 = s-filler10 = s-filler11 = s-filler12 = s-filler13 = ';'.
s-filler14 = ';'.
s-belnr = t-belnr.
IF t-xblnr NE space. "WD041005a
s-xblnr = t-xblnr. "WD041005a
ELSE. "WD041005a
s-xblnr = t-belnr. "WD041005a
ENDIF. "WD041005a
WHILE s-xblnr(1) EQ '0'. "INS MG130606
SHIFT s-xblnr LEFT. "INS MG130606
ENDWHILE. "INS MG130606
*<<< CR01 CHANGE START BY LI_Y 2008/01/10
IF t-waers = 'JPY'.
h_dmbtr = h_dmbtr.
else.
h_dmbtr = h_dmbtr * 100.
endif.
*>>> CR01 CHANGE END BY LI_Y 2008/01/10
WRITE t-kunnr TO s-kunnr NO-ZERO.
s-lifn2 = s-kunnr.
shift s-lifn2 RIGHT.
s-lifn2(1) = 'R'.
S-KUNNR = T-KUNNR+5(5).
s-bldat+2(1) = '/'.
s-bldat+5(1) = '/'.
s-bldat0(2) = t-bldat4(2).
s-bldat3(2) = t-bldat6(2).
s-bldat6(4) = t-bldat0(4).
s-budat+2(1) = '/'.
s-budat+5(1) = '/'.
s-budat0(2) = t-budat4(2).
s-budat3(2) = t-budat6(2).
s-budat6(4) = t-budat0(4).
s-netdt+2(1) = '/'.
s-netdt+5(1) = '/'.
s-netdt0(2) = t-netdt4(2).
s-netdt3(2) = t-netdt6(2).
s-netdt6(4) = t-netdt0(4).
s-waers = t-waers.
s-dmbtr = t-dmbtr.
s-sgtxt = t-sgtxt.
CLEAR s-twaer.
SELECT SINGLE waers INTO s-twaer
FROM t001
WHERE bukrs = t-bukrs.
IF h_betrg < 0.
hs_betrg+0(1) = '-'.
ELSE.
hs_betrg+0(1) = ' '.
ENDIF.
WRITE h_betrg CURRENCY t-waers TO hs_betrg+1 NO-GROUPING
NO-SIGN
LEFT-JUSTIFIED.
REPLACE ',' WITH '.' INTO hs_betrg.
WRITE hs_betrg TO s-betrg.
IF h_dmbtr < 0.
hs_betrg+0(1) = '-'.
ELSE.
hs_betrg+0(1) = ' '.
ENDIF.
WRITE h_dmbtr CURRENCY t-waers TO hs_betrg+1 NO-GROUPING
NO-SIGN
LEFT-JUSTIFIED.
REPLACE ',' WITH '.' INTO hs_betrg.
WRITE hs_betrg TO s-dmbtr.
s-compcode = t-bukrs. "fw070905
IF p_downl = 'X'.
MOVE s TO outtab-s.
APPEND outtab.
ADD 1 TO anz_dl.
ENDIF.
gs_outalv-belnr = s-belnr. "INS MG020207
*<<<< CR01 START CHANGE BY LI_Y 2007/12/24 " ADD as_outalv-zuonr
gs_outalv-zuonr = s-zuonr. "CR01
*>>>> CR01 EDD CHANGE BY LI_Y 2007/12/24 "ADD as_outalv-zuonr
gs_outalv-kunnr = s-kunnr. "INS MG020207
gs_outalv-bldat = s-bldat. "INS MG020207
gs_outalv-netdt = s-netdt. "INS MG020207
gs_outalv-betrg = s-betrg. "INS MG020207
gs_outalv-waers = s-waers. "INS MG020207
gs_outalv-compcode = s-compcode. "INS MG020207
gs_outalv-budat = s-budat. "INS MG020207
gs_outalv-sgtxt = s-sgtxt.
gs_outalv-kmmnt = s-kmmnt.
gs_outalv-vbeln = s-vbeln.
gs_outalv-xblnr = s-xblnr.
gs_outalv-lifn2 = s-lifn2.
gs_outalv-dmbtr = s-dmbtr.
gs_outalv-twaer = s-twaer.
APPEND gs_outalv TO gt_outalv. "INS MG020207
AT END OF bukrs.
WRITE anz_dl TO htext-anzahl.
WRITE p_pfad TO htext-datei.
CONDENSE htext.
*<<<< CR01 START CHANGE BY LI_Y 2007/12/24
WA_SORT-fieldname = 'BELNR'. " speicfy field name..
WA_SORT-UP = 'X'.
WA_SORT-SUBTOT = 'X'.
APPEND WA_SORT TO I_SORT.
Thank you!!Hi,
Do this. Declare another internal table of identical structure as table t say t1.
REFRESH t1.
APPEND LINES OF t TO t1.
DELETE t1 WHERE zuonr IS INITIAL.
and then use t1 to display the ALV.
Hope this helps.
Regards,
Aditya -
How to write the code to send the report output to the local file.
dear all,
how to write the code to send the report output to the local file.
Thanks & Regards,
Jyothi.Hi,
Try this , it will display report and download the file as well. Just vhange the path and execute
TYPE-POOLS : SLIS.
DATA : IT_SCARR TYPE TABLE OF SCARR,
IT_FCAT TYPE SLIS_T_FIELDCAT_ALV.
SELECT *
FROM SCARR
INTO TABLE IT_SCARR.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
* I_PROGRAM_NAME =
* I_INTERNAL_TABNAME =
I_STRUCTURE_NAME = 'SCARR'
* I_CLIENT_NEVER_DISPLAY = 'X'
* I_INCLNAME =
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE =
CHANGING
CT_FIELDCAT = IT_FCAT
* EXCEPTIONS
* INCONSISTENT_INTERFACE = 1
* PROGRAM_ERROR = 2
* OTHERS = 3
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE = ' '
* I_CALLBACK_PROGRAM = ' '
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* I_STRUCTURE_NAME =
* IS_LAYOUT =
IT_FIELDCAT = IT_FCAT
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* 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
* IR_SALV_LIST_ADAPTER =
* IT_EXCEPT_QINFO =
* I_SUPPRESS_EMPTY_DATA = ABAP_FALSE
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_SCARR
* 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.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
EXPORTING
* BIN_FILESIZE =
FILENAME = 'C:\Documents and Settings\sap\Desktop\Hi.xls' " Change path
* FILETYPE = 'ASC'
* APPEND = SPACE
* WRITE_FIELD_SEPARATOR = SPACE
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = SPACE
* WRITE_LF = 'X'
* COL_SELECT = SPACE
* COL_SELECT_MASK = SPACE
* DAT_MODE = SPACE
* CONFIRM_OVERWRITE = SPACE
* NO_AUTH_CHECK = SPACE
* CODEPAGE = SPACE
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = SPACE
* TRUNC_TRAILING_BLANKS_EOL = 'X'
* IMPORTING
* FILELENGTH =
CHANGING
DATA_TAB = IT_SCARR
* EXCEPTIONS
* FILE_WRITE_ERROR = 1
* NO_BATCH = 2
* GUI_REFUSE_FILETRANSFER = 3
* INVALID_TYPE = 4
* NO_AUTHORITY = 5
* UNKNOWN_ERROR = 6
* HEADER_NOT_ALLOWED = 7
* SEPARATOR_NOT_ALLOWED = 8
* FILESIZE_NOT_ALLOWED = 9
* HEADER_TOO_LONG = 10
* DP_ERROR_CREATE = 11
* DP_ERROR_SEND = 12
* DP_ERROR_WRITE = 13
* UNKNOWN_DP_ERROR = 14
* ACCESS_DENIED = 15
* DP_OUT_OF_MEMORY = 16
* DISK_FULL = 17
* DP_TIMEOUT = 18
* FILE_NOT_FOUND = 19
* DATAPROVIDER_EXCEPTION = 20
* CONTROL_FLUSH_ERROR = 21
* NOT_SUPPORTED_BY_GUI = 22
* ERROR_NO_GUI = 23
* others = 24
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
EXPORTING
DOCUMENT = 'C:\Documents and Settings\sap\Desktop\Hi.xls' "Change path
* APPLICATION =
* PARAMETER =
* DEFAULT_DIRECTORY =
* MAXIMIZED =
* MINIMIZED =
* SYNCHRONOUS =
* OPERATION = 'OPEN'
* EXCEPTIONS
* CNTL_ERROR = 1
* ERROR_NO_GUI = 2
* BAD_PARAMETER = 3
* FILE_NOT_FOUND = 4
* PATH_NOT_FOUND = 5
* FILE_EXTENSION_UNKNOWN = 6
* ERROR_EXECUTE_FAILED = 7
* SYNCHRONOUS_FAILED = 8
* NOT_SUPPORTED_BY_GUI = 9
* others = 10
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How can i write the code in xml publisher desktop
hi all
How and where can i write the code in xml publisher desktop ???
shall i know how to write xml code or what ??
in which part can i write the code if i have more than one query ?hi dear
Thanks for ur replay...
What i mean is : i used to work on reports builder,so :
1- i used to create more than query in some reports.
2- create formulas ,procedures....
NOW i want to create the same reports by using xml publisher desktop, so how can i do that...
when i use {color:#ff0000}report wizard{color}, i can not or i don`t know how to use more than one query, create formulas or procedures.
Please help me.
Thanks again. -
How can i write a code to get sume of value from days.
Hi,
how can i write a code to get the sum of value of days(example 1 to 30).
This is in BPS ...
i created multi planning area and creted planning function with {keyfigure name,planning area,days}.
now i want to read all the actual values from basic planing area(basic cube) and calculate the sum of the value.if you have idea can you share the code.
ENTRIES = VARC ( 'zvardays' ). ex(zvardays like 28 days or 29 days or 30 days or 31 days)
COUNT = ENTRIES.
*Get the all the days value from actual
FOREACH PAREA = 'basic planning area'.
COUNT = 1.
DO
SUM = SUM + {amount, count} (amount is a keyfirgure value)
ENDDO.
COUNT = COUNT+1.
SUMACT = SUM.
ENDFOR.
can you correct the above code ....to read the values and sum of the those value.
Thanks...Hi ..
That is ok..
Can you provide sample code for my requirement..
and also how can i pass the error message (can you help me syntax )
and if my acutal-total is not equal to plan-total then
i have to pass the error message and then i have to restrict save the data how i can i restrict(user can not save the data until the values should be equal) .
Can you help me it is very urgent..
thanks.//
Edited by: Eyda rose on Jun 4, 2008 9:29 PM -
How can I write HTML code in this forums
Sorry but I didn't know where to post this thread.....
How can I write HTML code in this forums?Hello,
Every piece of code in your post should be wrapped with the forum tags [ code] and [ /code], without the blanks.
In case of the <a> tag, that is not enough. In this case, you have several options. The most elegant one is to use the entity name for the less-then sign - & lt; - without any spaces. Other options is to add a space between the less-then and the ‘a’ character (and make a note of it) or change the less-then character with a left bracket one.
When posting code, you should always use the forum preview option, just to make sure the forum software “understood” your code correctly.
Hope this helps,
Arie. -
Where to write connection code?
Hai,
In Flex,where we have to write the stratus connection code?
Is it outside the script or inside?you can download some samples to see how to build a application to connect
to stratus.
use
<mx:Script >
<![CDATA[
// action script code here
]]>
</mx:Script>
to write your as3 code
or just
<mx:Script source="yourAScodeFile.as"/>
and write your code in yourAScodeFIle.as.
e.g.
//I don't use debug ver so I use Alert.show() instead of trace();
myapp.mxml
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
creationComplete="connect()">
<mx:Script source="myapp.as"/>
<mx:Button id="conn" label="connect" click="connect"/>
</mx:Application>
myapp.as
import flash.events.NetStatusEvent;
import flash.net.NetConnection;
import mx.controls.Alert;
private const StratusAddress:String = "rtmfp://stratus.adobe.com";
private const DeveloperKey:String = "yourDevelopKey";
private var nc:NetConnection;
private function connect():void
nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS,netConnectionHandler);
nc.connect(StratusAddress + "/" + DeveloperKey);
private function netConnectionHandler(event:NetStatusEvent):void
Alert.show(event.info.code,"info code");
Alert.show(nc.nearID,"peer id"); -
Where to write the code in TMG events
Hi All,
I want to use 05 TMG event.there is so many include programs are there.
In which include i have to write the code.
Please suggest me...
Regards,Raj.Hi Raj,
You can write it inside the Form include i.e LxxxF01., where xxx is the table name.
The other 3 includes are as follows :
1. LxxxI01
2. LxxxO01
3. LxxxTOP
where LxxxI01 and LxxxO01 are used for Process after input and Process before input events resp.
Hope it helps.
Edited by: Rakhi Nair on Oct 5, 2011 10:10 AM -
Do you write GridBagLayout code by hand?
I used to do a lot of Swing development and I became fluent in Swing LayoutManagers -- especially GridBagLayout (which is like a foreign language to most people ;).
I wrote a couple very nice utilities to generate the GridBagLayout code for me based on a drag-and-drop UI and it saved me a lot of time. I am wondering, are there still a lot of people writing such code by hand? I've been working in the JSF world for the past couple years, so I don't know if there's a need for such utilities anymore.
If there is, I might consider spending some time with my utility and packaging it up as a proper application. Or possibly just releasing the source as an open source project?
So, again, does anyone still write GridBagLayout code by hand?Good grief, I'd probably stab myslef repeatedly with a fork, were I to do it by hand. In days of yore I wrote a wrapper class, named GBC (for faster typing). It would contain a set of constructors, creating underlying GridBagConstraints, and then methods for modifying each constraint, and each method returned the object itself. The ok() method returned the underlying constraints object, So, the actual code looked something like:
add(new JLabel("test"), new GBC(0, 0).anchor(WEST).fill(BOTH).ok());or actually:
add("test", new GBC(...));,since my panel's add methods are always overridden to allow easy adding of labels.
But since I stumbled upon MigLayout... I have never looked back. The last time I used GridBagLayout was maybe a year ago. And only to implement a change request to some old codebase.
Edited by: rkr1410 on 2010-10-28 09:58
Edited by: rkr1410 on 2010-10-28 09:59 - aded code tags
Maybe you are looking for
-
Adobe Reader - Need to find a 3D PDF Tools Quick Reference Guide - HELP!!!!
Where can I find a QRG or even detailed instructions on how to use the 3D PDF tools. Showing hotkeys, mouse usage such as "to rotate an object hold down the left mouse button and move cursor". I have not been able to find anything useful on the web
-
Configure DHCP to add non domain computers to DNS
Hi We would like to add non domain computers automaticallly to DNS through our DHCP server. The reason is that we actally use Linux and our Linux admins would like the machines automatically to DNS when receiving a IP. I assumed that it was just a ma
-
Noisy images on projector using 10m DVI cable
I am looking for feedback from other Macbook Pro owners who have tried running a digital projector from the DVI output on the maximum cable lengths that have been successful. Background Info - I am running a wilderness show from my Macbook Pro to a J
-
Problems with classpath and comiling an easy program
Hello everyone: I have downloaded jsdk1.3.1_03, (Windows xp)? what do i type in the class path? Once I am done with setting the classpath. I typed the helloworld program, and it give me an error specified path not found). Please help, through this. S
-
Save most of a long encode - just re-encode a short piece in the middle?
I have just encoded a long project (80 minutes) to a very high quality mp4 file which worked beautifully, but took 40 hours (!) I'm not complaining - my sytem is low end for CS5.5. Here's the question - if I make a new PPro timeline from this mp4 enc