Vkoa problem
Hi,
I want to assign a new G/L account in VKOA trazanction. The G/L account is already created.
So, when I create new entry in VKOA with G/L account 7582001 it gives me an error:
Entry 0007582001 does not exist in SKA1 - check your entry.
What should I do? Which tranzaction should I use to solve my problem?
Thank you1
Dear Friend ,
Check with the G/L accounts customizing T-Code..FS00
Now check whether there is posting block or the entries are made correctly.
After which the assignment in SD accounts posting will surely be possible.
reward points if helpfu.
regards,
Amlan
Similar Messages
-
Hello all,
Can any one suggest hwo to over come problem with VKOA Dump.......
I found a solution which says problem caused due to some change in the standard program SAPL089C, Some include Function is missing. the solution was for 3.0 version, can any one provide me the details for ECC 6.0 verison.
Thanks N Regards
Venu MGDear Venu,
I think, a better explaination could be obtained in Forums like, SAP NetWeaver Administrator.
Alternatively, BASIS-Admin is the right person to resolve the technical issues, like this.
Alternatively, You may analyse the error in T. Code: ST22
Best Regards,
Amit.
Note: May be this OSS-Note helps you:
OSS Note 107161 - HP SAPKH30F35 IMPORT_PROPER - SAPL089C L089CT00 -
Hi guru's,
while i am executing T-code VKOA and selecting table 1. i got a Syntaxerror like.
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_PROGRAM_NOT_FOUND', was not
caught in
procedure "VIEW_MAINTENANCE" "(FUNCTION)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
On account of a branch in the program
(CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
or a transaction call, another ABAP/4 program
is to be loaded, namely "SAPL089C ".
However, program "SAPL089C " does not exist in the library.
Possible reasons:
a) Wrong program name specified in an external PERFORM or
SUBMIT or, when defining a new transaction, a new
dialog module or a new function module.
b) Transport error
Right answer will rewarded.
Regards.
rangaHi madan,
I cheked that note 107161 and in that i find the solution
like.
With Transaction SE38, you can carry out program RV12A001.
In the selection screen, you select 'Reports and screens'.
The program still contains a syntax error, however this error is automatically corrected when you carry out the program for the first time.
i tried like this and agai i have problem like
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_PROGRAM_NOT_FOUND', was not
caught in
procedure "VIEW_MAINTENANCE" "(FUNCTION)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
On account of a branch in the program
(CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
or a transaction call, another ABAP/4 program
is to be loaded, namely "SAPL089C ".
However, program "SAPL089C " does not exist in the library.
Possible reasons:
a) Wrong program name specified in an external PERFORM or
SUBMIT or, when defining a new transaction, a new
dialog module or a new function module.
b) Transport error
please give the suggetion what i have do those situation.
regards
ranga -
Search Help Parameter Default - Problems with VKO and VTW in Sales Order
Hello,
we've implementend an own serchhelp for the material-search.
The fields VKORG and VTWEG have the default VKO and VTW.
If I open this searchhelp in VA03 those values are not filled, if I open it in MM03 or ME23N those values are filled.
My user has the VKO and VTW-parameters set.
We have no custom "preselect-code" implemented.
If I change the values to VKU and VTW the output is the same (works in MM03 / ME23N but not in VA03) (copied default values from MAT1S search help, didn't change my user parameters!)
What could be the problem?Our searchelp was in our own append ZA_SD_MAT1.
Solution:
We deleted this append and added our search-helps to SD_MAT1 and now everythings works in mm03, me23n and va03. -
Problem in entering gl account in VKOA
Entry CAIN(chart of account) 0058150000(GL Account no) does not exist in SKA1 - check your entry in transaction code VKOA
Check G/L account 0058150000 in T.code FS00.
Also confirm the COA if it is CAIN or some other COA. Check this with FI Consultant.
Regards,
Rajesh Banka
Reward points if helpful -
Problem :ALV:Deletion Flags not showing in output
hi all !
I have a alv program which displays customer data.there are three deletion flags columns in the output.
First deletion flag will be: KNA1-LOEVM
Second deletion flag will be: KNB1-LOEVM
Third deletion flag will be: KNVV-LOEVM
earlier all three were showing.but now no one is showing.i'm pasting my code here if any expert can have a look and find out the BUG.
CODE STARTS----
report zqsdcap_cust.
INCLUDE DECLARATIONS
include:
ziabapcapph_macros. "Holcim Useful Macros
TABLE DECLARATIONS
tables:
tvko, "Org. Unit: Sales Organizations
t001, "Company codes
kna1, "Customer Master
knvv, "Customer master sales
knvi, "Customer tax classificat'n
knb1, "Customer master company code
<<CR003-DEVK949538 start ins
adr6. "SMTP numbers
<<CR003-DEVK949538 end ins
TYPE DECLARATIONS
type-pools:
slis.
STRUCTURE DECLARATIONS
Define structure for keep data in ALV list
data: begin of gs_output_list,
vkorg like knvv-vkorg, "Sales organization
ktokd like kna1-ktokd, "Customer A/C grp
kunnr like kna1-kunnr, "Customer number
vtweg like knvv-vtweg, "Distribution channel
name1 like kna1-name1, "Name1
name3 like kna1-name3, "Name3
name4 like kna1-name4, "Name4
stras like kna1-stras, "Street
cityc like kna1-cityc, "City
bezei1 like t005h-bezei, "Sales office
land1 like kna1-land1, "Country
regio like kna1-regio, "Region
bezei2 like t005u-bezei, "Region decription
kdgrp like knvv-kdgrp, "Customer group
ktext like t151t-ktext, "Cust grp name
bzirk like knvv-bzirk, "Sales district
bztxt like t171t-bztxt, "Description
zterm like knvv-zterm, "Payment term
lzone like kna1-lzone, "Transport zone
vtext like tzont-vtext, "Description
erdat like kna1-erdat, "Creation date
end of gs_output_list.
Internal table for customer tax data
data: begin of gs_output_tax,
vkorg like knvv-vkorg, "Sales organization
kunnr like kna1-kunnr, "Customer number
vtweg like knvv-vtweg, "Distribution channel
name1 like kna1-name1, "Name1
name3 like kna1-name3, "Name3
name4 like kna1-name4, "Name4
ort01 like kna1-ort01, "City
stcd1 like kna1-stcd1, "STD code
spart like knvv-spart, "Division
taxkd like knvi-taxkd, "Tax classific'n
tatyp like knvi-tatyp, "Tax category
vtext like tskdt-vtext, "Tax description
end of gs_output_tax.
Internal table for HVL customer master
data: begin of gs_output_hvl,
kunnr like kna1-kunnr, "Customer number
stceg like kna1-stceg, "VAT registration no
telfx like kna1-telfx, "Fax number
telf1 like kna1-telf1, "First telephone number
stras like kna1-stras, "House number and stret
ort02 like kna1-ort02, "District
cityc like kna1-cityc, "City code
bezei like t005h-bezei, "City description
regio like kna1-regio, "Region
ort01 like kna1-ort01, "City
name2 like kna1-name2, "Name2
name1 like kna1-name1, "Name1
bzirk like knvv-bzirk, "Sales district
spart like knvv-spart, "Division
vtweg like knvv-vtweg, "Distribution channel
vkorg like knvv-vkorg, "Sales organization
end of gs_output_hvl.
Internal table for customer database CRM
data: begin of gs_output_crm,
vkorg like knvv-vkorg, "Sales organization
vtweg like knvv-vtweg, "Distribution channel
bzirk like knvv-bzirk, "Sales district
kunnr like kna1-kunnr, "Customer number
name1 like kna1-name1, "Name1
name2 like kna1-name2, "Name2
stras like kna1-stras, "House number street
ort01 like kna1-ort01, "City
ort02 like kna1-ort02, "District
pstlz like kna1-pstlz, "Postal code
cityc like kna1-cityc, "City code
telf1 like kna1-telf1, "First telephone number
telfx like kna1-telfx, "Fax number
vkbur like knvv-vkbur, "Sales office
regio like kna1-regio, "Region
vkgrp like knvv-vkgrp, "Sales group
kdgrp like knvv-kdgrp, "Customer group
kvgr3 like knvv-kvgr3, "Customer group 3
altkn like knb1-altkn, "Previous record number
erdat like knvv-erdat, "Creation date
found_dat like zcrm_bp_ext-found_dat, "Found date
<<CR000-DEVK943142 start del
versg like knvv-versg, "Customer statistic grp
bukrs like knb1-bukrs, "Company code
<<CR000-DEVK943142 end del
end of gs_output_crm.
Internal table for customer information
data: begin of gs_output_info,
kunnr like kna1-kunnr, "Customer number
vkorg like knvv-vkorg, "Sales organization
vtweg like knvv-vtweg, "Distribution channel
stcd2 like kna1-stcd2, "Tax code
name1 like kna1-name1, "Name1
name2 like kna1-name2, "Name2
<<CR002-DEVK944835 start ins
name3 like kna1-name3, "Name3
<<CR002-DEVK944835 end ins
stras like kna1-stras, "House number street
ort01 like kna1-ort01, "City
ort02 like kna1-ort02, "District
pstlz like kna1-pstlz, "Postal code
regio like kna1-regio, "Region
land1 like kna1-land1, "Country code
cityc like kna1-cityc, "City code
telf1 like kna1-telf1, "First telephone number
telfx like kna1-telfx, "Fax number
<<CR001-DEVK944239 start ins
bzirk like knvv-bzirk, "Sales District
vkbur like knvv-vkbur, "Sales Office
kdgrp like knvv-kdgrp, "Customer group
<<CR001-DEVK944239 end ins
vkgrp like knvv-vkgrp, "Sales group
kvgr3 like knvv-kvgr3, "Customer group 3
versg like knvv-versg, "Customer stat grp
kdkg2 like kna1-kdkg2, "Customer condition gp2
kdkg1 like kna1-kdkg1, "Customer condition gp1
<<CR001-DEVK944239 start del
kdgrp like knvv-kdgrp, "Customer group
<<CR001-DEVK944239 end del
altkn like knb1-altkn, "Previous record#
erdat like knvv-erdat, "Creation date
note_text(200) type c, "<<CR003-DEVK949538 ins
smtp_addr like adr6-smtp_addr, "<<CR003-DEVK949538 ins
loevm1 like kna1-loevm, "Deletion flag all
loevm2 like knb1-loevm, "Deletion flag Cd
loevm3 like knvv-loevm, "Deletion flag sal
end of gs_output_info.
ALV Grid Declaration
data:
gs_fieldcat type slis_fieldcat_alv,
gs_layout type slis_layout_alv,
gs_event type slis_t_event,
gs_variant like disvariant,
gs_sort_info type slis_sortinfo_alv,
gs_exit_caused_by_user type slis_exit_by_user,
gs_tabname type slis_tabname,
gs_header type slis_entry.
INTERNAL TABLE DECLARATIONS
Define internal table for keep data in ALV list
data:
gt_output_list like table of gs_output_list,
gt_output_tax like table of gs_output_tax,
gt_output_hvl like table of gs_output_hvl,
gt_output_crm like table of gs_output_crm,
gt_output_info like table of gs_output_info,
<<CR003-DEVK949538 start ins
gv_text like tline occurs 0 with header line,
<<CR003-DEVK949538 start ins
ALV Grid Declaration
gt_fieldcat type slis_t_fieldcat_alv,
gt_list_top_of_page type slis_t_listheader,
gt_list_top_of_page2 type slis_t_listheader,
gt_sort_info type slis_t_sortinfo_alv.
VARIABLE DECLARATIONS
data:
ALV Grid Declaration
gv_save,
gv_exit_caused_by_caller,
gv_repid type sy-repid,
gv_user_command type slis_formname value 'USER_COMMAND',
gv_top_of_page type slis_formname value 'TOP_OF_PAGE',
gv_top_of_list type slis_formname value 'TOP_OF_LIST',
gv_end_of_list type slis_formname value 'END_OF_LIST',
lv_store like thead-tdname, "<<CR003-DEVK949538 ins
lv_id like thead-tdid, "<<CR003-DEVK949538 ins
lv_lines type i. "<<CR003-DEVK949538 ins
SELECTION SCREEN DECLARATIONS
Define selection-screen of query
selection-screen: begin of block blk with frame title text-001.
select-options: s_vkorg for knvv-vkorg "Sales org
obligatory
memory id vko,
s_bzirk for knvv-bzirk, "Sales district
s_vtweg for knvv-vtweg, "Dist channel
s_spart for knvv-spart "Division
default 'CM',
s_taxkd for knvi-taxkd, "Tax classific'n
s_kunnr for kna1-kunnr, "Customer number
s_regio for kna1-regio, "Region
s_kdgrp for knvv-kdgrp, "Customer group
s_vkgrp for knvv-vkgrp, "Sales group
s_vkbur for knvv-vkbur, "Sales office
s_lzone for kna1-lzone, "Zone
s_erdat for kna1-erdat, "Creation date
s_zuawa for knb1-zuawa, "Key for sorting
s_ktokd for kna1-ktokd, "Customer A/C grp
s_altkn for knb1-altkn, "Previous rec no
s_bukrs for knb1-bukrs "Company code
obligatory
memory id buk,
s_loevm1 for kna1-loevm, "Deletion flag all
s_loevm2 for knb1-loevm, "Deletion flag Cd
s_loevm3 for knvv-loevm. "Deletion flag sal
selection-screen: end of block blk.
selection-screen: begin of block b2 with frame title text-002.
parameters: pr_cust1 radiobutton group a1
default 'X'
user-command bkg,
pr_cust2 radiobutton group a1,
pr_cust3 radiobutton group a1,
pr_cust4 radiobutton group a1,
pr_cust5 radiobutton group a1.
selection-screen: end of block b2.
AT SELECTION-SCREEN ON S_VKORG
at selection-screen on s_vkorg.
select vkorg
into tvko-vkorg
from tvko
where vkorg in s_vkorg.
authorization check for sales org.
authority-check object 'V_VBRK_VKO'
id 'VKORG' field tvko-vkorg
id 'ACTVT' field '03'.
check sy-subrc ne 0.
message e002(zgen) with 'No authorization for sales org.'
tvko-vkorg.
endselect.
AT SELECTION-SCREEN ON S_BUKRS
at selection-screen on s_bukrs.
if pr_cust4 eq 'X' or
pr_cust5 eq 'X'.
select bukrs
into t001-bukrs
from t001
where bukrs in s_bukrs.
authorization check for plant and company code
authority-check object 'A_S_WERK'
id 'BUKRS' field t001-bukrs
id 'WERKS' dummy.
check sy-subrc ne 0.
message e002(zgen) with 'No authorization for this company code.'
t001-bukrs.
endselect.
endif.
AT SELECTION-SCREEN OUTPUT
at selection-screen output.
loop at screen .
if pr_cust1 eq 'X'.
if screen-name = 'S_VTWEG-LOW' or
screen-name = 'S_VTWEG-HIGH' or
screen-name = 'S_SPART-LOW' or
screen-name = 'S_SPART-HIGH' or
screen-name = 'S_TAXKD-LOW' or
screen-name = 'S_TAXKD-HIGH' or
screen-name = 'S_BUKRS-LOW' or
screen-name = 'S_BUKRS-HIGH' or
screen-name = 'S_ERDAT-LOW' or
screen-name = 'S_ERDAT-HIGH' or
screen-name = 'S_ALTKN-LOW' or
screen-name = 'S_ALTKN-HIGH' or
screen-name = 'S_VKBUR-LOW' or
screen-name = 'S_VKBUR-HIGH' or
screen-name = 'S_LOEVM1-LOW' or
screen-name = 'S_LOEVM1-HIGH' or
screen-name = 'S_LOEVM2-LOW' or
screen-name = 'S_LOEVM2-HIGH' or
screen-name = 'S_LOEVM3-LOW' or
screen-name = 'S_LOEVM3-HIGH'.
screen-input = 0.
endif.
elseif pr_cust2 eq 'X'.
if screen-name = 'S_BZIRK-LOW' or
screen-name = 'S_BZIRK-HIGH' or
screen-name = 'S_KDGRP-LOW' or
screen-name = 'S_KDGRP-HIGH' or
screen-name = 'S_LZONE-LOW' or
screen-name = 'S_LZONE-HIGH' or
screen-name = 'S_KTOKD-LOW' or
screen-name = 'S_KTOKD-HIGH' or
screen-name = 'S_ERDAT-LOW' or
screen-name = 'S_ERDAT-HIGH' or
screen-name = 'S_KTOKD-LOW' or
screen-name = 'S_KTOKD-HIGH' or
screen-name = 'S_ALTKN-LOW' or
screen-name = 'S_ALTKN-HIGH' or
screen-name = 'S_VKBUR-LOW' or
screen-name = 'S_VKBUR-HIGH' or
screen-name = 'S_LOEVM1-LOW' or
screen-name = 'S_LOEVM1-HIGH' or
screen-name = 'S_LOEVM2-LOW' or
screen-name = 'S_LOEVM2-HIGH' or
screen-name = 'S_LOEVM3-LOW' or
screen-name = 'S_LOEVM3-HIGH' or
screen-name = 'S_BUKRS-LOW' or
screen-name = 'S_BUKRS-HIGH' or
screen-name = 'S_VKGRP-LOW' or
screen-name = 'S_VKGRP-HIGH'.
screen-input = 0.
endif.
elseif pr_cust3 eq 'X'.
if screen-name = 'S_BZIRK-LOW' or
screen-name = 'S_BZIRK-HIGH' or
screen-name = 'S_KDGRP-LOW' or
screen-name = 'S_KDGRP-HIGH' or
screen-name = 'S_LZONE-LOW' or
screen-name = 'S_LZONE-HIGH' or
screen-name = 'S_ERDAT-LOW' or
screen-name = 'S_ERDAT-HIGH' or
screen-name = 'S_KTOKD-LOW' or
screen-name = 'S_KTOKD-HIGH' or
screen-name = 'S_SPART-LOW' or
screen-name = 'S_SPART-HIGH' or
screen-name = 'S_TAXKD-LOW' or
screen-name = 'S_TAXKD-HIGH' or
screen-name = 'S_REGIO-LOW' or
screen-name = 'S_REGIO-HIGH' or
screen-name = 'S_ALTKN-LOW' or
screen-name = 'S_ALTKN-HIGH' or
screen-name = 'S_VKBUR-LOW' or
screen-name = 'S_VKBUR-HIGH' or
screen-name = 'S_LOEVM1-LOW' or
screen-name = 'S_LOEVM1-HIGH' or
screen-name = 'S_LOEVM2-LOW' or
screen-name = 'S_LOEVM2-HIGH' or
screen-name = 'S_LOEVM3-LOW' or
screen-name = 'S_LOEVM3-HIGH' or
screen-name = 'S_BUKRS-LOW' or
screen-name = 'S_BUKRS-HIGH' or
screen-name = 'S_VKGRP-LOW' or
screen-name = 'S_VKGRP-HIGH' or
screen-name = 'S_VTWEG-LOW' or
screen-name = 'S_VTWEG-HIGH'.
screen-input = 0.
endif.
elseif pr_cust4 eq 'X'.
if screen-name = 'S_LZONE-LOW' or
screen-name = 'S_LZONE-HIGH' or
screen-name = 'S_TAXKD-LOW' or
screen-name = 'S_TAXKD-HIGH' or
screen-name = 'S_REGIO-LOW' or
screen-name = 'S_REGIO-HIGH' or
screen-name = 'S_ZUAWA-LOW' or
screen-name = 'S_ZUAWA-HIGH'.
screen-input = 0.
endif.
else.
if screen-name = 'S_LZONE-LOW' or
screen-name = 'S_LZONE-HIGH' or
screen-name = 'S_TAXKD-LOW' or
screen-name = 'S_TAXKD-HIGH'.
screen-input = 0.
endif.
endif.
modify screen.
endloop.
INITIALIZATION
initialization.
perform deactivate_program using sy-cprog.
START OF SELECTION
start-of-selection.
Customized function to get data from database table
perform get_data.
<<CR003-DEVK949538 start ins
perform get_internal_note_text tables gt_output_info.
<<CR003-DEVK949538 end ins
Create sort of ALV list
perform build_sort.
Send data to ALV list to display
if pr_cust1 eq 'X'.
gs_tabname = text-003.
gs_header = text-004.
perform write_alv_report tables gt_output_list
gt_sort_info.
elseif pr_cust2 eq 'X'.
gs_tabname = text-005.
gs_header = text-006.
perform write_alv_report tables gt_output_tax
gt_sort_info.
elseif pr_cust3 eq 'X'.
gs_tabname = text-007.
gs_header = text-008.
perform write_alv_report tables gt_output_hvl
gt_sort_info.
elseif pr_cust4 eq 'X'.
gs_tabname = text-009.
gs_header = text-010.
perform write_alv_report tables gt_output_crm
gt_sort_info.
else.
gs_tabname = text-011.
gs_header = text-012.
perform write_alv_report tables gt_output_info
gt_sort_info .
endif.
FORM EVENTTAB_FIELD
Fill Event tab, for ALV Grid Display
form eventtab_field using gs_events type slis_t_event.
data:
ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = gs_events.
read table gs_events with key name = slis_ev_top_of_page
into ls_event.
if sy-subrc = 0.
move gv_top_of_page to ls_event-form.
append ls_event to gs_events.
endif.
endform. " eventtab_field
FORM TOP_OF_PAGE
Write at Top of Page of ALV grid
form top_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = gt_list_top_of_page.
endform. "top_of_page
FORM COMMENT_BUILD
Write header of ALV grid
form comment_build using lt_top_of_page type slis_t_listheader
gs_header.
data:
lv_tdate(10),
lv_fdate(10),
ls_line type slis_listheader.
clear: ls_line.
ls_line-typ = 'H'.
ls_line-info = gs_header.
append ls_line to lt_top_of_page.
endform. "comment_build
FORM INIT_FIELDCAT
Fill Field Catalog for ALV Grid
form init_fieldcat using gs_tabname.
refresh: gt_fieldcat.
use this function to get the all fields in the structure.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = gv_repid
i_internal_tabname = gs_tabname
i_inclname = gv_repid
changing
ct_fieldcat = gt_fieldcat.
if sy-subrc eq 0.
clear mark for key field to set color of key column
gs_fieldcat-key = ''.
modify gt_fieldcat from gs_fieldcat transporting key
where fieldname ne space.
read table gt_fieldcat with key fieldname = 'FOUND_DAT'
into gs_fieldcat.
gs_fieldcat-seltext_l = text-013.
modify gt_fieldcat from gs_fieldcat
transporting seltext_l
where fieldname = 'FOUND_DAT'.
<<CR003-DEVK949538 start ins
read table gt_fieldcat with key fieldname = 'NOTE_TEXT'
into gs_fieldcat.
gs_fieldcat-seltext_l = text-014.
modify gt_fieldcat from gs_fieldcat
transporting seltext_l
where fieldname = 'NOTE_TEXT'.
<<CR003-DEVK949538 start ins
endif.
endform. "init_fieldcat
FORM INIT_LAYOUT
Layout initial
form init_layout using gs_layout type slis_layout_alv.
gs_layout-info_fieldname = 'LINECOLOR'.
gs_layout-colwidth_optimize = 'X'.
gs_layout-zebra = 'X'.
endform. " init_layout
FORM WRITE_ALV_REPORT
form write_alv_report tables gt_output
gt_sort_info.
ALV Grid display
clear: gv_repid,
gv_save.
gv_repid = sy-repid.
gs_variant-report = gv_repid.
gv_save = 'A'.
Build fieldcatalog
perform init_fieldcat using gs_tabname.
Build list events
perform eventtab_field using gs_event.
Show in ALV Grid form
perform init_layout using gs_layout.
Build comments
perform comment_build using gt_list_top_of_page[]
gs_header.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_buffer_active = ' '
i_callback_program = gv_repid
is_layout = gs_layout
i_save = gv_save
is_variant = gs_variant
it_events = gs_event[]
it_sort = gt_sort_info[]
it_fieldcat = gt_fieldcat[]
importing
e_exit_caused_by_caller = gv_exit_caused_by_caller
es_exit_caused_by_user = gs_exit_caused_by_user
tables
t_outtab = gt_output
exceptions
program_error = 1
others = 2.
endform. "write_alv_report
FORM GET_DATA
form get_data.
Get customer list
if pr_cust1 eq 'X'.
select knvv~vkorg
kna1~ktokd
kna1~kunnr
knvv~vtweg
kna1~name1
kna1~name3
kna1~name4
kna1~stras
kna1~cityc
kna1~regio
kna1~land1
knvv~kdgrp
knvv~bzirk
knvv~zterm
kna1~lzone
kna1~erdat
from kna1 join knvv
on kna1kunnr = knvvkunnr
into corresponding fields of table gt_output_list
where kna1~kunnr in s_kunnr
and knvv~vkorg in s_vkorg
and knvv~bzirk in s_bzirk
and kna1~regio in s_regio
and knvv~kdgrp in s_kdgrp
and kna1~lzone in s_lzone
and kna1~erdat in s_erdat
and kna1~ktokd in s_ktokd.
loop at gt_output_list into gs_output_list.
Get City decsription
perform get_city_description using gs_output_list-cityc
changing gs_output_list-bezei1.
Get Region description
select single bezei
from t005u
into gs_output_list-bezei2
where bland = gs_output_list-regio
and land1 = gs_output_list-land1"<<CR000-DEVK942345 ins
and spras = sy-langu.
Get customer group description
select single ktext
from t151t
into gs_output_list-ktext
where kdgrp = gs_output_list-kdgrp
and spras = sy-langu.
Get sales district description
select single bztxt
from t171t
into gs_output_list-bztxt
where bzirk = gs_output_list-bzirk
and spras = sy-langu.
Get zone decription
select single vtext
from tzont
into gs_output_list-vtext
where zone1 = gs_output_list-lzone
and spras = sy-langu.
modify gt_output_list from gs_output_list index sy-tabix
transporting bezei1
bezei2
ktext
bztxt
vtext.
clear gs_output_list.
endloop.
Get customer tax data
elseif pr_cust2 eq 'X'.
select kna1~kunnr
kna1~name1
kna1~name3
kna1~name4
kna1~ort01
kna1~stcd1
knvv~vkorg
knvv~spart
knvv~vtweg
knvi~taxkd
knvi~tatyp
from kna1 join knvv
on kna1kunnr = knvvkunnr
join knvi
on kna1kunnr = knvikunnr
into corresponding fields of table gt_output_tax
where kna1~kunnr in s_kunnr
and knvv~vkorg in s_vkorg
and knvv~vtweg in s_vtweg
and knvv~spart in s_spart
and kna1~regio in s_regio
and knvi~taxkd in s_taxkd.
Get customer tax description
loop at gt_output_tax into gs_output_tax.
select single vtext
from tskdt
into gs_output_tax-vtext
where tatyp = gs_output_tax-tatyp
and taxkd = gs_output_tax-taxkd
and spras = sy-langu.
if sy-subrc eq 0.
modify gt_output_tax from gs_output_tax index sy-tabix
transporting vtext.
clear gs_output_tax.
endif.
endloop.
Get customer HVL data
elseif pr_cust3 eq 'X'.
select kna1~kunnr
kna1~stceg
kna1~telfx
kna1~telf1
kna1~stras
kna1~ort02
kna1~cityc
kna1~regio
kna1~ort01
kna1~name2
kna1~name1
knvv~bzirk
knvv~spart
knvv~vtweg
knvv~vkorg
from kna1 join knvv
on kna1kunnr = knvvkunnr
into corresponding fields of table gt_output_hvl
where kna1~kunnr in s_kunnr
and knvv~vkorg in s_vkorg.
loop at gt_output_hvl into gs_output_hvl.
Get city description.
perform get_city_description using gs_output_hvl-cityc
changing gs_output_hvl-bezei.
if sy-subrc eq 0.
modify gt_output_hvl from gs_output_hvl index sy-tabix
transporting bezei.
clear gs_output_hvl.
endif.
endloop.
Get cust CRM data
elseif pr_cust4 eq 'X'.
select kna1~kunnr
knvv~versg "<<CR000-DEVK943142 del
knvv~vkorg
knvv~vtweg
knvv~bzirk
knvv~vkgrp
knvv~kdgrp
knvv~vkbur
kna1~name1
kna1~name2
kna1~ort01
kna1~pstlz
kna1~regio
kna1~stras
kna1~telf1
kna1~telfx
kna1~ort02
kna1~cityc
knvv~kvgr3
knb1~altkn
knb1~bukrs "<<CR000-DEVK943142 del
knvv~erdat
zcrm_bp_ext~found_dat
from kna1 join knvv
on kna1kunnr = knvvkunnr
join knb1
on knvvkunnr = knb1kunnr
join zcrm_bp_ext
on knb1kunnr = zcrm_bp_extkunnr
into corresponding fields of table gt_output_crm
where kna1~kunnr in s_kunnr
and knvv~vkorg in s_vkorg
and knvv~vtweg in s_vtweg
and knvv~spart in s_spart
and knvv~bzirk in s_bzirk
and knvv~kdgrp in s_kdgrp
and knvv~vkgrp in s_vkgrp
and knvv~vkbur in s_vkbur
and knvv~erdat in s_erdat
and kna1~ktokd in s_ktokd
and kna1~loevm in s_loevm1
and knb1~loevm in s_loevm2
and knvv~loevm in s_loevm3
and knb1~bukrs in s_bukrs
and knb1~altkn in s_altkn.
else.
Get customer information
<<CR001-DEVK944342 start del
select kna1~kunnr
knvv~vkorg
knvv~vtweg
kna1~stcd2
kna1~name1
kna1~name2
kna1~ort01
kna1~land1
kna1~pstlz
kna1~regio
kna1~stras
kna1~telf1
kna1~telfx
knvv~bzirk "<<CR001-DEVK944239 ins
knvv~vkbur "<<CR001-DEVK944239 ins
kna1~ort02
kna1~cityc
knvv~vkgrp
knvv~kvgr3
knvv~versg
kna1~kdkg2
kna1~kdkg1
knvv~kdgrp
knb1~altkn
knvv~erdat
kna1~loevm
knb1~loevm
knvv~loevm
<<CR001-DEVK944342 end del
<<CR001-DEVK944342 start ins
select kna1~kunnr
knvv~vkorg
knvv~vtweg
kna1~stcd2
kna1~name1
kna1~name2
kna1~name3 "<<CR002-DEVK944835 ins
kna1~stras
kna1~ort01
kna1~ort02
kna1~pstlz
kna1~regio
kna1~land1
kna1~cityc
kna1~telf1
kna1~telfx
knvv~bzirk
knvv~vkbur
knvv~kdgrp
knvv~vkgrp
knvv~kvgr3
knvv~versg
kna1~kdkg2
kna1~kdkg1
knb1~altkn
knvv~erdat
kna1~loevm
knb1~loevm
knvv~loevm
<<CR001-DEVK944342 end ins
from kna1 join knvv
on kna1kunnr = knvvkunnr
join knb1
on kna1kunnr = knb1kunnr
<<CR001-DEVK944252 start del
into corresponding fields of table gt_output_info
<<CR001-DEVK944252 end del
<<CR003-DEVK949538 start del
into table gt_output_info "<<CR001-DEVK944342 ins
<<CR003-DEVK949538 end del
<<CR003-DEVK949538 start ins
into corresponding fields of table gt_output_info
<<CR003-DEVK949538 end ins
where kna1~kunnr in s_kunnr
and knvv~vkorg in s_vkorg
and knvv~vtweg in s_vtweg
and knvv~spart in s_spart
and knvv~bzirk in s_bzirk
and knvv~kdgrp in s_kdgrp
and knvv~vkgrp in s_vkgrp
and knvv~vkbur in s_vkbur
and knvv~erdat in s_erdat
and kna1~ktokd in s_ktokd
and kna1~regio in s_regio
<<CR001-DEVK944252 start del
and kna1~loevm in s_loevm1
and knb1~loevm in s_loevm2
and knvv~loevm in s_loevm3
<<CR001-DEVK944252 end del
<<CR001-DEVK944252 start ins
and ( kna1~loevm in s_loevm1
or knb1~loevm in s_loevm2
or knvv~loevm in s_loevm3 )
<<CR001-DEVK944252 end ins
and knb1~zuawa in s_zuawa
and knb1~bukrs in s_bukrs
and knb1~altkn in s_altkn.
<<CR003-DEVK949538 start ins
loop at gt_output_info into gs_output_info.
select single adrnr
into kna1-adrnr
from kna1
where kunnr = gs_output_info-kunnr.
check sy-subrc eq 0.
select single smtp_addr
into adr6-smtp_addr
from adr6
where addrnumber = kna1-adrnr.
check sy-subrc eq 0.
gs_output_info-smtp_addr = adr6-smtp_addr.
modify gt_output_info from gs_output_info.
endloop.
<<CR003-DEVK949538 end ins
endif.
<<CR003-DEVK949538 start ins
loop at gt_output_info into gs_output_info.
lv_store = gs_output_info-loevm1.
endloop.
<<CR003-DEVK949538 end ins
endform.
FORM BUILD_SORT
form build_sort.
if pr_cust1 eq 'X' or
pr_cust2 eq 'X'.
clear gs_sort_info.
gs_sort_info-fieldname = 'VKORG'.
gs_sort_info-spos = 1.
gs_sort_info-up = 'X'.
append gs_sort_info to gt_sort_info.
endif.
clear gs_sort_info.
gs_sort_info-fieldname = 'KUNNR'.
gs_sorhi shivaji!
thx for the reply.
can u chk whether there is any problem with the queries or not.
regards
sachin -
EXCISE AND COMMISION AGENT PROBLEM
HI GURUS,
Presently we implementing SAP R3 in 1 Textile industry, All the customization is been completed. But we are facing a problem related to excise calculation.
1.The system is showing the excise value in general Invoice (output type RD00) but it is not showing in Excise Invoice (Output Type J1IN)
2.Automatic posting is not happening after general Invoice (RD00).
3. We have scenario of commission agent. we have created a account group as Commission and Partner function CM for Commission and CI for commission receipt at header level of sales document. Also a condition type ZCMN as account key & ZCMU as accrual key. also maintained gl account for same. while creating the Sales order we assign CM as a partner function and No. of commission agent at header level . and value for condition ZCMN eg. 1%. We have also maintained seperate account assignment group 04 for Commission agent and 01 for Sundry Debetor (customer account).
After releasing for accounting the acount details appears as follows:
70 (customer No) 50000- Cr
1500233 Revenue account 50000 Dr
160064 Provision accout - 500- cr
124656 Brokarage account - 500 dr
the system is not determining the commission agent's account as it is determining for customer. Which we have already maintained in VKOA account assignment 01 for customer and 04 for commission agent as mentioned above.
Kindly go through these issues and revert back with possible suggestions at your earliest.Hi,
Please go through the link below, hope this help.
http://www.sap-img.com/sap-sd/steps-to-create-commission-for-agent.htm -
Problem in Save the Billing Document
Hi,
We have a problem while saving the Billing Document i.e.
Document 83034087 saved (error in account determination)
Message no. VF051
when we saw it;s Revenue accounts, found there -
Condition type............Message.................Description
ZM05............................121.......................No G/L account found in Account determination type KOFI
Access Message Description
08 121 No G/L account found in Account determination type KOFI
10 121 No G/L account found in Account determination type KOFI
20 121 No G/L account found in Account determination type KOFI
30 121 No G/L account found in Account determination type KOFI
40 121 No G/L account found in Account determination type KOFI
50 121 No G/L account found in Account determination type KOFI
Plz guide...Hello Anil.Sap321,
Your problem has to do with ACCOUNT DETERMINATION.
Step 1: Check which account determination procedure is assigned to your billing type i.e. SPRO>SD>Basic Functions> Account Assignment/Costing>Revenue Account Determination>Define and Assign Account Determination
HINT: normally, this is KOFI00 in standard sap
Step 2: Check the Condition Types in your account determination in the control data in the same path as in step 1 for the Definition (e.g. KOFI, KOFK)
Step 3: Check your accesses e.g. for KOFI (this should correspond to your VKOA tables). Here, you can see the sequence in which your accounts are determined. Plus, at field level you can see where the data are taken from and then you can check your master data etc. during troubleshooting.
Step 4: Identify in which combination your G/L should be in and you or your FI counterpart should configure the G/L in the designated VKOA table (transaction VKOA).
TIP: To know which G/L account you need to input, you need the help of Financial guys as different companies have their different set of G/Ls or Chart of Accounts.
Step 5: When this is configured in your VKOA, you can re-test. Look at your Revenue Account determination analysis to see if your "access" in which you made your VKOA entry is successfully read during account determination.
NOTE: The G/L you or your FI contact have configured must exist in the Company Code involved in your accounting process.
Good luck and let me know if this helps you,
Eva -
Problems in creating a Value Contract
Hi,
I'm trying to create a value contract using VA41.
The process succeeds for one sales organization, but for another sales organization, I am getting a line in the document incompletion log, saying G/L account data is missing. This is despite the fact that a G/L account IS assigned to this sales organization in VKOA. Even when doubleclicking the error message, and getting to the Analysis Account Determination, it is clearly seen that the system did find a G/L account!
After getting deeper into this, I found that the problem is caused by the item category of the contract line item, which has Revenue Recognition category B (Service-related revenue recognition). If I change this value to blank or a different value in the item category definition (VOV7), then I am able to add the line and save the contract.
The question is whether there is a place where this sales organization (or the company code above it) is defined not to be able to accept lines with Revenue Recognition B? Or maybe I am misunderstanding this whole thing, and the problem is of a different kind?
Thanks in advance for your help,
AmitHi Sri,
Thanks for the quick response.
The item category group is not NORM but our company's own item category group - YNOR.
This is not the issue, as this item category group is assigned to the material also in the sales organization that works... -
Billing document creation problem
Hi All,
i am not able create a billing document (vf01)with reference to a delivery order.It is giving error as billing document can not be saved due to error in account determination.can u please tell me how can i solve this problem.Hi Madhavi,
Please check the account determination by the following path in vf01 transaction after you get the error for account determination
Environment> Account determination analysis >revenue accounts
you would get the conditions types for which the account is not found
you can then go to VKOA and then maintain the relevanmt accounts for that particular combination that is not found as in
above analysis
hope this helps
thanks
akasha -
Intercompany Stock Transport- MIRO problem
Dear Experts,
Client requirement is that in intercompany stock transfer the value should post to the respective supplying palnt g/l account.
To meet the requirement i have created customer master record for my 8 plants with diff account assignment group to post the value to diff g/L accounts in VKOA.And one vendor master for the supplying plant.
In SD pricing we maintain Base Price+Profit Percentage = Total value( this value the client wants to post to the G/L account).
The step we are following
1. create PO in ME21N - Pricing with the Base price only
2. delivery in VL10G- Picking and PGI
3. Issue Invoice from delivering plant(base price+profit percentage)
4. migo wrt delivery
5. Miro
Now the problem is in 5th step i can not do wrt the supplying plant invoice.
Is it the right process am i following??
Regards
JyotiDear Ravi,
The process we are following
1.create PO in ME21N - Pricing with the Base price only(in receiving plant)
2. delivery in VL10G- Picking and PGI(in supplying plant)
3. Issue Invoice from delivering plant(base price+profit percentage)( in supplying plant)
4. migo wrt delivery(receiving plant)
5. Miro(in receiving palnt)
Requirement is we need to treat this scenario as sales and purchase .
Regards
Jyoti
Edited by: JYOTI PRAKASH KUNNAR on May 14, 2009 5:36 PM -
I have Pie Chart with legend text. This legend contains Unicode text.
To display my uncode text,i have converted my font (SylfaenARM) via CordaFontConverter.exe file and then i edited
OracleBI_HOME\web\config\chartfontmapping.xml and OracleBI_HOME\web\app\res\s_oracle10\popbin\ pie.pcxml files.
The result is that i can see my legend text, but the problem is that text cuts off by some characters from the end. This problem occures only for the newly added font. For other fonts everything goes ok.
I tried to increase value of TRUNCATE but it doesn't work.
The same problem occures for line chart axis labels, BUT not for TITLE labels, if i specify Title Label manually, it works just fine.
xan anyone help me ?
May be I configured chartfontmapping.xml and pie.pcxml files incorrectly?
here are the files:
chartfontmapping.xml
<?xml version="1.0" encoding="utf-8"?>
<fontMappings xmlns="com.siebel.analytics.web/chart/v1">
<fontMapping name="Sylfaen">
<choose>
<when locale="en*"><font name="Sylfaen"/></when>
</choose>
</fontMapping>
<fontMapping name="Sylfaen">
<choose>
<when locale="ka*"><font name="Sylfaen"/></when>
</choose>
</fontMapping>
<fontMapping name="*">
<choose>
<when locale="en*"><font name="Sylfaen"/></when>
</choose>
</fontMapping>
<fontMapping name="*">
<choose>
<when locale="ka*"><font name="Sylfaen"/></when>
</choose>
</fontMapping>
</fontMappings>
Pie.pcxml
<Textbox Name='title'>
<Properties TransparentFill='True' BorderType='None' Font='Name:SylfaenARM; Size:11; Style:Bold;'/>
<Text>Sample Text</Text>
</Textbox>
<Graph Name='graph' Type='Pie' SubType='Basic'>
<Properties Effect='2D' EffectPercentX='10' EffectPercentY='60' OutlineType='Darker'/>
<DataLabels Font='Name:SylfaenARM; Size:9;Style:Bold;' TransparentBackground='False' BGColor='#FFFFFFcd' Position='OutWithLeader' ShowSeriesTextType='NameBelowValueOnGraph' BorderType='None' />
<PopupText Font='Name:SylfaenARM; Size:12;' FillColor='White'/>
<PieLabel Visible='False'/>
<Legend Name='legend'>
<Properties AutoSizeMarkers='True' BorderType='None' GrowVerticalMaxHeight='1000' GrowHorizontalMaxWidth='1000' MinimumFontSize='9' Font='Name:SylfaenARM; Size:9;'/>
</Legend>
</Graph>
</Chart>Hi, Guram! Did you find solution? I have the same problem. :((
Edited by: vkos on May 27, 2010 11:33 AM -
Problem in third party processing billing document
dear all,
I am facing problem in creating the billing document for third party processing.
The error is : Item category ZEXM TAS cannot be invoiced by using billing type ZFAZ.
I think the problem is in copy control for billing document item . Kindly tell the solution.
Thanks...Dear Buddi ,
Now , the billing document is getting saved after changing the copy control for item category.
But , the system is giving error ( The accounting document is not generated ) .
I have checked all the settings in VKOA against the account keys maintained in pricing procedure for this merchant exports case.
One another problem related to this issue is : Which setting is required to capture the Price maintained in item - > conditions at the VA01 level in EUR or USD . I have maintained the condition record in EUR in VK11 , but still while making order , the error is coming mandatory condition type ZBPR( Basic Price ) is missing .
Awiating your response . -
Problem with Account determination
Hi all.
I have a problem with account determination when I change some data in Tcode VKOA.
For example:
I made changes in VKOA to determine G/L account 0000523201 and it worked it.
But in the account document the account that is displayed is different (0000501000) and I don´t know why.
I checked the Analysis Account Determination in VF03 and the system found the correct account in the access sequence, but I realized that there is a second line with the message G/L account in document 0000501000 . Where do I determine this account, or how Can I fix it ?
Thanks for any help.
RenatoHi reanto
Check in VKOA all the G/L accounts for all the respective account keys. Also check wheather any provisional G/L account have been maintained or not. for any account key
Also check wheather twice if you have maintained for the same account key different G/L accounts
Regards
Srinath -
Problem with JECS and S&H cess condition type
Dear Experts,
According to client requirement, I have done pro-forma delivery *** excise invoice. Then I have done J1IIN- Excise invoice.(Account doc created). After that I have done F2 commercial billing with reference to delivery. Here if I include only 'basic excise
duty' condition type, getting no problem in FI posting. But if I include Ecess (JECS) and S&H cess (JA1X) condition type, then I can't post the commercial invoice into FI . An information message is coming, "no accounting doc generated". and the status in the billing document is "error in accounting interface". I have done all settings of account determination of CIN. Still getting this error. Please help me to overcome the problem.
Thanks in advanceDear Prashanth,
I have maintained 1. Account key EXD for JEXP, JECS and JA1X condition types. 2. Maintain account determination in CIN. 3. I have also maintained Tax code (A4, AC etc for VAT and CST) and maintained the condition record with tax code in vk11 also.
Should I maintain VKOA with EXD account key with KOFI and KOFK? I maintained previously EXD in VKOA also but still Im stuck in that problem. so I deleted from VKOA. I tried to post through VF02. at that time it is showing a message "Error in account determination : table T030K key BPIN EXD. Message no. FF709". but for JEXP I can post to FI without any error. I tried to search in that forum about the error. but didnt get any solution.please advice me.
Edited by: neel06 on Apr 30, 2011 9:41 AM
Maybe you are looking for
-
Adobe Acrobat Pro 9 - Automate inserting signature & fields into document to be split
Hi, I am a beginner with a huge task I am trying to automate. Not sure its possible but here goes. I am getting ready to "print" my 200+ teacher contracts to a PDF file from my Filemaker Pro database. This creates one big PDF file with just over 2
-
Audio and Video issue with Windows 8.1 upgrade on Ideapad n585
I upgraded my Ideapad N585 to Windows 8.1 the other day, took forever, but it made it through. Unfortunately, I now get boot erors for the Dolby software, and the AMD Vision/Catalysyt Control Center. Neither of these programs are able to start, fro
-
Where did my previous purchases on iPad go? I have lost them.
-
I have forgot my security answers but when I've done my apple ID I didn't choose one recuperation email, so how I can change my answers to buy in the apple store?
-
Trouble with playing movie clips
PLEASE can someone help? I have just imported video footage from my old Sony Handycam and all that appears on the event library is single grey squares...clips? It takes forever for the beachball to stop whizzing - don't understand it. It tried to w