Vendor Name modification
Hi Guys
I want to increase the length size for NAME1, but still appearing as short in the output though I gave the following output length
fieldcatalog-fieldname = 'NAME1'.
fieldcatalog-seltext_m = 'Comp Name'.
fieldcatalog-outputlen = 20.
fieldcatalog-col_pos = 1.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
Any comments to increase it please
Regards
Piroz
REPORT Z_ESLP_VENDOR_LIST .
TABLES: LFA1.
type-pools: slis. "ALV Declarations
*Data Declaration
LIFNR, NAME1, STRAS, ORT01, REGIO, PSTLZ, PFACH, LAND1
TYPES: BEGIN OF t_lfa1,
lifnr TYPE lfa1-lifnr,
name1 TYPE lfa1-lifnr,
stras TYPE lfa1-stras,
ort01 TYPE lfa1-ort01,
regio TYPE lfa1-regio,
pstlz TYPE lfa1-pstlz,
pfach TYPE lfa1-pfach,
land1 TYPE lfa1-land1,
telf1 TYPE lfa1-telf1,
telf2 TYPE lfa1-telf2,
telfx TYPE lfa1-telfx,
END OF t_lfa1.
DATA: it_lfa1 TYPE STANDARD TABLE OF t_lfa1 INITIAL SIZE 0,
wa_lfa1 TYPE t_lfa1.
*ALV data declarations
data: fieldcatalog type slis_t_fieldcat_alv with header line,
gd_tab_group type slis_t_sp_group_alv,
gd_layout type slis_layout_alv,
gd_repid like sy-repid,
gt_events type slis_t_event,
gd_prntparams type slis_print_alv.
SELECTION PARAMETER CRITERIA
SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: p_lifnr FOR lfa1-lifnr. "no-extension no intervals
p_idate FOR imrg-idate. "NO-EXTENSION NO INTERVALS OBLIGATORY,
" p_recdu FOR imrg-recdu." NO-EXTENSION NO INTERVALS ."default 'M3'" OBLIGATORY.
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
SELECTION-SCREEN END OF BLOCK blk2.
SELECTION-SCREEN END OF BLOCK blk.
*Start-of-selection.
START-OF-SELECTION.
perform data_retrieval.
perform build_fieldcatalog.
perform build_layout.
perform build_events.
perform build_print_params.
perform display_alv_report.
*& Form BUILD_FIELDCATALOG
Build Fieldcatalog for ALV Report
form build_fieldcatalog.
There are a number of ways to create a fieldcat.
For the purpose of this example i will build the fieldcatalog manualy
by populating the internal table fields individually and then
appending the rows. This method can be the most time consuming but can
also allow you more control of the final product.
Beware though, you need to ensure that all fields required are
populated. When using some of functionality available via ALV, such as
total. You may need to provide more information than if you were
simply displaying the result
I.e. Field type may be required in-order for
the 'TOTAL' function to work.
fieldcatalog-fieldname = 'LIFNR'.
fieldcatalog-seltext_m = 'Vendor Number'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
fieldcatalog-do_sum = 'X'.
fieldcatalog-no_zero = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'NAME1'.
fieldcatalog-seltext_m = 'Comp Name'.
fieldcatalog-outputlen = 20.
fieldcatalog-col_pos = 1.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'STRAS'.
fieldcatalog-seltext_m = 'Street Address'.
fieldcatalog-col_pos = 2.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'ORT01'.
fieldcatalog-seltext_m = 'City '.
fieldcatalog-col_pos = 3.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'REGIO'.
fieldcatalog-seltext_m = 'Region'.
fieldcatalog-col_pos = 4.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'PSTLZ'.
fieldcatalog-seltext_m = 'Postal Code'.
fieldcatalog-col_pos = 5.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'PFACH'.
fieldcatalog-seltext_m = 'P.O.Box'.
fieldcatalog-col_pos = 6.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'LAND1'.
fieldcatalog-seltext_m = 'Country'.
fieldcatalog-col_pos = 7.
fieldcatalog-outputlen = 15.
fieldcatalog-do_sum = 'X'.
fieldcatalog-datatype = 'CURR'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'TELF1'.
fieldcatalog-seltext_m = 'Telephone 1'.
fieldcatalog-col_pos = 8.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'TELF2'.
fieldcatalog-seltext_m = 'Telephone 2'.
fieldcatalog-col_pos = 9.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'TELFX'.
fieldcatalog-seltext_m = 'Fax'.
fieldcatalog-col_pos = 10.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
endform. " BUILD_FIELDCATALOG
*telf1 TYPE lfa1-telf1,
telf2 TYPE lfa1-telf2,
telfx TYPE lfa1-telfx,
*& Form BUILD_LAYOUT
Build layout for ALV grid report
form build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
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'.
endform. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
Display report using ALV grid
form display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
it_events = gt_events
is_print = gd_prntparams
i_save = 'X'
is_variant = z_template
tables
t_outtab = it_lfa1
exceptions
program_error = 1
others = 2.
if sy-subrc EQ 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " DISPLAY_ALV_REPORT
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_lfa1
form data_retrieval.
select lifnr name1 stras ort01 regio pstlz pfach land1 telf1 telf2 telfx
up to 100000 rows
from lfa1 into table it_lfa1
where
lifnr in p_lifnr.
*lifnr
*between '0000100001' AND '0000150000'.
endform. " DATA_RETRIEVAL
Form TOP-OF-PAGE *
ALV Report Header *
Form top-of-page.
*ALV Header declarations
data: t_header type slis_t_listheader,
wa_header type slis_listheader,
t_line like wa_header-info,
ld_lines type i,
ld_linesc(10) type c.
Title
wa_header-typ = 'H'.
wa_header-info = 'Vendor List ' .
append wa_header to t_header.
clear wa_header.
Date
wa_header-typ = 'S'.
wa_header-key = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
append wa_header to t_header.
clear: wa_header.
Total No. of Records Selected
describe table it_lfa1 lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Vendor Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'.
wa_header-info = t_line.
append wa_header to t_header.
clear: wa_header, t_line.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
i_logo = 'Z_LOGO'.
endform.
FORM USER_COMMAND *
--> R_UCOMM *
--> RS_SELFIELD *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Check function code
CASE r_ucomm.
WHEN '&IC1'.
Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'LIFNR'.
Read data table, using index of row user clicked on
READ TABLE it_lfa1 INTO wa_lfa1 INDEX rs_selfield-tabindex.
Set parameter ID for transaction screen field
SET PARAMETER ID 'BES' FIELD wa_lfa1-lifnr.
Sxecute transaction ME23N, and skip initial data entry screen
CALL TRANSACTION 'xd10' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
*& Form BUILD_EVENTS
Build events table
form build_events.
data: ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = gt_events[].
read table gt_events with key name = slis_ev_end_of_page
into ls_event.
if sy-subrc = 0.
move 'END_OF_PAGE' to ls_event-form.
append ls_event to gt_events.
endif.
read table gt_events with key name = slis_ev_end_of_list
into ls_event.
if sy-subrc = 0.
move 'END_OF_LIST' to ls_event-form.
append ls_event to gt_events.
endif.
endform. " BUILD_EVENTS
*& Form BUILD_PRINT_PARAMS
Setup print parameters
form build_print_params.
gd_prntparams-reserve_lines = '3'. "Lines reserved for footer
gd_prntparams-no_coverpage = 'X'.
endform. " BUILD_PRINT_PARAMS
*& Form END_OF_PAGE
form END_OF_PAGE.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
endform.
*& Form END_OF_LIST
form END_OF_LIST.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
skip.
write:/40 'Page:', sy-pagno .
endform.
close
Similar Messages
-
How to add PO date and Vendor name in SAP table MB5S
How do I add PO date field and Vendor name field in SAP table MB5S?? Kindly Help
As a general recommendation just tell the ABAPer your requirement, don't tell him how to do it.... he probably knows, or should know, better ways of doing something then a functional consultant.
And please don't tell people to copy standard reports, most of the times there is a BADI, enhancement, or an implicit enhancement spot available. I'm a consultant who can program ABAP (including complex programs), and I've never had to copy a standard program. Ever.
PS: And no, I didn't have to register the object for modification either.
EDIT: I went to check the program and you have two explicit enhancement spots to use:
ENHANCEMENT-POINT read_data_01 SPOTS es_rm07msal - You use this to fill the extra fields of itab;
ENHANCEMENT-POINT EHP605_RM07MSAL_03 SPOTS ES_RM07MSAL - You use this to enhance the field catalog of the ALV if you are on EhP5, if not create an implicit enhancement on the same stop.
Current SAP allows enhancements everywhere, copying programs should be forbidden. -
ME49 enhancement (vendor name will always appear)
Hi gurus,
In ME49 Price Comparison List, I can get price comparisons by either inputting
1)Quotation Numbers
or
2)Collective RFQ
Inputting only quotation numbers will display the price comparison output WITH vendor names ONLY.
Inputting only collective RFQ number will display the comparison output WITH the collective number in the report ONLY and NO VENDOR NAME.
How do I force the Vendor name to always appear in the output? Or in other words, how do I make the program "think" that Quotation Numbers was the one that was inputted?
Thank you!
Sincerely,
Mozart PenaI think you cannot. ME49 does not offer much in the way of user-exits, enhancements, BADI's ... there's one BADI you can try (but I wouldn't get my hopes up): ALV_SWITCH_GRID_LIST ... or otherwise you can do a modification to SAP standard ...
-
Supress Vendor name in std report S_ALR_87012103 - Vendors: Items
Hi ,
I am using report 'S_ALR_87012103 - Vendors: Items -> List of Vendor Line Items' to list the vendor open items and in the output the vendor name with address is displayed, I want to supress name and address so that when I download to excel it will easier for me to change the columns.
ThanTry using FBL1N instead of this report, which does not show address.
Regards,
SDNer -
GR/IR: Open receipts with vendor name
Hello SAP Gurus-
I am not sure if we are doing something wrong but we are currently reconciling our GR/IR account and what we noticed is that when we added the vendor name to the report with the help of an OSS note, we noticed that it gives us all transactions that make up the balance however it isn't what we wanted exactly.
What we were looking for was once we execute MR11 and handle all differences, we want to see only open receipts with the Vendor name. How can we achieve this? Is there a report? Should the GR/IR account be set up as a clearing account?
Any help/ insight is greatly appreciated!figured it out
-
Adding vendor name to Position part in report Payment List - s_p99_41000099
HI,
How can I add Vendor Name to detail level of the Payment List report (transaction s_p99_41000099). Change Layout window allows to add Vendor Name to the header level and Vendor Number to the detail level. Users want to export report into Excel and then sort/filter it by vendor name at the detail level.
Is there any way to add vendor name to the list of columns available at detail level?
Thanks in advance.Resolved by using Check Register
-
Vendor Name Appearing Different for Different Line Items in FBL1N
Hi,
I am executing FBL1N and changing the layout to include the Vendor Name in the line items. But when the line items are appearing, the Vendor Name is appearing different for different documents. I wish to see from where the system is picking up the name, so that I can rectify this. But since the layout is being changed after the report is executed, the debug window is taking me in this. Can someone help me please how to debug so that I can see from where the name is coming?
Thanks and Regards,
Sameer JoshiHi Raymond,
Yes it was due to the BADI.
Thanks for your reply.
Thanks and Regards,
Sameer Joshi -
In Payment Order Vendor Name Display
Hi All,
Is it Possible to view the Vendor name in the Payment order, as now we able to see the vendor code only.
We required vendor name in the payment order(F110).
Anyone have idea pls update me.
Regards,hi,
If you are talking about report output then Open your query in query designer, click on vendor, on the right hand side you will see display tab and in display as list box choose key and text. This will display your vendor name as well with its code.
Hope this helps
regards,
ray -
Vendor name not showing correctly in TDS GL line item display fbl3n
Hi Gurus,
I am facing an issue in regards to TDS. As you know that normally we make a cheque payment to a vendor, we issue one cheque for one vendor.
But my client follows a slightly different practice. Suppose they have to pay an amount of 30000 to three vendor A B C equally 10000 each. They right a self cheque to the SBI bank and also send them the list of these 3 vendors who are also having their account in the same bank. They instruct the bank to take money from their account and then credit in the respective vendors account.
Now the transaction goes like this:
Vendor A 10000
Vendor B 10000
Vendor C 10000
To Bank 29700
To TDS on A 100
To TDS on B 100
To TDS on C 100
Now when the user will go to FBL3N and check the TDS GL 100020196 and see the line items it should show like as per the client:
Vendor A 100
Vendor B 100
Vendor C 100
But it shows the below result:
Vendor A 100
Vendor A 100 ( should be vendor B)
Vendor A 100 (should be vendor C)
I believe that is the standard behavior of the system to show the vendor line. They do not want to change the way of their posting and their concern is if it shows like the same at the time of return filing how will know vendor wise tds.
Now either I need to resolve this situation in FBL3N or give them a report which should give them Vendor wise TDS information for the TDS filing.
J1INMIS report is there but it shows only the TDS and the vendor number, it does not give the vendor name. I either want a solution of this issue in FBL3N or a report which shows vendor wise TDS with vendor number and name. Please let me know if there is a solution to this issue.
Kindly consider this very urgent. I am attaching the relevant screenshots.
Thanks
UrmilaHi
Unfortunately there is no report in SAP other than J1INMIS which caters to Indian reporting requirements. You can think of enhancing the same.
Also check your enhancement for FBL3N as to why it is not working as it should with the help of your ABAP Colleagues. It is not displaying the name correctly.
Thanks & regards
Sanil Bhandari -
Report GL Account Line Item with vendor name and VAT registration number
Hi,
Is there any standard SAP report/inquiry for GL Account Line Item like FBL3N, with information vendor name and VAT Registration Number (field STCEG) without using ABAP.
Thanks.Hi,
We can get purchase register through T.Code: 'J1I2' by specifying condition types and tax codes.
We can't get 100% report from this T.Code.
Check it once.
Regards,
Padmaja N. -
Report for vendor no., vendor name for good receipt documents on KSB1
Hello,
My client needs vendors on KSB1 report. I told them about offseting account, but it doesn't show vendor for good receipt documents.
Is there any place else they can view vendor, vendor name for those good receipt documents .
Any MM report or AP report .
Thanks,
T.GHi,
Please go to FBL1N, In Dynamic Selection give document as "WE", this will give and enable Purchase Order Number
This will give you Vendor Name, Purchase Order and FI Document number or u can try MB51, there you will not get Vendor Name, but you will get Vendor Code, Material Document Number and Purchase Order Number
Br,Vivek
Edited by: View_taurian on Oct 22, 2011 12:01 AM -
Vendor Name and Number in Bank Main GL - FBL3N
Dear Expert,
We are able to bring Vendor Name in FBL3N fro bank sub ledger.
We followed this thread
[Vendor & Customers in FBL3N|Vendor & Customers in FBL3N;
But everything is coming for bank sub ledger
but after Reconciliation when we are checking in Main Bank GL
we are not able to see that.
One reason maybe that while doing reconciliation this data are not transfered to Main GL.
Is there something configuration or program by which we can achieve this.
So that we can see vendor Name in Main Bank
Your suggestion will be highly appreciated.Hello,
If you're using the BTE I have a suggestions:
- Put a breakpoint in the ZFI_INTERFACE_* called by your BTE ( se37 ).
Then go to the transaction and run it for the account which is not showing the names. The debugger will be started and you can analyze why it's not displaying the name.
REgards,
Renan Correa -
Hi Experts
could u please help me regarding the report run by transaction FBL3N is there any
sap note available just to add the vendor name to the report i jsut require that one
one field and rather than making a copy of that program n writen a zprogram i wanted to knw if sap offers any notes to modify it.
thanks uHi,
Check the structure RFPOSXEXT. The special fields you add will be prefixed by U_ in the structure. This is the structure which is used to display the line items, so check if the values are getting populated in this structure.
Also refer to the following thread :
adding a field to FBL3N -
Vendor name in Asset Master Table
Hi all,
If i open any asset master with Tcode AS02, i am able to see the vendor code and vendor name in the origin tab in the asset master.
And the fileds filled in asset master will be stored in table called ANLA, when i open the said table for the respective asset, there i am able to see only the vendor code only not the vendor name field.
the vendor name field ANLA-LIEFE was showing blank, as it was showing data in the asset master.
I think there might a technical issue in this regard.
Please suggest me to fix this bug.
Thanks,
SrinuHi
It is not a bug,
This field is currently for informational purposes only.
You can only use this field to define sort versions.
SAP-Definition of Sort version."A means of defining groups and group totals in asset reports. All fields of the asset master record can be used as group and/or sort criteria for defining a sort version. You enter the sort version key when starting a report."
regards -
Vendor name and Vedor number in FAGLL03
Hi All,
My Client is running report for GR/IR, T-code FAGLL03, they want to see Vendor name and Vendor number columns in the report. I searched forums and got the answer for Vendor number but not clear
My questions are
1. I added field LIFNR in BSEG table in the SPRO and am able to see the vendor colum. If I transport to Test system, will I be able to see the vendor column? (in forums some one mentioned that they are not able to see the vendor column when they transport to Test system) they have been asked to run this program BALVBUFDEL, So I am concerned about this issue and want to know exactly what are the things that need to be done, what programs have to be run before transporting to Test system?
Also we are using ECC 6.0 and the highest support package present in the system is SAPKGPAD15. So I dont think I need to install the OSS note 1034354, I checked the OSS note and the highest APPL level is 604? but just making sure about this Patch level and OSS note.
2. Second, how to get the Vendor name cloumn in the report?
Could someone give me solution? your help will be really appreciated.
Thanks,
Harter
Edited by: Harter21 on Nov 8, 2009 2:57 AM
Edited by: Harter21 on Nov 8, 2009 2:58 AMHi Sanjay,
Thanks for the reply. I understood that we get Vendor number from the Function module ITEM_STRUC_EXTENSION and when you run that FM it updates the vendor number in the Structure FAGLPOSYEXT. I want to have Vendor name side to Vendor number field. Can I get vendor name also from the same FM?
I have tried in BSIS table and other OSS notes that are mentioned in that forum link but none of the OSS notes mentioned about the Vendor name and the vendor name is coming from LFA1 table and that has no connection with FAGLL03 report as far as I understand (correct me if I am wrong).
If you have any idea please throw some light.
Thank you very much,
Harter.
Maybe you are looking for
-
Office 2013 professional plus clieck-to-run /packager mode appv pacakge
Hi! I want to make appv package for office 2013 professional. I dont want to use preview. I want to use full version for makingappv package. I know we cant use sequencer to make .appv package for office 2013. I am using this http://www.microsoft.com/
-
Good Hi-Fi review from good source....
Read this..... http://www.soundandvisionmag.com/article.asp?sectionid=3&article_id=1410&pagenumber=1
-
Is there any way to get the "Search with google" feature in safari to automatically open the link in a new tab? I am indifferent as to the solution, whether it be an extension, plug-in or apple script using automator as long as it is well documented.
-
Hi, I purchased my macbook pro in July 2011 in New York. Last week (only two years) it crashed. I can turn it on but it will not start. I have been told that the disc has crashed and I have to pay 350 euros to get it repaired. (Authorized Apple Repai
-
How do i download the software to my ipad ?
hello i am trying to download the i06 for my ipad from my itune in my computer but it seems not to download and i have try too many times now and my ipad wont turn on. The error i get is 3194 ... how cani fix this ?