Function Module To Check and Make changes
hi
i have created a FM which have following code , i have created that one for updating header data of Notification
the Fm module are as following code
Import
Notif Type qmnum (check box pass value)
Export
TT_data type zNotif_data (where ZNotif_data is a table type which having fields qmnum qmart priok etc....)
source code:---
select qmnum
qmart
priok
ernam
qmdat
from qmel
into table tt_data
up to 1000 rows.
data : it_tlines like tline occurs 0 with header line.
data : it_text1 like thead occurs 0 with header line.
data : x_header type thead.
x_header-tdobject = 'feature'.
x_header-tdname = '99999996020000'.
x_header-tdid = 'head'.
x_header-tdspras = 'D'.
loop at it_tlines.
it_tlines-tdformat = '*'.
it_tlines-tdline = it_text1-tdtxtlines.
append it_tlines.
endloop.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = x_header
INSERT = ' '
SAVEMODE_DIRECT = 'X'
OWNER_SPECIFIED = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
TABLES
LINES = it_tlines
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
commit work and wait.
update stxh set tdobject = 'D'
where tdobject = notif.
ENDIF.
ENDFUNCTION.
I M rtying it but it is not working.
if any one have idea please help me.
Edited by: Thomas Zloch on Apr 25, 2011 10:50 PM - please cut it down with the exclamation marks
Hi,
Please find a piece of working code for your requirement as mentioned below. This code is working fine in my system.
Edit Text
HEADER-TDOBJECT = 'QMEL'. "Should be given as QMEL in capital letters
HEADER-TDNAME = gfl_notif-QMNUM. "Should pass the Notification number with leading zeros.
HEADER-TDSPRAS = 'E'. "Should be given as E in capital letters
HEADER-TDID = 'LTXT'. "Should be given as LTXT in capital letters
header-tdlinesize = '072'.
>Text1
lines-TDFORMAT = '*'.
lines-TDLINE = 'Text1'. "Pass the Header text values one by one.
APPEND lines to git_lines.
CLEAR lines.
>Text2
lines-TDFORMAT = '*'.
lines-tdline = 'Text2'. "Pass the Header text values one by one.
APPEND LINES to git_lines.
CLEAR lines.
>Text3
lines-TDFORMAT = '*'.
lines-tdline = 'Text3'. "Pass the Header text values one by one.
APPEND LINES to git_lines.
CLEAR lines.
Here call function CREATE_TEXT ior SAVE_TEXT
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = HEADER-TDID
FLANGUAGE = HEADER-TDSPRAS
FNAME = HEADER-TDNAME
FOBJECT = HEADER-TDOBJECT
SAVE_DIRECT = 'X'
FFORMAT = '*'
TABLES
FLINES = GIT_LINES
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3
OR
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = HEADER
INSERT = ' '
SAVEMODE_DIRECT = 'X'
TABLES
LINES = GIT_LINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
HERE PUT A BREAK POINT AND SEE WHETHER SY-SUBRC IS EQUAL TO ZERO OR NOT. IF NOT EQUAL TO ZERO, THEN CHECK WHAT IS THE ERROR MESSAGE AND CORRECT THE SAME.
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 'COMMIT_TEXT'
EXPORTING
OBJECT = header-tdobject
NAME = header-tdname.
set long text flag because create text does not do it
SELECT SINGLE indtx INTO long_text_ind FROM qmel WHERE qmnum = gfl_notif-QMNUM. "PROVIDE THE NOTIFICATION NUMBER WITH LEADING ZEROS.
IF long_text_ind IS INITIAL.
UPDATE qmel SET indtx = 'X' WHERE qmnum = gfl_notif-QMNUM. "PROVIDE THE NOTIFICATION NUMBER WITH LEADING ZEROS.
ENDIF.
Thanks & Regards,
Harish
Similar Messages
-
Function module to create and change delivery
Hi,
I need to create a function module to create and change delivery using the same function module.
For this I want to call the bapi's BAPI_OUTB_DELIVERY_CREATE_SLS
and BAPI_OUTB_DELIVERY_CHANGE.
So what are the variables I need to declare in source code of my function module.
Can anybody please suggest me.
thanks,
SudheerHi Sudheer,
Check this out
In the BAPI BAPI_OUTB_DELIVERY_CREATE_SLS
You need to provide
SHIP_POINT - Goods receiving point for the returned goods.
DUE_DATE - Delivery creation date selected as december 12
9999 unless specified.
DEBUG_FLAG makes analysis of the process earlier .
call function 'BAPI_OUTB_DELIVERY_CREATE_SLS'
DESTINATION logsys
EXPORTING
SHIP_POINT = 'MD01'
DUE_DATE = sy-datum
DEBUG_FLG = 'X'
importing
*delivery = lf_vbeln
*num_deliveries = lf_num
*tables
*sales_order_items = lt_order
*extension_in = lt_extin
*deliveries = lt_deli
*created_items = lt_itm
*extension_out = lt_extout
*return = lt_return
For the BAPI_OUTB_DELIVERY_CHANGE.
Please read the documentation of the function provided there.
A Wiki To support your need.
Link: [Wiki|https://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery+%28VL02%29]
hope your query resolves soon.
Have a best day ahead. -
Standard function module for checking the sales organization and plant
Hi all,
Does have standard function module for checking the relationship between sales organization and plant?
Thanks a lot!
Ninahi
good
check these BAPIS
BAPI_SALESGROUP_GET_DETAIL Sales Group: Display Name
BAPI_SALESOFFICE_GET_DETAIL Sales Office: Display Name
BAPI_SALESOFFICE_GRP_EXIST Sales Office / Sales Group: Existence Check
BAPI_SALESORG_EXIST Sales Organization: Existence Check
BAPI_SALESORG_GET_DETAIL Sales Organization: Display Data
BAPI_SALESORG_OFFICE_EXIST Sales Organization / Sales Office: Existence Check
PLANT=>
BAPI_PROMO_GETSITEPLANNING Detailed Data for the Plants Involved in a Promotion
thanks
mrutyun^ -
Function module to check whether Goods Receipt of a Purchase Order is done.
Hi,
Is there any function module to check whether Goods Receipt of a Purchase Order is already done?
Taking into consideration reversals.
Thanks.Hi,
I think u can do this by using a simple select query.
u have to go in EKBE table.
put the PO no. in field EBELN + EBELP(line item) and get the material docuement no. in field BELNR + BUZEI(line item).
Thanks
Jitendra -
Function module to check if a given file/folder path is valid or not?
Hi,
I am using function modules GUI_DOWNLOAD and GUI_UPLOAD.
Is there any function module to check if a given file/folder path is valid or not?
Thanks.Hi Kumar ,
REPORT zdir_test.
TYPE-POOLS: abap.
DATA: v_dir TYPE string.
DATA: v_bol TYPE abap_bool.
v_dir = 'c:\sap\'.
CALL METHOD cl_gui_frontend_services=>directory_exist
EXPORTING
directory = v_dir
RECEIVING
result = v_bol
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
not_supported_by_gui = 4
OTHERS = 5.IF NOT v_bol IS INITIAL.
WRITE:/ 'Directory exists.'.
ELSE.
WRITE:/ 'Directory does not exist.'.
ENDIF.
Regards,
Sachin M M -
Function Module tto check special characters in a field
Hi All,
I have a requriemnt where i need to make sure there are no special characters allowed
in a paremeter ( is there any functional module to check it)
r anyway to work with
Thank in advance for u replies.
Regards,
Riyaz.DATA: vergleich_string(100) VALUE
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.
CONCATENATE vergleich_string ' 1234567890,./!@#$%&*-_+=~|\[{]}()"'
INTO vergleich_string.
use condition.
if var ca vergleich_string.
raise error message.
endif. -
BAPI Function module for transaction ME32K for change
Please let me know the name of the BAPI Function module for transaction ME32K for change the contract.
Hi Krishan,
I have checked but their is no BAPI called
BAPI_CONTRACT_CHANGE.
If I am wrong plz correct me with the procedure to view the above BAPI in SAP System.
Regards,
Nitin -
Anyone can help answer this? Thank you,
Most web site files can be edited using a simple text editor. It is not clear to me what you are looking for when you ask if you can download up to date Adobe Dreamweaver and still access and make changes. You certainly can, but you need to purchase the software to do so if you mean you want the latest versions.
The most current version is available thru a subscription basis.
Creative Cloud Plans
https://creative.adobe.com/#plans
You can always download a trial version which you can try for thirty days. Trial versions are fully functional. -
Function module to check source system
Hello
Can some one help me by providing the name of the function module to check the Source system connection?
I know that in the source system we can right click and check.
But i want to know the function module to check the status.
Thanks in advance
Kind regards
M.A
Edited by: M.A on Aug 19, 2008 12:42 PMHi shasank,
Thanks for the info.
I had given the tech name of the source system as an input to the function module.
But it raises an exception that destination does not exists.
But the source system connection is ok.
Regards
M.A -
Function module to find out the changed values from tables
What is the standard function module to find out the changed values (the old & new values) from tables in SAP ?
Hi Harish,
Please elaborate your requirement...
Please have a look on CDHDR AND CDPOS tables... it contains changed data... but all chages are not being tracked using it..
Try Below FMs as well..
For Header Level...
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
date_of_change = cdhdr-udate
objectclass = cdhdr-objectclas
objectid = cdhdr-objectid
time_of_change = cdhdr-utime
username = cdhdr-username
TABLES
i_cdhdr = icdhdr
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
For Item Level
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = icdhdr-changenr
IMPORTING
header = cdhdr
TABLES
editpos = icdshw
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
Please help!
It would be tremendously helpful to be able to access, set restrictions, and make changes from the parents device, to all devices under the same iTunes account, so that I could make changes to my kids devices without physical access.
I understand that I can set up a different Apple ID for the kids devices, or take physical control of the device and make the changes myself. However, my teenage son is technically savvy enough to have a job in Silicon Valley, as are most young people these days. However, in order to access his devices the current way, I first have to bypass the four digit pass code. This starts a fight of why I need in the device and continues to escalate. The argument that I am the parent will gain access but the fight is simply exhausting, and quite frankly shouldn't have to happen at all. He is not yet an adult, he did not pay for his iPad or iPhone and I, as a parent, should have not only have the right to change options at will, and from anywhere, but look at history or current activity when I feel like it.
I currently have the settings where app and in-app purchases require my password to be put in, and he must come to me to type it in, but I need more control and would like, and should be able to access any of our six devices and make individual changes simply by logging in to my account, with my password.
If I can see all my devices on the "Lost My iPhone" app, this technology should be easy to make happen.
C'mon parents! I have a pretty good kid, given all things that they can get into, but I am not stupid. For everything I see has been done, there is much more I haven't seen. I want my children to be kept safe and be able to know what they are looking at or listening to. We parents are the only ones who know our beliefs and what our kids can handle and when.
Thanks for any support or information that I may be missing in order to fulfill my request.There are mobile device management solutions that can do this, including in Apple's OS X Server system, but most parents generally find that setting this up is more work than it's worth. If you're interested, though, there are a couple that at least purport to be free (I don't know if there are any hidden "gotchas"):
http://www.unwireddevicelink.com/features/
https://meraki.cisco.com/products/systems-manager
and Apple's system:
http://www.apple.com/osx/server/features/#profile-manager
I don't think any, however, allow you to see current activity or browser history. iOS doesn't expose those to access from MDM solutions, to the best of my knowledge.
Regards. -
Function Modules for Data and Time
Hi all,
I need 2 function modules for date and time. when we pass current data(sy-datum) and current time (sy-uzeit) into function modules, shoud get date in <b>dd/mm/yyyy or dd.mm.yyyy</b> and time in<b> HH:MM:SS</b> formats.
Thanks in advanceHi Ranjith,
i think this will b usefull for you..
SAP Bar Chart Function Modules and what they are used for
Function module
Used for
BARC_GRAPHIC_PBO
Starting bar chart at PBO time, using a graphic profile (parameter PROFILE)
BARC_GRAPHIC_PAI
Analyzing data returned by the graphic
BARC_SET_TIME_AXIS
Setting start and end of time axis
BARC_SET_OPTIONS
Setting options
BARC_ADD_CHART
Creating a chart
BARC_SET_CHART_ATTRIB
Setting chart attributes
BARC_ADD_SECTION
Creating a section on the time axis
BARC_SET_SECTION_ATTRIB
Setting section attributes
BARC_ADD_RIBBON
Adding a ribbon to the time axis
BARC_SET_RIBBON_ATTRIB
Setting attributes for ribbons in the chart
BARC_ADD_GRID
Adding a time grid
BARC_SET_GRID_ATTRIB
Setting grid attributes
BARC_ADD_LAYER
Adding a layer (graphic elements)
BARC_SET_LAYER_ATTRIB
Setting layer attributes
BARC_ADD_LINE
Adding a line
BARC_ADD_CALENDAR
Creating a calendar
BARC_SET_CALENDAR_ATTRIB
Setting attributes for a calendar
BARC_ADD_TIME_PROFILE
Creating time profiles
BARC_SET_TIME_PROFILE_ATTRIB
Setting attributes for time profile
BARC_ADD_INTERVAL
Adding a time interval
BARC_SET_INTERVAL_ATTRIB
Setting time interval attributes
BARC_ADD_TIME_OBJECT
Creating a time object
BARC_CONVERT_DATE
Creating a date string in bar chart format
BARC_REVERT_DATE
Converting a date string in bar chart format to date and time
BARC_ADD_DATELINE
Creating a date line
BARC_SET_DATELINE_ATTRIB
Setting dateline attributes
BARC_GET_PROFILE_CONTENTS
Obtaining profile contents for customizing a chart
BARC_GET_COLUMN_WIDTH
Selecting new column width
BARC_SET_COLUMN_WIDTH
Setting the column width
BARC_GET_TEXTINDEX
Obtaining the text index of a field
BARC_SET_LABELS
Positioning the chart display
BARC_SET_COLUMN_ATTRIB
Setting column attributes
BARC_SET_ROW_ATTRIB
Setting row attributes
BARC_SET_ROW_HEIGHT
Setting the line height
BARC_SET_MAXCHARTS
Setting the maximum number of charts sent
<b>If its usefull reward points
</b> -
I have created a form in InDesign, exported to a pdf, then created an editable form and saved. When I open the form and make changes and save, then reopen the changes are there. If try to email this form as an attachment after editing, the attachment is always minus the edits. ????
Hi chuck,
If you ave created the form and then filling it yourself and saving the form, the filled data should be there when you reopen the same form.
Can you please send the form to me at [email protected] so that I can have a look.
Regards,
Rave -
How can I get an excel spreadsheet onto the iPad and make changes to it during my meeting this afternoon?
I just bought splashtop, you have to have your home computer online,and download the pc version. I have used it ot watch movies and to "go to work" on my ipad. It controls the desktop through the ipad. Whiteboard by splashtop does that and more and is on sale. The education director at the hospital I work at is using that one.
Splashtop 4.99 remote desktop(or laptop) control. Whiteboard 9.99 is remote control and more 9.99
Julie -
G'day. I am using iMovie 11 and need to clear disk space. How can I do that using an external drive, leaving me the option to go back and make changes or access old events or projects from that external drive?
The slightly bigger question is whether you want to move all movie content to the external drive (essentially meaning that drive will always need to be attached when you're working with your videos), or whether you just want to archive older videos off to the external drive.
If you want to move all videos, then just move the 'Movies' folder in your home directory to the external drive, then create an alias of the external 'Movies' back in to your home directory. Now the 'Movies' icon in your home directory will point to the external drive and everything will just work (as long as the external drive is attached when you launch iMovie)
If you want to archive older movies then each Movie should have its own subdirectory within your Movies folder. These can easily be moved off to the external drive, and moved back should you ever need to work on those movies again.
Maybe you are looking for
-
Install swing application on server/desktop with database
Hi, I developped a swing application which I need to install soon. It's the first time I install an application on my own, so any help would be welcome. I use maven for build, hibernate for the database access. Is there anything I need to take into c
-
My MacBook Pro has a low-level hum or buzz coming out the audio port whenever sound is coming out of it, and for 25 seconds more. Then it stops. The noise sounds a bit like the 60-Hz hum or 120-Hz buzz from tube amps, but it occurs even when my MacB
-
Page Not Displaying at all Possible Permission Issue
I am working on a site, but when I upload the page and try to view it in the browser it doesn't display. I think it may be a permission issue due to the AC_RunActiveContent.js, but I am not sure. Any help on this would be greatly appreciated!
-
How to install java in Fedora linux?
-
My Purchases, Different Computers
I recently downoaded a bunch of music onto a home computer, but I use a different comp at school, and I did not burn the songs onto a CD- is there a way to get the purchased songs on my current mac? Would this be encompassed within the five computer