About the developemnt of the report in the alv........can any one help me..
Here is the requirement for a new Z report that lists customer addresses in an ALV display for customers with activity over a certain period.
Use database table VBRK - the billing document header and customer master table KNA1.
1. Selection on sales org. VBRK-VKORG
2. Selection on activity period based on Billing Date VBRK-FKDAT
3. Selection on the payer customer VBRK-KUNRG
4. List u2013 Customer number,
country,
Name 1,
Name 2,
Street ,
Postal Code
city,
Region,
PO Box,
PO box postal code
last activity date ( last VBRK-FKDAT value fetched from VBRK selection )
So for each customer on the selection screen , there will be 1 record in the output.
dear friend,
i am seanding an address report for the case of vendor.
in case of vendor , vendor no. is lifnr
in case of customer, customer no. is kunnr .
adjust this:
adrc table is responsible for the all the address.
pls go through the code and revert back.
if any problem keep in touch.
rewards are expecting.
vivek
START-OF-SELECTION.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = '99'
text = 'Processing ....'.
PERFORM get_data.
PERFORM process_data.
PERFORM display_data.
*& Form get_data
text
FORM get_data .
BREAK SILDEV01.
SELECT lifnr
NAME1
ADRNR
FROM lfA1
INTO TABLE it_lfA1.
SORT it_lfA1.
SELECT lifnr
EKORG
FROM lfM1
INTO TABLE it_lfm1
FOR ALL ENTRIES IN IT_LFA1
WHERE LIFNR = IT_LFa1-LIFNR
and EKORG in SALE.
SORT it_lfm1.
SELECT addrnumber
name1
city1
str_suppl1
str_suppl2
street
str_suppl3
post_code1
country
tel_number
fax_number
FROM adRC INTO TABLE it_ADRC
FOR ALL ENTRIES IN IT_LFA1
WHERE ADDRNUMBER = IT_LFA1-ADRNR.
IF sy-subrc <> 0.
MESSAGE 'No Data Available' TYPE 'S'.
ELSE.
SORT it_ADRC BY name1 .
SELECT LAND1
landx
from
t005t into TABLE IT_T005T
FOR ALL ENTRIES IN IT_ADRC
where land1 = IT_adrc-country
and spras = 'EN'.
ENDIF.
ENDFORM. "get_data
*& Form process_data
FORM process_data .
PERFORM process_mchb_data.
LOOP AT it_LFA1 INTO wa_LFA1.
wa_output-LIFNR = WA_LFA1-LIFNR.
READ TABLE it_lfM1 INTO wa_lfM1 WITH KEY lifnr = wa_LFA1-LIFNR.
wa_output-EKORG = WA_LFM1-EKORG.
READ TABLE it_ADRC INTO wa_ADRC WITH KEY ADDRNUMBER = wa_LFA1-ADRNR.
wa_output-NAME1 = WA_ADRC-NAME1.
wa_output-city1 = WA_ADRC-city1.
wa_output-str_suppl1 = WA_ADRC-str_suppl1.
wa_output-str_suppl2 = WA_ADRC-str_suppl2.
wa_output-street = WA_ADRC-street.
wa_output-str_suppl3 = WA_ADRC-str_suppl3.
wa_output-post_code1 = WA_ADRC-post_code1.
wa_output-country = WA_ADRC-country.
wa_output-tel_number = WA_ADRC-tel_number.
wa_output-fax_number = WA_ADRC-fax_number.
READ TABLE it_T005T INTO wa_T005T WITH KEY LAND1 = wa_ADRC-COUNTRY.
wa_output-LANDX = wa_T005T-LANDX.
IF wa_output-ekorg IS NOT INITIAL.
APPEND wa_output TO it_output.
CLEAR: wa_output,wa_LFM1, wa_lfa1 ,wa_AdRC, WA_T005T .
ENDIF.
ENDLOOP.
ENDFORM. " process_data
*& Form display_data
FORM display_data .
PERFORM field_cat.
PERFORM alv_display.
ENDFORM. " display_data
*& Form process_mchb_data
FORM process_mchb_data .
ENDFORM. " process_mchb_data
*& Form field_cat
*FORM field_cat .
FORM topofpage.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = fheader[]
i_logo = 'ENJOYSAP_LOGO'
I_END_OF_LIST_GRID = 'Hello '
ENDFORM. "TOPOFPAGE
*& Form alv_display
text
FORM alv_display .
DATA: w_dthigh(20).
fcat-fieldname = 'LIFNR'.
fcat-outputlen = 15 .
fcat-seltext_s = 'Vendor No.'.
fcat-seltext_m = 'Vendor No.'.
fcat-seltext_l = 'Vendor No.'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'NAME1'.
fcat-outputlen = 15.
fcat-seltext_s = 'Vendor Name'.
fcat-seltext_m = 'Vendor Name'.
fcat-seltext_l = 'Vendor Name'.
fcat-ddictxt = 'M'.
fcat-inttype = 'CHAR'.
fcat-datatype = 'CHAR'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'STR_SUPPL1'.
fcat-outputlen = 25.
fcat-seltext_s = 'Street 1'.
fcat-seltext_m = 'Street 1'.
fcat-seltext_l = 'Street 1'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'STR_SUPPL2'.
fcat-outputlen = 25.
fcat-seltext_s = 'Street 2'.
fcat-seltext_m = 'Street 2'.
fcat-seltext_l = 'Street 2'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-no_zero = 'X' .
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'STREET'.
fcat-outputlen = 25.
fcat-seltext_s = 'City'.
fcat-seltext_m = 'City'.
fcat-seltext_l = 'City'.
fcat-ddictxt = 'M'.
fcat-inttype = 'CHAR'.
fcat-datatype = 'CHAR'.
fcat-no_zero = 'X' .
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'CITY1'.
fcat-outputlen = 25.
fcat-seltext_s = 'City1'.
fcat-seltext_m = 'City1'.
fcat-seltext_l = 'City1'.
fcat-ddictxt = 'M'.
fcat-inttype = 'CHAR'.
fcat-datatype = 'CHAR'.
fcat-no_zero = 'X' .
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'STR_SUPPL3'.
fcat-outputlen = 20.
fcat-seltext_s = 'State'.
fcat-seltext_m = 'State'.
fcat-seltext_l = 'State'.
fcat-ddictxt = 'M'.
fcat-inttype = 'CHAR'.
fcat-datatype = 'CHAR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'POST_CODE1'.
fcat-outputlen = 10.
fcat-seltext_s = 'Pin'.
fcat-seltext_m = 'Pin'.
fcat-seltext_l = 'Pin'.
fcat-ddictxt = 'M'.
fcat-inttype = 'CHAR'.
fcat-datatype = 'CHAR'.
fcat-lowercase = 'X'.
fcat-no_zero = 'X' .
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'LANDX'.
fcat-outputlen = 20.
fcat-seltext_s = 'Country'.
fcat-seltext_m = 'Country'.
fcat-seltext_l = 'Country'.
fcat-ddictxt = 'M'.
fcat-inttype = 'CHAR'.
fcat-datatype = 'CHAR'.
fcat-lowercase = 'X'.
fcat-no_zero = 'X' .
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'TEL_NUMBER'.
fcat-outputlen = 20.
fcat-seltext_s = 'Tele Phone No'.
fcat-seltext_m = 'Tele Phone No'.
fcat-seltext_l = 'Tele Phone No'.
fcat-ddictxt = 'M'.
fcat-inttype = 'CHAR'.
fcat-datatype = 'CHAR'.
fcat-lowercase = 'X'.
fcat-no_zero = 'X' .
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'FAX_NUMBER'.
fcat-outputlen = 20.
fcat-seltext_s = 'FAX'.
fcat-seltext_m = 'FAX'.
fcat-seltext_l = 'FAX'.
fcat-ddictxt = 'M'.
fcat-inttype = 'CHAR'.
fcat-datatype = 'CHAR'.
fcat-lowercase = 'X'.
fcat-no_zero = 'X' .
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'EKORG'.
fcat-outputlen = 20.
fcat-seltext_s = 'SALE ORG'.
fcat-seltext_m = 'SALE ORG'.
fcat-seltext_l = 'SALE ORG'.
fcat-ddictxt = 'M'.
fcat-inttype = 'CHAR'.
fcat-datatype = 'CHAR'.
fcat-lowercase = 'X'.
fcat-no_zero = 'X' .
APPEND fcat.
fheader-typ = 'H'.
fheader-info = 'VENDOR ADDRESS'.
APPEND fheader.
CLEAR fheader.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(301).
gd_layout-totals_only = 'X'.
gd_layout-f2code = 'DISP'. "Sets fcode for when double
"click(press f2)
gd_layout-zebra = 'X'.
gd_layout-group_change_edit = 'X'.
gd_layout-header_text = 'helllllo'.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = fevents[]
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
READ TABLE fevents WITH KEY name = 'TOP_OF_PAGE'.
IF sy-subrc = 0.
fevents-form = 'TOPOFPAGE'.
MODIFY fevents INDEX sy-tabix.
CLEAR fevents.
ENDIF.
rptname = sy-repid .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = rptname
it_fieldcat = fcat[]
i_default = 'S'
it_events = fevents[]
it_sort = it_sortcat
is_print = gd_prntparams
i_save = 'X'
is_layout = gd_layout
TABLES
t_outtab = it_output[].
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM . " alv_display .
Similar Messages
-
i have my brother i phone 5 but i dont have i cloud id or password i have serial number and all package the iphone can any one help me cuz i want open it please cuz my brother is dead sorry for time
first i thank u
but i just want apple id for his wife can remmber the password for the id he was have much more 5 apple id and i try to put them and i think u and apple can help us for we are older users of apple . them cant help us for just 1 time i have all package of phone the serial number and IMEI all of it . and thx u agine -
I touch on the fritzzz can any one help
my 4th gen. touch wont sync with my computer any more and is not recognized either. tried re-installing itunes and rebooting the ipod and still nothing help please!!!
Try the other troubleshooting here:
iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows -
My Facebook has stopped working, says cannot connect to the server, can any one help
My Facebook has stopped working, it says cannot connect to the server, can anyone help me please?
If you have Internet connectivity then try reinstalling the app.
If you're on wifi, ensure that site isn't blocked. -
i have an ipod touch 4th gen i reg it on my decktop then it had a power surge and blewup so i put itunes on my laptop and now it will now let me do anything to my apps pics or music what can i do i tried to reinstall but that didnt work i dont want to restart because of the pics and video that is the only copy i have now please help me
Is your device recognized by your computer? If yes, copy the pictures and videos as shown in this article:
Copying personal photos and videos from iPhone, iPad, or iPod touch to your computer
If it is not recognized, try this first: iOS: Device not recognized in iTunes for Windows
Disable autosync in iTunes, right click on it in the device list and choose "transfer purchases" to copy apps and other media bought in iTunes to your new library.
Do the same again and choose "backup", to create a manual backup without syncing.
Since your device will be erased due to the new iTunes library during the first sync, you can use this backup afterwards to restore your settings and data.
Set up at least one contact and event on your computer before you start, to be able to merge calendars and contacts. -
Subject:
First, try gently blowing into the dock connector on your iPad to make sure there's no debris in there. That can sometimes cause accessories to malfunction. If that doesn't clear it up, try rebooting your iPad:
To reboot your iPad, hold down the sleep/wake button and the home button simultaneously until the screen goes black and the Apple logo appears. If, during this process, a slider appears on the screen to power it off, ignore it and keep holding the buttons down.
Rebooting your iPad can solve a lot of problems. -
I have purchased a app store gift card and scratched the code off and two of the numbers to the code came off under the sticky thing is there any way of retrieving this cade so i can use it please an soneone please help
Hi,
Here is a Support Article that will help:
http://support.apple.com/kb/HT6021
Cheers,
GB -
My ipod nano 6th generation is not syncing the videos, can any one help me
Hi,
My ipod Nano 6th Geeration is not able to sync the videos from itunes library, please help me out on this.Videos are not compatible with a 6G Nano. Sorry.
B-rock -
Safari keeps crashing every time I try to open a link from a different application, i.e. Mail. The trouble report says that some problem occurs with libcooliris.dylib plug-in. Can any one help?
Thanks!Dear Linc,
Thank you for the advice, John Blanchard1 and Linc Davis
As suggested in your reference thread I removed "/Library/Printers/hp/PDEs/hpPostScriptPDE.plugin" and the problem has been resolved.
I am guessing the the plug-in for the hp printers got corrupted and effected every thing, or became unsuitable when I installed an Apple update. I would be most grateful if you can confirm how the problem was coursed so I can understand and learn from this experiance.
Ash -
I BOUGHT an application from my iphone Application icon and paid 2.99 dollars too, for phone tracker , downloaded sucessfully and its working too but not tracking the phones as mentioned in the description can any one support me??? better from apple!!
Is this the app you're referring to?
http://itunes.apple.com/us/app/phone-tracker/id348537489?mt=8
As you'll note it's made by Presselite and that page has a link to their support.
Also, you'll find it best not to post questions about iPhone apps in the AppleWorks forum. Best to contact the makers of the app.
Regards
TD -
i got this massege on my iphone the maximum number of free accounts have been activated on this iphone can any one help?
This restriction has no relation to creating free accounts, it means you may not sign in to another free account, on that iDevice because the serial number of the device (on apple's server) has their limit of free accounts associated to it. the only way around this is to use one of the three free accounts on the device which the server has associated, OR have apple reset the account/remove the restriction for that serial number...This has been posted in dozens of discussions, but they continue to ingnore the problem, what's worse is the telephone support is RUDE about it if you inquire.
-
Over the last few days I haven't been able to download any app. can any one help me, please ? thank you.
Andrea...
You posted in the "Using Mac App Store" forum but your profile indicates you are using an iPad so that's what I'll try helping you with.
On the iPad tap Settings > General > Reset > Reset Network Settings
Then restart the iPad. Hold the On/Off Sleep/Wake button down until the red slider appears. Slide your finger across the slider to turn off iPhone. To turn iPhone back on, press and hold the On/Off Sleep/Wake button until the Apple logo appears.
If you still can't download apps, the problem may be your Wi-Fi connection > iOS: Troubleshooting Wi-Fi networks and connections -
When I connect my Macbook Pro to my Dell DLP projector, either via cable or wirelessly, I just see a dark screen with the mouse and mouse trails only, can any one help?
jpmarkques post is a good start point, after folling his directions, you can try detect displays. Also try different rsolution and refresh rates.
Most of the projectors I have used support a 1024X768 res.
Youcan also try a pram reset if it still does not detect.
Leave theproctor connected and powered up, power down the MBP.
Power back up the MBP and hold the following keys before you hear the start up chime:
Option, command, P,R (no commas) continue to hold these keys till you hear the start up chime 2 times. -
Hello guys..!! I have got my new iphone 4 2 days ago.The same day it got a problem of auto restart in every 1, to 2 minutes. I updated and restored it many times...but of no use... can any one help me how to solve this problem..!!
Go to Settings/General/Reset - Erase all content and settings. the connecto to iTunes and restore as a New phone. Do not restore any backup. If the problem persists you have a hardware problem. Take it to Apple for exchange.
This assumes that the phone is not hacked or jailbroken. If it is you will have to go elsewhere on the internet for help. -
I am not able to register my Apple ID for iCloud and the error is "the maximum no of free accounts have been activated on this phone" can any one help me why I need to do
Sir, your Apple ID can be used as an iCloud account as well. They are both the same thing.
You can learn more from --> Set up your Apple ID for iCloud and iTunes - Apple Support -
can any one help me to fix my ipod touch it wont recognized by my laptop and itunes its said usb not recognized its freeze iin display usb and itunes logo pls help me pls itried all the uninstall unknown device and reboot the ipod and restore pls help me thanks
Try the suggestions found here: http://www.apple.com/support/ipodtouch/assistant/itunes/
Maybe you are looking for
-
[SOLVED] Problem w/ lxdream after updating/reinstalling OS.
Hi, Yesterday I've made update on OS and then I've got Kernel panic... So I've recovered data and reinstalled OS (it was the best option for me, because previous system was such a mess). After installing OS I've compiled by myself lxdream and after c
-
Credit card asia problem please help
i am from philippines and i created my psn with singapore because there is no other option out there to register as a philippine based psn..my problem is i cant purchase thru ps store using my credit card because my credit card provider is from my co
-
Improving Oracle9i DB performance using IMPORT/EXPORT
Hi, I'm experiencing wrong performance on Oracle9.2.0.6 DB for production system. I have one schema and two tablespaces: the first one for data (18 datafiles sized each 1GB), and the second one for indexes (15 datafiles sized each 1GB). I tryed to tu
-
Questions about database application tables connector
Hi all, I need to manage with OIM several databases (each one with its custom tables). Also, one of them will be my trusted target on the initial load of users. The structure of our tables is not similar to the included in the example. The documentat
-
6.1.2 and still wifi signal problem
I bought iphone 5 yesterday in London.I update my iphone to 6.1.2 and i saw a problem.My wifi signal is too weak and its drops the connections few time later.I restore my phone but still same.What can i do for this problem.Is it a hardware problem ?