Need Business area details
Hello Gurus,
The requirement is : I am having the business area number. I need to get the business area address details(city , state , zip , Name... ) to the corresponding business area number . Is there any function module or table relationship to meet this requirement.
Thanks,
Swapna
Hi anji,
I want the address number for the business area number.I couldnt get the address number in the tables which you had given. Can you please explain me clearly.
Thanks,
MARKIV
Similar Messages
-
Need Business Area to be enabled in VA01 !
Hi,
I need to have Business Area enable in VA01, i have written the following code in EXIT_SAPMV45A_004
Data: w_auart like vbak-auart.
Get parameter ID 'AAT' field w_auart.
if I_T180_AKTYP = 'H' or I_T180_AKTYP = 'V'.
message i001(zbusinessarea).
if w_auart = 'ZRED'.
message i002(zbusinessarea).
IF i_screen_name = 'COBL-GSBER'.
c_screen_input = '1'.
modify screen.
ENDIF.
endif.
ENDIF.
But the field COBL-GSBER is not getting in modifiable state.
Messages are displayed correctly but the field is not getting enable.Thanx,
Now I have able to enabled the field COBL-GSBER ,
FORM USEREXIT_COBL_SEND_ITEM.
ENHANCEMENT 1 ZCODETEST1.
Data: w_auart like vbak-auart.
Get parameter ID 'AAT' field w_auart.
IF sy-tcode = 'VA01' or sy-tcode = 'VA02'.
IF W_AUART = 'ZRED'.
loop at int_coblf where fdnam = 'GSBER'.
int_coblf-input = '1'.
modify int_coblf.
endloop.
ENDIF.
ENDIF.
But now the problem is that its not taking the current values like if I change it from 1100 to 1130 but still its taking 1100 and not changing it.
Any Solution?
Regards,
Nishant Bhargava -
Rebate material needs business area
hi,
I am currently trying to release a rebate agreement. the problem is that when i try to do so, the message "No business area could be determined for item 0040" appears. i dont know how to find this item from the conditions as well as how to resolve this problem. help!!
vanDear Van,
Please chek in this way,
First step Go to sales order here you identify the item 40.
Second step you go to MM02 transaction here you identify the Plant and Division for that material.
Third step you go to this IMG path check the assignments of business area for that Plant and division.
SPRO>IMG>Enterprise structure>Assignment>Sales and distribution>Business Area Account Assignment>Assign Business Area To Plant And Division.
I hope this will help you,
Regards,
Murali. -
Are detailed instructions available for the removal / repair of the LCD screen hinges?
KenLE wrote:
Are detailed instructions available for the removal / repair of the LCD screen hinges?
Hi,
Should be in this book:
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c02985882/c02985882.pdf
Regards,
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
Dear Gurus,how to maintain business area for a line item?
Hi Gurus,
Thanks for all gurus for your knowledge sharing,everyday i get new things from you gurus,
right now i got one problem, while releasing the invoice i got the error as
"Business Area not entered in the line item 000000012"
where i should maintain the business area details, which T-code,
my friend told me that it is a FICO related issue,Please Guide me gurus,
Warm Regards,
Deepak ShanmugamHi Deepak
Business Area
Technical name: 0BUS_AREA
Technical Data
Available from Release
3.0D
Data element
GSBER
External hierarchy
Not available
Business Areas in SAP are used to differentiate transactions originating from different points/lines/locations in business. Let me give some examples to elucidiate:-
A company (say, ABC) is a huge company and has a variety of businesses under it. Let us say that it typically operates in 3 different domains like machinery manufacturing, trading and assembling of machine parts.
There are 2 options here now -
1. Either create different company codes for the 3 business operations (which would be the easiest and require no creativity)
or
2.) Create each of these business lines into business areas (the better option).
The advantages of using the second option is:
1. You can use these business areas if other company codes require the same areas
2. The configuration is simpler as in case of company code, you would require to go through the entire configuration of creating Chart of Accounts, Fiscal Year variants, posting periods variants and so on. In the business area option, you just need to attach it to the company code and the rest of the details in Business area is attached by default from the company code you are using it in.
3. Using the options in controlling (EC-PCA, Enterprise Controlling, Profit Centre Accounting), you can even draw up Balance Sheets and PL statements for your business areas and hence this is used for management accounting in some companies (like HP, Dell, etc) when it wants to know the operating profits for different business areas/lines.
The above was an example when the company wanted to separate entries according to the lines it operates in... the other case could be when it wants to find out profitability during its operations in cities and differentiates these cities into Business Areas...
Business Areas are not much relevant in FI but are much more relevant in CO.
You can define business area in
Path: Img-enterprise structure Definition--Financail Accounting --- Define Business area.
Same pathe: Assignment---Assign Business area to Consolidation business area.
Same Path: Logistics General --- Assign Business Area to Plant/Valuation Area & Division
I hope this clears.
Reward if useful to u
Message was edited by:
narendran vajravelu -
K088/I3000 CTR belong to business area 7210 not 7220
Hello SAP Guys,
Can anyone help on this bec error is happening on while I am doing Deprecation run through AFAB and also step step the task need to be done to rectify this error.
Plz see the error.
Message no. KI188
Diagnosis
Account assignment object K088/I3000, type CTR is assigned to business area 7210. You made an explicit assignment to business area 7220.
System Response
The posting row may contain only one business area.
Procedure
Perform one of the following actions.
Make an explicit assignment to business area 7210. To do so you must set the "Business area" field as entry-ready in Customizing.
Enter an account assignment object assigned to business area 7220.
Change the assignment of K088/I3000 to business area 7210. Note the document number and continue processing the document after changing the assignment.
Hinweis:
This message is sent as an error in the standard R/3 System. You can make the message a caution or deactivate it entirely in Customizing. Use the Implementation Guide under "Controlling: General" and choose Change message control. Enter area KI and message number 188.
If you deselect this message, the system does not issue an error message if the given business area differs from the business area of the account assignment object. The system always assigns to the business area of the account assignment object.Hi MArk,
Thx for your Reply.
K088 is our Controlling Area.
I3000 is Cost Centre which I assigned to My Depreciation G/L in OkB9
7210 and 7220 are Business area.
We are not using any Internal Order.
In Fact, here Business area is activated and I have put "2" indicator in the Assignment and there in Business area Details I have maintained the Valuation Area/ Business Area/Cost Centre . Also all Assets have Cost Centre and Business Area assigned appropriately.
Regards, -
Business Area in G/L Account
Hi frenz,
In G/L account I need Business Area to be displayed.
All settings were done.
Its already working perfectly in a company code.
But I am not able to get it in other company code.
I want it in field status group (G006).
Business area is maintained as optional.
When it is working fine in one company code ,
why not in another?
kindly help
Regards,
VimalHi,
You can only link to the business area if you have created one in Customizing for Financial Accounting (FI).
When creating/changing business entities, you may be required to enter the business area (required field) even although this field has been set as optional in Customizing. In this case, the field status setting is overridden by the "Enable business area balance sheet" in FI. If this field is set in FI Customizing, the business area field has to be filled in for all FI postings.
For FI postings on Real Estate objects for which there is no business area assignment, the business area is derived from the business entity. Consequently it would not be possible to make automatic postings on Real Estate objects if the business entity has no business area.
The field status control for the business area field on the business entity only has an effect when the business area balance sheet has been disabled in FI.
To post items in a business area, enter the business area when you enter the business transaction. However, the business area can also be derived from other account assignments, such as the cost center. To enable the system to do this, you must define the business area in the cost center master record.
If you enter a cross-company code document, you can post to different business areas across all company codes in one document. As a result, any number of combinations of company code and business area are possible.
For further details, please refer the following link:
http://help.sap.com/erp2005_ehp_03/helpdata/EN/e5/077a8a4acd11d182b90000e829fbfe/frameset.htm
I hope it will help.
If helpful, please assign points.
Regards,
Manju -
To be able to report by business area at a header level
Business area reporting at a header level in Procurement/AP Subject Areas
At present client is doing a large number of manual lookups in Excel to add Business area detail to certain OBI procurement reports. Reasons for why we are having to do this includes that the report is written at a header level but the business area detail is stored at a distribution level or the document has no distribution lines.
What client would therefore like is for us to devise solutions that would allow us to include the business area detail. Possible solutions that I can think of include doing a join between the employee name, preparer name and requestor name to the HR business area detail, and the way that the ‘Procurement and Spend - Employee Spend’ joins the employee name and approver name to the business area fields maybe something that you can review as a solution.
I am hoping that you can come up with a number of solutions which we can then explore in further detail.
The key subject area that we would like this business area detail to be available in is the ‘Financials - AP Transactions’ area but if would certainly be beneficial to have in the ‘Procurement and Spend - Purchase Orders’ and ‘Procurement and Spend - Purchase Requisitions’ subject areas as well if it is feasible.
Can any plz.. guide the possible soultions we can do with this CR
Edited by: user13050518 on May 11, 2010 7:40 AMBonjour,
Je suppose vu votre prénom que vous parlez français lol bien que l'anglais ne me pose pas de problème.
En fait, il s'agit de plusieurs factures (avec différentes business area) pour un même fournisseur.
Au moment de la F110, le système comptabilise le paiement via une seule pièce mais avec plusieurs postes (un par business area) et la contrepartie le compte banque.
La case n'est pas cochée pour le champ T001-XGSBE donc je ne pense pqs que le problème provienne de là.
Cdlt -
Customisation for business area in vendor balances
Hello friends,
what is the customisation tht needs to be configured to make business area option available in dynamic selection tab in vendor balances report like f.42
I want to show business area wise vendor balances report.
Pls let me knw the path to do it.
Thanks
SunnyI am also facing the same problem. I need business area wise vendor balances. However as a temporary solution, I have used
S_ALR_87012079 - Transaction Figures: Account Balance for the business area wise transactions to ascertain the business areawise balances. -
Hi dear gurus, I need business area based gl posting (line item) report. It must show, date, amount, user, business area. are there any standard report for this?
thanks in advance,Hello,
Are NewGL and document splitting active in your system? If yes, you should solve this problem with using splitting function.
Otherwise, you can use business transaction event 00001120.
I explained step by step how can you activate BTE 00001120. I give you message below.
Re: FBCJ - Cash Journal Transaction
In this exit, you must update t_bsegsub-gsber field which t_bseg-buzid = 'T' for tax item.
But you can not split tax line items in this exit. For example in invoice you have 2 or more business area, but tax line item doesn't create for each buiness area (If you don't use document splitting functon). So in this exit you can only assign a business area to tax line item which is automatically generate while posting FI document.
Regards,
Burak -
Business area correction in FSV
Hi experts,
we have some problem in Business area updation in Financial statement version. the problem arise because of the following reasons
1. After the Go Live we have created the 3KEH table & updated it in Productions server because of this cost center will update based on the business area settings.
2. After the Go Live for few weeks Business area is not mandatory while posting the documents. at the time of 3KEH table updation we made Business area also mandatory,
3. we have document spiting option also. in that we have business area as mandatory field.
so because of all this reason in the Financial statement the document which is posted earlier then this day (after go live & updation of 3KEH table) business area wise Balance sheet is not tally. & many of the document which is posted before to this day doesnt have business area in any one of the line items. say e.g. a document is have 4 line items, out this 4 line 1 or 2 line items doesnt have business area.
Document which doesn't have business area or part of business area (1 or 2 line items missing the busines area) for which vendors / customer we are not able to clear the document.
For the Financial statement we want to correct the business area details.
what could be the solutions except the reversing the entry & posting new document - which is very risky in this situation.
Thanks
RaviDear,
You can not update the business area in Posted document...
The only solution is the reverse those entries and post with the business area...
Br,Vivek -
While doing mb1b with movement type 453,then here business area should pick automatically,how?
Tell me how to configure..
Message was edited by: G Lakshmipathi
You have already been asked to maintain the subject appropriately. Using text like ASAP would not draw much attention to your post. Please use the subject effectively1. Why you need business area during movement type 453 ? As standard SAP the business area field is hidden from field selection for movement type 453.
2. You can make the field Mandatory for the movement type 453 from OMBW field selection.
3. To make the business area default, as of my knowledge, there are no standard configuration for that. You may use user exit or badi for your requirement. -
Tds details of vendor coming but not business area.
Hi Experts,
I am making a report to display vendor data with its TDS details in accounting documents.
I am getting all the data from other tables rather 1 table BSEG, which is a cluster table. I need to retrieve business are from BSEG i.e. (BSEG-GSBER).
I am using another select query for this, but when i put debugger at loop of business are, it is showing the data, but in alv display it is not showing business area.
Hence i need your help on that.
Please go through the program code given below.
Thanks,
Deepanshu Mathur
TABLES: BSEG,BKPF,WITH_ITEM,T059Z,T059ZT,LFA1.
DATA: BEGIN OF ITAB OCCURS 0,
BELNR LIKE BKPF-BELNR, " Accounting Document Number
GJAHR LIKE BKPF-GJAHR, " Fiscal Year
BUKRS LIKE BKPF-BUKRS, " Company Code
BLDAT LIKE BKPF-BLDAT, " Document Date in Document
BUDAT LIKE BKPF-BUDAT, " Posting Date in the Document
LIFNR LIKE BSEG-LIFNR, " Account Number of Vendor or Creditor
GSBER LIKE BSEG-GSBER, " Business Area
WT_QSSHH LIKE WITH_ITEM-WT_QSSHH, " Withholding tax base amount (local currency)
WT_QBSHH LIKE WITH_ITEM-WT_QBSHH, " Withholding tax amount (in local currency)
WITHT LIKE WITH_ITEM-WITHT, " Indicator for withholding tax type
WT_WITHCD LIKE WITH_ITEM-WT_WITHCD, " Withholding tax code
QSCOD LIKE T059Z-QSCOD, " Official Withholding Tax Key
QSATZ LIKE T059Z-QSATZ, " Withholding tax rate
NAME1 LIKE LFA1-NAME1, " vendor name
LAND1 LIKE LFA1-LAND1, " Country Key
TEXT40 LIKE T059ZT-TEXT40, " Text, 40 Characters Long
WAERS LIKE BKPF-WAERS, " Currency
WT_ACCO LIKE WITH_ITEM-WT_ACCO,
END OF ITAB.
DATA: BEGIN OF LT_BSEG OCCURS 0,
BELNR LIKE BSEG-BELNR, " Accounting Document Number
GJAHR LIKE BSEG-GJAHR, " Fiscal Year
BUKRS LIKE BSEG-BUKRS, " Company Code
LIFNR LIKE BSEG-LIFNR, " Account Number of Vendor or Creditor
GSBER LIKE BSEG-GSBER, " Business Area
END OF LT_BSEG.
SELECTION-SCREEN: BEGIN OF BLOCK FRAME WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: COCO FOR BKPF-BUKRS,
DOC_DATE FOR BKPF-BLDAT,
POST_DAT FOR BKPF-BUDAT,
FIS_YEAR FOR BKPF-GJAHR.
SELECTION-SCREEN: END OF BLOCK FRAME.
TYPE-POOLS:slis.
DATA: body TYPE slis_t_fieldcat_alv,
header TYPE slis_fieldcat_alv,
gd_layout TYPE slis_layout_alv,
gd_repid LIKE sy-repid.
START-OF-SELECTION.
PERFORM FETCH.
END-OF-SELECTION.
*& Form FETCH
* text
* --> p1 text
* <-- p2 text
FORM FETCH .
SELECT
BKPF~BELNR BKPF~GJAHR BKPF~BUKRS BKPF~BLDAT BKPF~BUDAT BKPF~WAERS
WITH_ITEM~BELNR WITH_ITEM~GJAHR WITH_ITEM~BUKRS WITH_ITEM~WT_QSSHH WITH_ITEM~WT_QBSHH WITH_ITEM~WITHT
WITH_ITEM~WT_WITHCD WITH_ITEM~WT_ACCO
LFA1~LIFNR LFA1~NAME1 LFA1~LAND1
T059Z~WITHT T059Z~WT_WITHCD T059Z~QSCOD T059Z~QSATZ
T059ZT~WITHT T059ZT~TEXT40 T059ZT~WT_WITHCD
INTO CORRESPONDING FIELDS OF TABLE ITAB FROM BKPF
JOIN WITH_ITEM ON WITH_ITEM~BELNR = BKPF~BELNR AND
WITH_ITEM~GJAHR = BKPF~GJAHR AND
WITH_ITEM~BUKRS = BKPF~BUKRS AND
WITH_ITEM~WT_QSSHH NE ' ' AND WITH_ITEM~WT_QBSHH NE ' '
JOIN LFA1 ON LFA1~LIFNR = WITH_ITEM~WT_ACCO
JOIN T059Z ON T059Z~WITHT = WITH_ITEM~WITHT AND T059Z~WT_WITHCD = WITH_ITEM~WT_WITHCD
JOIN T059ZT ON T059ZT~WITHT = WITH_ITEM~WITHT AND T059ZT~WT_WITHCD = WITH_ITEM~WT_WITHCD
WHERE
BKPF~BUKRS IN COCO AND
BKPF~BLDAT IN DOC_DATE AND
BKPF~BUDAT IN POST_DAT AND
BKPF~GJAHR IN FIS_YEAR.
SELECT
BELNR GJAHR BUKRS LIFNR GSBER
FROM BSEG
INTO CORRESPONDING FIELDS OF TABLE LT_BSEG
FOR ALL ENTRIES IN ITAB
WHERE BELNR = ITAB-BELNR AND GJAHR = ITAB-GJAHR AND BUKRS = ITAB-BUKRS AND LIFNR NE ' ' .
IF SY-SUBRC EQ 0.
SORT ITAB BY BLDAT BELNR.
LOOP AT LT_BSEG WHERE BELNR = ITAB-BELNR AND GJAHR = ITAB-GJAHR AND BUKRS = ITAB-BUKRS AND LIFNR NE ' '.
IF ( LT_BSEG-BELNR = ITAB-BELNR AND LT_BSEG-GJAHR = ITAB-GJAHR AND LT_BSEG-BUKRS = ITAB-BUKRS AND
LT_BSEG-LIFNR NE ' ').
MOVE LT_BSEG-GSBER TO ITAB-GSBER.
ENDIF.
APPEND ITAB.
ENDLOOP.
PERFORM BUILD_LAYOUT.
PERFORM FIELDCATALOG.
PERFORM ALVDISPLAY.
ELSE.
MESSAGE 'DATA NOT FOUND !' TYPE 'I'.
ENDIF.
ENDFORM.
*& Form BUILD_LAYOUT
* text
* --> p1 text
* <-- p2 text
FORM BUILD_LAYOUT .
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-info_fieldname = 'WS_COLOR'.
gd_LAYOUT-coltab_fieldname = 'CELL_COLOR'.
ENDFORM. " BUILD_LAYOUT
*& Form FIELDCATALOG
* text
* --> p1 text
* <-- p2 text
FORM FIELDCATALOG .
header-col_pos = '1'.
header-tabname = 'ITAB'.
header-fieldname = 'BLDAT'.
header-seltext_l = 'Doc. Date'.
header-just = 'C'.
APPEND header TO body.
CLEAR header.
header-col_pos = '2'.
header-tabname = 'ITAB'.
header-fieldname = 'BUDAT'.
header-seltext_l = 'Posting Date'.
header-just = 'C'.
APPEND header TO body.
CLEAR header.
header-col_pos = '3'.
header-tabname = 'ITAB'.
header-fieldname = 'GJAHR'.
header-seltext_l = 'Fiscal Year'.
header-just = 'C'.
APPEND header TO body.
CLEAR header.
header-col_pos = '4'.
header-tabname = 'ITAB'.
header-fieldname = 'BUKRS'.
header-seltext_l = 'Company Code'.
header-just = 'C'.
APPEND header TO body.
CLEAR header.
header-col_pos = '5'.
header-tabname = 'ITAB'.
header-fieldname = 'GSBER'.
header-ref_tabname = 'BSEG'.
header-ref_fieldname = 'GSBER'.
header-just = 'L'.
APPEND header TO body.
CLEAR header.
header-col_pos = '6'.
header-tabname = 'ITAB'.
header-fieldname = 'BELNR'.
header-seltext_l = 'Doc. No.'.
header-ref_tabname = 'WITH_ITEM'.
header-ref_fieldname = 'BELNR'.
header-just = 'L'.
APPEND header TO body.
CLEAR header.
header-col_pos = '7'.
header-tabname = 'ITAB'.
header-fieldname = 'LIFNR'.
header-seltext_l = 'Vendor'.
header-ref_tabname = 'LFA1'.
header-ref_fieldname = 'LIFNR'.
APPEND header TO body.
CLEAR header.
header-col_pos = '8'.
header-tabname = 'ITAB'.
header-fieldname = 'NAME1'.
header-seltext_l = 'Vendor Name'.
APPEND header TO body.
CLEAR header.
header-col_pos = '9'.
header-tabname = 'ITAB'.
header-fieldname = 'LAND1'.
header-seltext_l = 'Country'.
header-ref_tabname = 'LFA1'.
header-ref_fieldname = 'LAND1'.
header-just = 'C'.
APPEND header TO body.
CLEAR header.
header-col_pos = '10'.
header-tabname = 'ITAB'.
header-fieldname = 'WITHT'.
header-seltext_l = 'Withholding Tax Type'.
header-ref_tabname = 'WITH_ITEM'.
header-ref_fieldname = 'WITHT'.
header-just = 'L'.
APPEND header TO body.
CLEAR header.
header-col_pos = '11'.
header-tabname = 'ITAB'.
header-fieldname = 'WT_WITHCD'.
header-seltext_l = 'Withholding Tax Code'.
header-ref_tabname = 'WITH_ITEM'.
header-ref_fieldname = 'WT_WITHCD'.
header-just = 'L'.
APPEND header TO body.
CLEAR header.
header-col_pos = '12'.
header-tabname = 'ITAB'.
header-fieldname = 'QSCOD'.
header-seltext_l = 'Tax Key'.
header-ref_tabname = 'T059Z'.
header-ref_fieldname = 'QSCOD'.
header-just = 'L'.
APPEND header TO body.
CLEAR header.
header-col_pos = '13'.
header-tabname = 'ITAB'.
header-fieldname = 'TEXT40'.
header-seltext_l = 'Section Code'.
header-ref_tabname = 'T059ZT'.
header-ref_fieldname = 'TEXT40'.
header-just = 'L'.
APPEND header TO body.
CLEAR header.
header-col_pos = '14'.
header-tabname = 'ITAB'.
header-fieldname = 'WAERS'.
header-seltext_l = 'Currency'.
header-just = 'C'.
APPEND header TO body.
CLEAR header.
header-col_pos = '15'.
header-tabname = 'ITAB'.
header-fieldname = 'WT_QSSHH'.
header-seltext_l = 'TDS Base Amount'.
header-ref_tabname = 'WITH_ITEM'.
header-ref_fieldname = 'WT_QSSHH'.
header-do_sum = 'X'.
header-just = 'R'.
APPEND header TO body.
CLEAR header.
header-col_pos = '16'.
header-tabname = 'ITAB'.
header-fieldname = 'QSATZ'.
header-seltext_l = 'TDS Tax Rate'.
header-just = 'R'.
APPEND header TO body.
CLEAR header.
header-col_pos = '17'.
header-tabname = 'ITAB'.
header-fieldname = 'WT_QBSHH'.
header-seltext_l = 'TDS Amount'.
header-ref_tabname = 'WITH_ITEM'.
header-ref_fieldname = 'WT_QBSHH'.
header-do_sum = 'X'.
header-just = 'R'.
APPEND header TO body.
CLEAR header.
ENDFORM. " FIELDCATALOG
*& Form ALVDISPLAY
* text
* --> p1 text
* <-- p2 text
FORM ALVDISPLAY .
gd_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gd_repid
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
IS_LAYOUT = gd_layout
IT_FIELDCAT = body
TABLES
T_OUTTAB = ITAB
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.
ENDFORM. " ALVDISPLAY
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'. " H = Header
wa_header-info = 'TDS Report'.
append wa_header to t_header.
clear wa_header.
* Date
wa_header-typ = 'S'. " S = Selection
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 ITAB lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'. " A = Action
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. "top-of-pageHi,
Try Below code.
1) your code is very bad I am not sure whether it will work or not because it has inner join queries on many tables.
2) I made certain changes, please check the data selection part as below
SELECT bkpf~belnr bkpf~gjahr bkpf~bukrs bkpf~bldat bkpf~budat bkpf~waers with_item~belnr
with_item~gjahr with_item~bukrs with_item~wt_qsshh
with_item~wt_qbshh with_item~witht with_item~wt_withcd with_item~wt_acco lfa1~lifnr
lfa1~name1 lfa1~land1 t059z~witht t059z~wt_withcd t059z~qscod
t059z~qsatz t059zt~witht t059zt~text40 t059zt~wt_withcd
INTO CORRESPONDING FIELDS OF TABLE itab
FROM bkpf
INNER JOIN with_item ON with_item~belnr = bkpf~belnr AND with_item~gjahr = bkpf~gjahr
AND with_item~bukrs = bkpf~bukrs AND with_item~wt_qsshh NE ' '
AND with_item~wt_qbshh NE ' '
INNER JOIN lfa1 ON lfa1~lifnr = with_item~wt_acco
INNER JOIN t059z ON t059z~witht =
with_item~witht AND t059z~wt_withcd = with_item~wt_withcd
INNER JOIN t059zt ON t059zt~witht = with_item~witht AND t059zt~wt_withcd = with_item~wt_withcd
WHERE bkpf~bukrs IN coco AND bkpf~bldat IN doc_date
AND bkpf~budat IN post_dat AND bkpf~gjahr IN fis_year.
IF itab[] IS NOT INITIAL.
SELECT belnr gjahr bukrs lifnr gsber FROM bseg
INTO CORRESPONDING FIELDS OF TABLE lt_bseg
FOR ALL ENTRIES IN itab
WHERE belnr = itab-belnr
AND gjahr = itab-gjahr AND bukrs = itab-bukrs
AND lifnr NE ' ' .
IF sy-subrc EQ 0.
SORT itab BY bldat belnr.
* LOOP AT lt_bseg WHERE belnr = itab-belnr AND
* gjahr = itab-gjahr AND bukrs = itab-bukrs AND lifnr NE ' '.
* IF ( lt_bseg-belnr = itab-belnr AND lt_bseg-gjahr = itab-gjahr
* AND lt_bseg-bukrs = itab-bukrs AND lt_bseg-lifnr NE ' ').
* MOVE lt_bseg-gsber TO itab-gsber.
* ENDIF.
* APPEND itab.
* ENDLOOP.
LOOP AT itab.
READ TABLE lt_bseg
WITH KEY belnr = itab-belnr
gjahr = itab-gjahr
bukrs = itab-bukrs.
MOVE lt_bseg-gsber TO itab-gsber.
MODIFY itab.
CLEAR :lt_bseg,itab.
ENDLOOP.
PERFORM build_layout. PERFORM fieldcatalog. PERFORM alvdisplay.
ELSE.
MESSAGE 'DATA NOT FOUND !' TYPE 'I'.
ENDIF.
ENDIF. -
In APP i need to send a check thourgh business area
Dear Gurus,
please tel me In APP F110 i need to send a check thourh business area
please help me
Regards,
Shekar.Hi Anil,
while running APP F110 in the Free Selection Screen Select Business Area
through that Business Area you can pay checks -
Customer Balance Details based on Business Area
Hi,
I am working on Customer Balace Report.In this report list should dispaly with opening balance of a customer of particular business area and debit ,credit values finall i has to show the closing balance detials.I can able to get the debit credit valuies by using function modules.but the problem is how can we get the opening balance values of a Particular customer, particular business area of Fiscal Year.
By using Comapny code wise we can get the opening Balance values.Can any one suggest the solution for how do we get the opening balance detials of particular Business Area of a Customer.
Thanks in Advace,
regards......KishoreBSID table will get the balance details.
Maybe you are looking for
-
Account re-activated but still not able to use
My account got de-activated a couple of days ago. I've re-activated it on the same day. Was told after re-activation that Skype would send me an email to confirm re-activation. I have not received the email, and still cannot use account, although mon
-
4:3 and 16:9 on same disc OK?
I'm getting the sense from some posts that the answer may be "no," from the standpoint of end-user TV's being able to switch from 4:3 to 16:9 on the same disc, but wanted to make sure if it either can't be done or is not advisable to combine video cl
-
How to factory default reset gen 3 with fast flashing led
After the holiday power outages here in NH, I find my Apple TV (3rd gen) with a fast blinking LED. Tried to connect via USB directly to my Mac Mini with Yosemite 10.10.1 and nothing... iTunes does not show the device. Tried several USB cables. Any su
-
Error when writing to the Internal Buffer-runtime error during querydisplay
Hi I am working in BW 3.5. I am trying to run a query in BEx Analyzer but I am getting the following Error Error when writing in the Internal Buffer see OSS note 156957 I tried for the note but I am not getting relevant information. Please
-
Error 1714 the older version of Nokia...
Hi, I have a N80 and the last PcSuite, the PcSuite work fine under bluetooth connection but don't work by USB, after erasing and reinstaling some times and running pcsuit cleaner, i try to install the Nokia Connectivity Cable driver and give me this