Maintaining varients
Hello all,
Can anyone tell me the way in which we can maintain varients whose parameter fields (year and month) should be automatically updated daily using TVARV and TVARVC tables.
I am trying to do it but i am getting an error message when trying to save, saying that ' <varialble name> not allowed for type P'.
Thanks in advance.
raj
Need more explanation
Similar Messages
-
Dear all
What is the procedure to maintain Form Varient for Witholding tax Report.
I'm getting following error:
Variant SAP&TH_WTH_REP of program RFIDYYWT is not the current version
Message no. DB634
Diagnosis
You attempted to start report RFIDYYWT using variant SAP&TH_WTH_REP. Since this variant was generated, the report SELECT-OPTIONS or PARAMETERs have changed considerably, i.e. the type or length no longer match and PARAMETERs have become SELECT-OPTIONS or vice versa. Many of these changes are so serious that even attempting to import the variant results in runtime errors.
Procedure
Adjust or delete the variant.
Regards
KrisThe solution is what the error message suggests as a "procedure"
If you can get into the form, you will need to adjust the form. Maybe new fields should be added, or previously fields have been deleted.
If you can not get into the form, you will need to delete it and recreate it. -
Error While Running Query in SQ00 in Prod Variant Not Standard Created.
Dear Gurus,
when i am running a Query in Sq00 T-code it will display a Error message
the Error is "Variant Standard Not Created" or The Field String "R01" Contains No fields "
some user is changing in this query so is it possible to retrieve the old version or how can we resolve the issue
kindly help me
regards
RSHi,
for your quiry,
Sq00 >>> Put u r quiry >>> go to menu >>> Maintain varient
or
T-code SQVI
Kapil -
Automatic payment program setting
Hi sir,
Could you resolve my below query :
What is the cycle for Automatic payment program setting ?Hi,
Running AUTOMATIC PAYMENT PROGRAMME:
T Code F110 process,
Enter the following things,
Rundate : Can be today's date
Indentification : Anything (eg. app, app1, aap2)
and press enter, and go to parameters tab,
Posting Date : Can be today's date (Payment entry posting date)
Docs entered up to : Can be today's date (here specify the date till that date dues will be considered)
Company code - Your company Code
Payment method - Your PM
Next P/Date - Enter next payment run date (dues will be selected one day before that date)
Customer / Vendor : enter the customer / vendor or its ranges
GO to free selection tab,
Field Name : Select any option if you wanted to restricted to it (It looks like non-seletable means grayed out but you can select it) you can select Business area to make payment only to that BA or click on Exclude values to exclude that BA alone
Values - give the values of your selection. If it is multiple selection, use "," (commas) to understand it.
Go to additional Log tab,
X - Due date Check
X - Payment Method selection in all cases
_ - Payment method selection if not sucessful
X - Line item of the payment documents
and again give the vendor or customer or its ranges here also.
Goto Printout / data medium,
Against your program - Give some varient name (eg. APP) and click on maintain Varient tab on the top it will take you to the next screen,
There you can select Individual selection and your Co Cd
and it will take u to one more screen, there give
Program run date : Rundate entered at very first
Identification feature : give your identification
Paying company code : Your company code
Payment method : Your payment method
House bank : Your HB
Account ID : Your HB ID for payment
Check lot number : Give check lot number Maintained in FCHI
Print check - Printer name
and select and give the information where ever you feel it is required. And go back it will ask u to save the varient, do the it.
Now click on Status, now again it will ask you to save, do it. Now click no proposal tab, it will pop-up one window, there
X - Start Immediately; X-Create payment medium and tick
Keep refresh it till you get the message "Payment proposal has been created" in the status.
Now you can check the proposal log,
If the proposal Log is OK then, click on Pmnt Run tab,
it will pop-up one window, there
X - Start Immediately; X-Create payment medium and tick
Keep refresh it till you get the message "Payment run has been carried out" in the status.
Now you can check the payment log also, to check the same
Now you can click on Printout tab,
X - Start Immediately; Job name - Delete ? and give some reference like APP1 etc., and tick
Now goto your own job to see the whether it is completed or not and from there you can goto your spool request to print the check.
Bank configuration:
To set up Electronic Bank Statements (EBS)
1. Create House Bank and Account ID (FI12)
2. Setup EDI Partner Profile for FINSTA Message Type (WE20)
3. Configure Global Settings for EBS (IMG)
- Create Account Symbols
- Assign Accounts to Account Symbols
- Create Keys for Posting Rules
- Define Posting Rules
- Create Transaction Types
- Assign External Transaction Types to Posting Rules
- Assign Bank Accounts to Transaction Types
4. Define Search String for EBS(Optional)
- Search String Definition
- Search String Use
5. Define Program and Variant Selection
Additional information is also available in the SAP Library under:
Financial Accounting > Bank Accounting (FI-BL) > Electronic Bank Statement >
Electronic Account Statement Customizing.
Bank Reconcilliation Statement
The following are the steps for BRS:
Create Bank Master Data - This can be created through T.Code FI01 or you can also create the house bank through IMG/FA/Bank accounting/Bank account
2. Define House Bank
3. Set up Bank selection payment programe- IMG/FA/ARAP/BT/AUTOIP/PM/Bank selection for payment prg.
a. setup all co codes for payment transaction - Customer and vendors
b.setup paying co codes for payment transactions
c.setup payment method per country
d.setup payment method per co code for payment transaction
e.setup bank determination for payment transaction
Please go for Cheque mangement using T code FCHI (IMG/FA/ARAP/BT/OP/AutoOp/PaymentMedia/CheckManagement) and for void reasons FCHV. You can create Bank Reconcilliation statement by TC FF67 (SAP/AC/Treasury/CashManagement/Incomings/ManualBankStatement) . Don't forget to keep the opening Balance as zero. Use FBEA for post process.
All the steps together will lead to (FF67) Bank reconciliation statement.
Thanks,
Prithwiraj. -
Events in process chain.
Plz can I get the steps for loading data to the infocube through infopackage using process chain thrice in a day? please give me any links about process chain management..
would appreciate,
jay
Edited by: jay rampal on Nov 12, 2008 1:28 AMHi,
You can schedule your process chain to run 3 times a day.
For example you want to run process chain at morning 6 A.M., 2 P.M. and night 10.P.M.
right click on your start process -> maintain varient -> change selections -> date/time -> give todays date -> periodic selections -> here you can give 8 hrs, so that your chain will run 3 times a day. check and save. again save, come to process chain screen -> click on clock symbol to execute the chain. you can see a released job in SM37 which runs based on your selections. -
Pls give me step by step sequence of Automatic Payment Prog
Hi,
Pls give me step by step sequence of Automatic Payment Program.
Thanks in AdvanceHi,
Automatic Processing : In this processing the system prepares open item to be paid and prepare a payment document & to this payment document the system prepares a cheque with the payment advise note automatically
Configuration of Automatic Payment Program : SPRO - Ref-IMG-FA-A/R&A/P u2013 Business Transaction- Outgoing Payments u2013 Automatic Outgoing Payment u2013 Payment Method/Bank Selection for payment program u2013 Set up all Company codes for payment transactions.(T.Code:FBZP)
New Entries
Company code : 6023
Control data
Paying Company code : 6023
Enter & Save back to menu item
Setup paying Company Code for Payment Transactions :
New entries
Paying Company Code : 6023
Control Data
Minimum amount for incoming payment ________
Minimum amount for outgoing payment 500 INR
Forms
Sender Details
Select Forms
Form for the payment advice u2013 Select International Payment advice Note F_110_IN_AVIS
Save back to menu Item
Setup payment methods per country per payment Transaction :
New Entries
Country IN
Payment method X (any identification No or Alpha)
Description Cheq
Payment method for
u2022 Outgoing payment
Payment method classification * Check
Posting Details
Document type for payment KZ
Clearing Document Type KA
Use classic payment medium programs payment medium program RFFOUS_C
RFFO : Program Code
US : Country
C : Payment
Name of Print dataset : LIST1S
& SAVE Back to menu Item
Setup payment methods per Co code for Payment Transactions
New Entries
Paying Company Code : 6023
Payment Method X
Minimum Amount 500
Maximum Amount 5000000
Select form data
Forms
Form for the payment transfer medium F_110_PRENUM_CHECK
(International u2013 Check (with check management)
Next form
Enter & Save back to menu item
Set up Bank determination for Payment Transaction :
Select Position button
Paying Company Code 6023
Paying Company Code Name
6023 Reliance Infocom
Select Company Code
Select Bank Selection : Ranking Order
New Entries
PAYMENT CURRENCY RANK ORDER HOUSE BANK
X INR 1 6SBI0
X INR 2 6ICIC (NEXT PREFERED BANK)
ENTER & SAVE
Select Bank Accounts
New Entries
HOUSE BANK PAYMENT CURRENCY ACCOUNT ID BANK SUB A/C
6SBI0 X INR 6S002 211002
6ICIC X INR 6I002 211002
If we do not specify currency --- all the currency accepted
Save
Select Available Amounts
New Entries
House Bank Account ID Days Currency Available for O/ Pay
6SBI0 6S002 999 INR 500000
6ICIC 6I002 999 INR 500000
Save & Bank to Menu Item
CHANGE VENDOR MASTER RECORD TO SPECIFY THE PAYMENT METHOD XK02 :
Vendor 1000000
Co Code 6023
Co Code Data
Payment Transactions
Enter
Automatic Payment Transactions
Payment Method X
& Save
lly
For all the Vendor Master Record specify the payment method
Execution of Automatic Payment Program :- Accounting u2013 FA u2013 A/P u2013 Periodic
Processing F-110 u2013 Payments
Enter Run Date : 20-04-2006
Identification Code : YRK00
Select Parameters
Posting Date : 20-04-2006 Doc entered upto 20-04-2006
Payment Control
Company Code Pmt Method Next Posting Date
6023 X 21-04-2006
Accounts
Select Vendor Accounts 1000000 to 3840099
Specify the range of vendors
Save the parameters
Select Status Button
Select Proposal Button
Start immediately
Continue
Press enter key until the system displays a message payment proposal has been created.
To Check Payments List u2013 Select Edit Proposal
Continue
The System displays
Vendor Item PM H.Bank Curr Amount
1000000 2 X 6S002 6SBIO INR 500000-00
To Block the Payment : Double click on the item - again double Click
Block
Payment Block A Blocked for payment
Continue
Select back button
Select exceptional list item u2013 Select Reallocation Block
Payment Method X
House Bank 6ICIC 61002
Continue
Select back button
Save
Select back button
Select Printout/datamedium
From printing/data medium exchange
Program Varient
RFFOAVIS 6023 AVIS
Keep the cursor on first row/Columns Enter
Name : 6023 AVIS
Select maintain Varients
Select Continue Button
Program run date
Paying Co. Code 6023
Number of Sample
u2022 Print immediately
u2022 Select attributes
Varient Name
Meaning Payment advice form
& Save
Select back button
Keep the cursor on 3rd row first column
Program Variant
RFFOAVIS 6023 AVIS
RFFOEDI1
RFFOUS_C 6023SBI (3RD ROW FIRST COLUMN)
Select maintain Variant
Paying Co Code : 6023
Further Selection
Paymethod X
House Bank 6SBI0
Account ID 6S002
Check Lot No : 2
* Print Checks Printer LP01 * Print immediately
* Print Payment Advise Note Printer LP01 * Print immediately
* Print Payment Summery Printer LP01 * Print immediately
Output Control
Number of Sample Printouts 0
Select Attributes Button
Varient Name 6023SBI
Meaning State Bank of India
Save
Select back button
From Printing
Program Variant
RFFOAVIS
RFFOEDI1
EFFOCUS_C 6023 ICICI
Maintain Varient
Paying Co Code : 6023
Further Selections
Payment Method X
House Bank 6 ICIC
Account ID 61002
Check Lot No.2
Print Control
* Print Checks Printer LP01 * Print immediately
* Print Payment Advise Note Printer LP01 * Print immediately
* Print Payment Summery Printer LP01 * Print immediately
Output Control
Number of Sample Printouts 0
Select Attributes Button
Varient Name 6023ICICI
Meaning ICICI
Save
Select back button
Select Status Button
Select Payment Run
Start Date : 20-04-2006 Start immediately
Create Payment medium
Select Continue Button
Press Enter Key until system the display message u2013 payment run has been carried out
Select Printout
Print JOB
JOB NAME F11020060420-YRK00--? 1
To check the job: System u2013 Services u2013 Output u2013Control u2013 Execute
Spool No Type Date Time Status Pg Title Cheque
*1167
Select Display Content Button
*1168 Payment Advice
Post with Print Form :
Accounting u2013 FA u2013 A/P u2013 Document Entry u2013 Outgoing Payment u2013 F-58
Post+Print Form
Payment method and form specifications
Co Code : 6023
Payment Method X
House Bank 6 ICIC
Check Lot No : 2
Alternative Form F110-PRENUM-CHK
Printer
Printer for Forms LP01 * Print immediately
Payment Advice Printer LP01
Enter Payments
Document Date : 20-04-2006
Posting Date : 20-04-2006
Bank Posting details
Amount : 10000
Value Date : 20-04-2006
Payee
Vendor 383001
Select Process Open Items
Select Partial Payment
Simulate
Post
Print Parameters
Output LP01
Number of copies 1
*Continue
The System display-PrintJob was generated System u2013 Services- Output Control
Spool Req Number XXXX
Execute Title
Cheque
u2022 Select Display Content Button -
Hi PM Experts,
I have one Object PM_QMEL (Archive notification).I created a new notification(status NOCO)now i have to archive that notification so i use following steps,
< tcode SARA>
<Shedule preprocessing>
<maintain varient for it>
<Define start date as immediate>
<spool parameter>
<execute >
<system has created newprocessing job>
<write "create archive files">
<maintain varient for it>
<Generate archive file>
<Define start date as immediate>
<spool parameter>
<execute>
<Archive job was schedule>
<Execute delet program>
when i go for this step execute delete program in tab Archive selection i didn't get any data
Can any body tell me which step i miss so that i didn't get data under Archive selection tab
Edited by: pankaj mohite on Jan 30, 2009 8:55 AMHi,
What is residence time 1 and 2 set for notification object in config.Residence time 1 refers to selecting those notification having DLFL status set and that time has elapsed.Residence time 2 refers to time elapsed from deletion indicator set(at end of Residence time1) and if any record falls within and beyond this limit it will get archived.This time is time DLFL set for record to batch job run time and this refers to residence time 2.Records satisfying these conditions will get archived.So check on these parameters.
As while executing delete program you ar enot getting records ,this indicates above conditions are satisfied.
rgds,
atul
Edited by: Atul Mali on Mar 1, 2009 1:19 PM -
hi,
this is sudhakar
pls any one tell me
I prepaired process chain
but i dont know how to start how it run daily automatically
pls any one give ans
thanks
sudhakarhi,
open your process chain -> right click on start process -> select maintain varient -> select direct scheduling -> goto change selections tab -> select date/time give from when you want to run for eg from today 3.00 PM means in date tab give todays date and in time tab give the time info. in bottom select periodic jobs check box and click on periodic values tab -> here select daily check and save again check and save again save. now you schedule your job at 3.00PM from today, now you need to release this job, after this settings come to your process chain click on clock symbol to activate and schedule your process chain. so this chain will run at specified time, you can check this in SM37 by giving your user name and released job as job status.
Regards
Sankar -
Hi ,
Please let me know how to fetch termination employees in MSS reports.
We are using ECC5.0.
When we execute the report ,it is displaying all the active employees.
If i execute new hire employees I am getting same exmployee and if I execute termination employees I am getting same employees.
My requirement is if i execute new hire report it should give the employees who is reporting to that manager
If i execute termination report it should give the employees who are terminated under that manager
Can anyone help me how to solve this issue <removed by moderator>.
Thanks,
UshaHi,
I already maintained varient with employment status.
Report is not giving termed employees at all.
For hire and termed employee it is showing same 67 employees which is wrong.
Can anyone help me to solve?
Thanks,
Usha -
Batch archiveing procedure issues
Hi
I am trying to archive Material batches ...but i have structued in process
i have followed below steps:
i have maintained varient in mm74 t.code ... then click on start button ..click on immediately ..its become green ..then click on spool button it becomes green ..then click on execute.....and go to sm37 ... i checked job statues is finished ...
then goto SARA t.code .. there i entered archive object MM_SPSTOCK..then click on archive delete button ...archive selection screen appreard ..but inthis screen .. i have got the selections (which i have created variant in MM74)
could you pls guide ..correct process..
Regards
Sasi......i checked job statues is finished
this is certainly not enough, An archving job finishes even it has not archived anything because of errors
You have to display the spoolfile with the detailed archiving log.
There you can see if records got archivied or not.
and if not, SAP lists the reasons.
In case of batches it is usually a dependency, e.g. that you have stock, or that the batch is in use, because it is referenced in purchase order, production orders, deliveries etc. Those objects have to be archived prior to the batches.
Further, depending on customizing, the write job and the delete job can be tight together. In this case you dont need to execute the delete job manually in SARA. However, you would see an extra delete job in the job overview (but only if the write job archived something) -
Hi Guru,
When I print check in F110, why I always have check in test print ? eg. I should have only one cheque, but the first two are test print cheque out. why it is ?
Thanks,
KickHi,
Go to printout / data mediua buttion select maintain varient button in that screen Number of sample prientouts coloum give 2, it will be print 2 checks.
Regards
gvr -
Maintain Fiscal Year Varient for PPM
Dear Expert...
I want to set the fiscal year variant for April to March.
I have maintained fiscal year variant V3 periods and periods text. When i am trying to define planning period type during that i am geting an error-Fiscal variant V3 uses periods not supported by pipeline performance mgmt.
Please suggest me what i need to do for next step.
Thanks
SAP User-MontuHi Montu,
Please refer the below links. It has some useful information.
Pipeline Performance Management - fiscal quarters
http://help.sap.com/saphelp_crm70/helpdata/EN/9d/f6a3dbbbd3451f91c57558774c7123/content.htm
Warm regards,
Murukan Arunachalam -
Picking of the varient pricing in scheduling agreement
Hello Gurus
goodmorning
i have a small query i.e when i'm using OR as a document type for my sales order its picking the varient price and all are going fine but when i'm trying to do same for scheduling agreement DS in my sales order its not picking the varient pricing plz help me out wat could be the reason.
in advance thank you
venkat
Edited by: K.Venkata Chalapathi on Jan 30, 2009 9:10 AMDear Venkat,
Price will get determine in the sales order based on two settings
1.Pricing procedure determination
2.Condition record maintanence.
This may happen for two reasons
1.Different pricing procedures are getting determined for sales order and scheduling agreement.
One pricing procedure may have variant condition type and other pricing procedure may not have the variant condition type.
So check same pricing procedure is getting determine in the both documents or not
2.Condition record may not maintained for the scheduling agreement document type in VK11
So check the condition record maintanence for the variant condition type through VK13 transaction.
I hope this will help you,
Regards,
Murali. -
How to maintain the column heading in two lines
for example i have field ACCOUNTING CLEARK
i want to display this description in alv list
like ACC
clk
Please send the solution for this.
very urgent
thanks in advance
regards
venuhi
please check my code
for field KNB1-BUSAB
i want the description ACC in place of ACC CLK
CLK
means in two lines
report zfir0098 message-id zz
line-size 255
line-count 65
no standard page heading.
(C) Copyright <2006> by Eastman Kodak Company - All Rights Reserved.
Report Name : ZFIR0098
Author : Venugopalreddy.K
Created on : 12-MAY-2006
SIR# : 086279
Interface ID# : RO-01509 - Open AR Aging by Due Date
Correction# : D11K947333
Transaction code: Z_ZFIR0098
Logical Database: N/A
SAPScript name : N/A
Application Area: FI
Programs Called : N/A
Function Modules: REUSE_ALV_VARIANT_F4
REUSE_ALV_VARIANT_DEFAULT_GET
REUSE_ALV_EVENTS_GET
REUSE_ALV_LIST_DISPLAY
REUSE_ALV_EVENTS_GET
REUSE_ALV_COMMENTARY_WRITE
Description : Report to display Open AR with Aging by due
date. The open items are displayed by Linked
Accounts, Customer Account, Business unit and
Posting Date.
Correction# SIR# Modified By Date
D11Kxxxxxx xxxxxx xxxx MM/DD/YYYY
Description of change (copy from SIR):
(text)................................................................
TABLE DEFINITION *
tables : t001, "Company Codes
knvv, "Customer Master Sales Data
bsid, "Accounting: Secondary Index for Customers
knkk, "Customer master credit management: Control area data
kna1, "General Data in Customer Master
knb1, "Customer Master (Company Code)
t052, "Terms of Payment
tvv1. "Customer Group 1
TYPE POOLS *
type-pools: slis.
INTERNAL TABLE DECLARATION
Internal table for Customer Master (Company Code)
data : begin of i_knb1 occurs 0,
kunnr type knb1-kunnr,
bukrs type knb1-bukrs,
busab type knb1-busab,
end of i_knb1.
Internal table for Customer Master Sales Data
data : begin of i_knvv occurs 0,
kunnr type knvv-kunnr,
vkorg type knvv-vkorg,
kvgr1 type knvv-kvgr1,
zterm type knvv-zterm,
end of i_knvv.
Internal table for linked account nos.
data : begin of i_knkk occurs 0,
kunnr type knkk-kunnr,
kkber type knkk-kkber,
klimk type knkk-klimk,
knkli type knkk-knkli,
sbgrp type knkk-sbgrp,
grupp type knkk-grupp,
kdgrp type knkk-kdgrp,
end of i_knkk.
Internal table for Customer's credit limit
data : begin of i_knkk_knkli occurs 0,
kunnr type knkk-kunnr,
klimk type knkk-klimk,
knkli type knkk-knkli,
end of i_knkk_knkli.
Internal table for T001 records
data: begin of i_t001 occurs 0,
bukrs type t001-bukrs,
waers type t001-waers,
end of i_t001.
Internal table for BSID records
data : begin of i_bsid occurs 0,
bukrs type bsid-bukrs,
kunnr type bsid-kunnr,
zuonr type bsid-zuonr,
belnr type bsid-belnr,
budat type bsid-budat,
bldat type bsid-bldat,
waers type bsid-waers,
shkzg type bsid-shkzg,
dmbtr type bsid-dmbtr,
wrbtr type bsid-wrbtr,
zfbdt type bsid-zfbdt,
zterm type bsid-zterm,
zbd1t type bsid-zbd1t,
zbd2t type bsid-zbd2t,
zbd3t type bsid-zbd3t,
kkber type bsid-kkber,
end of i_bsid.
Internal table for Customer Master
data : begin of i_kna1 occurs 0,
kunnr type kna1-kunnr,
name1 type kna1-name1,
end of i_kna1.
Internal table for Terms of Payment
data : begin of i_t052 occurs 0,
zterm type t052-zterm,
ztagg type t052-ztagg,
ztag1 type t052-ztag1,
ztag2 type t052-ztag2,
ztag3 type t052-ztag3,
end of i_t052.
Internal table for final output
data : begin of i_output occurs 0,
kunnr1 type bsid-kunnr,
kunnr type bsid-kunnr,
bukrs type t001-bukrs,
kdgrp type knkk-kdgrp,
name1 type kna1-name1,
kvgr1 type knvv-kvgr1,
knkli type knkk-knkli,
klimk type knkk-klimk,
sbgrp type knkk-sbgrp,
zuonr type bsid-zuonr,
bldat type bsid-bldat,
due_date type bsid-zfbdt,
not_due type bsid-dmbtr,
curr_due type bsid-dmbtr,
due_01_30 type bsid-dmbtr,
due_31_60 type bsid-dmbtr,
due_61_90 type bsid-dmbtr,
due_91_180 type bsid-dmbtr,
due_181_365 type bsid-dmbtr,
due_gt_365 type bsid-dmbtr,
spcol type bsid-dmbtr,
tot_due type bsid-dmbtr,
tot_ar type bsid-dmbtr,
waers type t001-waers,
zterm type bsid-zterm,
zterm1 type knvv-zterm,
v_no_days type i,
busab type knb1-busab,
end of i_output.
Internal table for summary data
data : begin of i_output_summary occurs 0,
bukrs type t001-bukrs,
kunnr type bsid-kunnr,
name1 type kna1-name1,
kvgr1 type knvv-kvgr1,
klimk type knkk-klimk,
zterm type knvv-zterm,
kdgrp type knkk-kdgrp,
sbgrp type knkk-sbgrp,
busab type knb1-busab,
not_due type bsid-dmbtr,
curr_due type bsid-dmbtr,
due_01_30 type bsid-dmbtr,
due_31_60 type bsid-dmbtr,
due_61_90 type bsid-dmbtr,
due_91_180 type bsid-dmbtr,
due_181_365 type bsid-dmbtr,
due_gt_365 type bsid-dmbtr,
spcol type bsid-dmbtr,
tot_due type bsid-dmbtr,
tot_ar type bsid-dmbtr,
waers type t001-waers,
end of i_output_summary.
Temporary internal table for KNVV records.
data : i_knvv_tmp like i_knvv occurs 0 with header line.
Temporary internal table for KNKK records.
data : i_knkk_tmp like i_knkk occurs 0 with header line.
Temporary internal table for BSID records.
data : i_bsid_tmp like i_bsid occurs 0 with header line.
FIELD STRING DECLARATION
Structure to validate selection screen
data : begin of v_radio,
rd1 type c,
rd2 type c,
rd3 type c,
end of v_radio.
Structure to validate selection screen
data : begin of v_radio1,
rd1 type c,
rd2 type c,
rd3 type c,
end of v_radio1.
Internal Tables for ALV Report
data: i_fieldcat_alv type slis_t_fieldcat_alv,
i_sort type slis_t_sortinfo_alv,
i_sort1 type slis_t_sortinfo_alv,
i_events type slis_t_event,
v_events type slis_alv_event,
v_fieldcat_alv type slis_fieldcat_alv,
v_sort like line of i_sort,
v_sort1 like line of i_sort1,
v_layout type slis_layout_alv,
v_print type slis_print_alv,
i_list_comments type slis_t_listheader,
v_list_comments like line of i_list_comments,
v_variant like disvariant, "Layout-External Use
v_variant_save type c, "To Store the Varient
v_variant1 like disvariant,
v_exit type c. "Event exit
Data declaration
data: v_paym_days type i,
v_date_diff type i,
v_zterm type t052-zterm,
v_bukrs1 like bsid-bukrs,
v_kunnr like bsid-kunnr,
v_kdgrp like knkk-kdgrp,
v_bukrs like bsid-bukrs,
v_name1 like kna1-name1,
v_knkli like knkk-knkli,
v_klimk(20) type c,
v_kvgr1 like knvv-kvgr1,
v_kkber like knkk-kkber,
v_sbgrp like knkk-sbgrp,
v_busab like knb1-busab.
data: v_cust_not_due type bsid-dmbtr,
v_cust_curr_due type bsid-dmbtr,
v_cust_due_01_30 type bsid-dmbtr,
v_cust_due_31_60 type bsid-dmbtr,
v_cust_due_61_90 type bsid-dmbtr,
v_cust_due_91_180 type bsid-dmbtr,
v_cust_due_181_365 type bsid-dmbtr,
v_cust_due_gt_365 type bsid-dmbtr,
v_cust_spcol type bsid-dmbtr,
v_cust_tot_due type bsid-dmbtr,
v_cust_tot_ar type bsid-dmbtr,
v_curr type t001-waers,
v_name type kna1-name1,
v_kvgr type knvv-kvgr1,
v_kdgrp1 type knkk-kdgrp,
v_klimk1 type knkk-klimk,
v_zterm1 type knvv-zterm,
v_sbgrp1 type knkk-sbgrp,
v_busab1 type knb1-busab.
data: v_repid like sy-repid,
v_flag type c.
CONSTANT DEFINITION
constants:
c_sel_x(1) type c value 'X',
c_0(1) type c value '0',
c_1(1) type c value '1',
c_knkli(7) type c value 'S_KNKLI',
c_kdgrp(7) type c value 'S_KDGRP',
c_debit_s(1) type c value 'S',
c_credit_h(1) type c value 'H',
c_deflt_zterm_y000(4) type c value 'Y000',
c_sc01(4) type c value 'SC01',
c_subtotal_text type slis_formname value
'ALV_SUBTOTALS',
c_formname_top_of_page type slis_formname value
'F_TOP_OF_PAGE',
c_formname_top_of_page_summ type slis_formname value
'F_TOP_OF_PAGE_SUMM'.
Selection-screen
selection-screen begin of block b1 with frame title text-s01.
parameters : p_bukrs type t001-bukrs obligatory.
select-options : s_kvgr1 for knvv-kvgr1,
s_sbgrp for knkk-sbgrp,
s_busab for knb1-busab,
s_budat for bsid-budat,
s_kunnr for knvv-kunnr.
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-s02.
selection-screen begin of line.
parameters : p_lk_on as checkbox.
selection-screen comment 5(24) text-s10 for field p_lk_on.
selection-screen end of line.
selection-screen comment 02(67) text-s12.
selection-screen skip 1.
selection-screen begin of line.
parameters :p_knkli radiobutton group g1 user-command radi
default 'X'.
selection-screen comment 5(24) text-s05 for field p_knkli.
select-options :s_knkli for knkk-knkli.
selection-screen end of line.
selection-screen begin of line.
parameters :p_kdgrp radiobutton group g1.
selection-screen comment 5(24) text-s06 for field p_kdgrp.
select-options :s_kdgrp for knkk-kdgrp.
selection-screen end of line.
selection-screen begin of line.
parameters :p_all_lk radiobutton group g1.
selection-screen comment 5(24) text-s07 for field p_all_lk.
selection-screen end of line.
selection-screen end of block b2.
selection-screen begin of block b3 with frame title text-s03.
selection-screen begin of line.
parameters :p_op_ab radiobutton group g2.
selection-screen comment 5(32) text-s08 for field p_op_ab.
selection-screen end of line.
selection-screen begin of line.
parameters :p_ab radiobutton group g2.
selection-screen comment 5(16) text-s09 for field p_ab.
selection-screen end of line.
selection-screen end of block b3.
selection-screen begin of block b4 with frame title text-s11.
parameters :p_vari like disvariant-variant.
selection-screen end of block b4.
INITIALIZATION
initialization.
To initialize the variant
perform initialize_variant.
To fetch the default variant for the ALV report
perform display_default_variant.
At selection-screen
at selection-screen.
To validate company code
perform check_company_code.
To validate business unit
perform check_business_unit.
move: p_knkli to v_radio1-rd1,
p_kdgrp to v_radio1-rd2,
p_all_lk to v_radio1-rd3.
if not s_kvgr1[] is initial and
not s_sbgrp[] is initial.
message e045 with text-073.
endif.
at selection-screen output.
move: p_knkli to v_radio-rd1,
p_kdgrp to v_radio-rd2,
p_all_lk to v_radio-rd3.
To maintain the select options visiable and invisible
perform selection_screen_output.
Check the radio buttons selected in selection screen
if v_radio1 eq v_radio.
To maintain the default settings
perform selection_screen_check.
endif.
AT SELECTION-SCREEN ON VALUE-REQUEST
At Selection Screen Value Request.
at selection-screen on value-request for p_vari.
To Display the Existing Variants(Layout).
perform variant_help_f4 using p_vari.
Event start-of-selection
start-of-selection.
Get the cusomer number
perform get_knb1_details.
Get the customer group details
perform get_knvv_details.
Get all linked account and credit account details from KNKK
perform get_linked_accounts_details.
Get open AR documents from BSID
perform get_open_ar_details.
Get the company code and curreny.
perform get_com_code_curr.
Get the customer name
perform get_customer_name.
Get the payment term days
perform get_payment_term_days.
Populate the final table having all the field details
perform populate_final_table.
To display the output in alv list.
perform alv_list_dispaly.
Form initialize_variant
To initialize the ALV Variant
form initialize_variant.
clear: v_variant.
v_repid = sy-repid.
v_variant-report = v_repid.
v_variant-username = sy-uname.
v_variant_save = 'A'.
endform. " initialize_variant
Form display_default_variant
To fetch the Default ALV variant
form display_default_variant.
if not p_vari is initial.
v_variant-variant = p_vari.
endif.
clear v_variant1.
v_variant1 = v_variant.
The function module is used to fetch the default variant
call function 'REUSE_ALV_VARIANT_DEFAULT_GET'
exporting
i_save = v_variant_save
changing
cs_variant = v_variant1
exceptions
wrong_input = 1
not_found = 2
program_error = 3
others = 4.
Based on the SUBRC value the variant is assigned
case sy-subrc.
when 0.
p_vari = v_variant1-variant.
when 2.
clear p_vari.
endcase.
endform. " display_default_variant
Form check_company_code
Validate Company Code
form check_company_code.
select single *
from t001
where bukrs eq p_bukrs.
if sy-subrc ne 0.
message e339.
endif.
endform. " check_company_code
Form check_business_unit
Validate Business Unit
form check_business_unit.
select single *
from tvv1
where kvgr1 in s_kvgr1.
if sy-subrc ne 0.
message e045 with text-e01.
endif.
endform. " check_business_unit
Form selection-screen-output
On selection of corresponding radio button the respective
Select-option will be high lighted
form selection_screen_output.
loop at screen.
if p_knkli = c_sel_x.
Credit Account invisible
if screen-name cs c_knkli.
screen-invisible = c_0.
screen-active = c_1.
modify screen.
endif .
Customer Group visible
if screen-name cs c_kdgrp.
screen-invisible = c_1.
screen-active = c_0.
modify screen.
endif.
elseif p_kdgrp = c_sel_x.
Credit Account invisible
if screen-name cs c_knkli.
screen-invisible = c_1.
screen-active = c_0.
modify screen.
endif .
Customer Group visible
if screen-name cs c_kdgrp.
screen-invisible = c_0.
screen-active = c_1.
modify screen.
endif.
elseif p_all_lk = c_sel_x.
Credit Account invisible
if screen-name cs c_knkli.
screen-invisible = c_1.
screen-active = c_0.
modify screen.
endif .
Customer Group invisible
if screen-name cs c_kdgrp.
screen-invisible = c_1.
screen-active = c_0.
modify screen.
endif.
endif.
endloop.
endform. " selection_screen_output
Form selection_screen_check
To check the selection screen radio buttons
form selection_screen_check.
if p_knkli = c_sel_x.
if p_op_ab is initial.
p_op_ab = c_sel_x.
p_ab = ''.
endif.
elseif p_kdgrp = c_sel_x.
if p_op_ab is initial.
p_op_ab = c_sel_x.
p_ab = ''.
endif.
elseif p_all_lk = c_sel_x.
if p_op_ab is initial.
p_op_ab = c_sel_x.
p_ab = ''.
endif.
endif.
endform. " selection_screen_check
Form variant_help_f4
To get the list of ALV help variants
form variant_help_f4 using p_variant.
call function 'REUSE_ALV_VARIANT_F4'
exporting
is_variant = v_variant
i_save = v_variant_save
importing
e_exit = v_exit
es_variant = v_variant
exceptions
not_found = 1
program_error = 2
others = 3.
if sy-subrc <> 0.
If no variants exist
message s045 with text-e02.
endif.
if v_exit is initial.
p_variant = v_variant-variant.
endif.
endform. " variant_help_f4
Form get_knb1_details
To get the Customer number
form get_knb1_details.
Fetch data from Customer Master (Company Code)
based on selection criteria(company code)
select kunnr bukrs busab
from knb1
into table i_knb1
where bukrs eq p_bukrs.
if sy-subrc ne 0.
message i561.
leave list-processing.
endif.
endform. " get_knb1_details
Form get_knvv_details
To get the Customer group details
form get_knvv_details.
if not i_knb1[] is initial.
sort i_knb1 by kunnr bukrs.
delete adjacent duplicates from i_knb1 comparing kunnr bukrs.
Fecth data from Customer Master Sales Data
based on internal table I_KNB1 and selection criteria
(customer group)
select kunnr vkorg kvgr1 zterm
from knvv
into table i_knvv
for all entries in i_knb1
where kunnr eq i_knb1-kunnr
and kunnr in s_kunnr
and vkorg eq i_knb1-bukrs.
if sy-subrc ne 0.
message i561.
leave list-processing.
endif.
endif.
endform. " get_knvv_details
Form get_linked_accounts_details
To get the linked account details
form get_linked_accounts_details.
if not i_knvv[] is initial.
get unique customer account KUNNR from i_bsid.
i_knvv_tmp[] = i_knvv[].
sort i_knvv_tmp by kunnr.
delete adjacent duplicates from i_knvv_tmp comparing kunnr.
clear v_kkber.
concatenate 'C' p_bukrs+1(3) into v_kkber.
sort i_knvv_tmp by kunnr.
Fetch the Customer's account number and Customer Group
details form Customer master credit management based on
internal table i_bsid_tmp and Credit control area
select kunnr kkber klimk knkli sbgrp grupp kdgrp
from knkk
into table i_knkk
for all entries in i_knvv_tmp
where kunnr eq i_knvv_tmp-kunnr
and kkber eq v_kkber.
if not i_knkk[] is initial.
i_knkk_tmp[] = i_knkk[].
if p_lk_on = 'X' or not s_knkli[] is initial
or not s_kdgrp[] is initial.
loop at i_knkk_tmp.
loop at i_knkk where knkli eq i_knkk_tmp-knkli
and kunnr ne i_knkk_tmp-knkli.
exit.
endloop.
if sy-subrc ne 0.
delete i_knkk where knkli eq i_knkk_tmp-knkli.
endif.
endloop.
endif.
if not s_knkli[] is initial.
delete i_knkk where not knkli in s_knkli.
endif.
if not s_kdgrp[] is initial.
delete i_knkk where not kdgrp in s_kdgrp.
endif.
if not s_sbgrp[] is initial.
delete i_knkk where not sbgrp in s_sbgrp.
endif.
else.
message i561.
leave list-processing.
endif.
else.
message i561.
leave list-processing.
endif.
endform. " get_linked_accounts_details
Form get_com_code_curr
Get the company code and currency
form get_com_code_curr .
select bukrs waers
from t001
into table i_t001
where bukrs eq p_bukrs.
endform. " get_com_code_curr
Form get_open_ar_details
Read BSID for all open AR
form get_open_ar_details.
if not i_knkk[] is initial.
refresh i_knkk_tmp.
i_knkk_tmp[] = i_knkk[].
sort i_knkk_tmp by knkli.
delete adjacent duplicates from i_knkk_tmp comparing kunnr.
Fetch the from Accounting: Secondary Index for Customers
based on internal table i_knvv and selection criteria(Posting Date
-in the Document)
select bukrs kunnr zuonr belnr budat bldat waers shkzg
dmbtr wrbtr zfbdt zterm zbd1t zbd2t zbd3t kkber
from bsid
into table i_bsid
for all entries in i_knkk_tmp
where bukrs eq p_bukrs
and kunnr eq i_knkk_tmp-kunnr
and umskz eq space
and bstat eq space
and budat in s_budat.
if i_bsid[] is initial.
message i561.
leave list-processing.
endif.
else.
message i561.
leave list-processing.
endif.
endform. " get_open_ar_details
Form get_customer_name
To get the customer name
form get_customer_name.
if not i_knvv_tmp[] is initial.
Get the customer name from KNA1 for all customer
select kunnr name1
from kna1
into table i_kna1
for all entries in i_knvv_tmp
where kunnr = i_knvv_tmp-kunnr.
endif.
endform. " get_customer_name
Form get_payment_term_days
To get the payment days
form get_payment_term_days.
if not i_bsid[] is initial.
clear i_bsid_tmp.
refresh i_bsid_tmp.
i_bsid_tmp[] = i_bsid[].
sort i_bsid_tmp by zterm.
delete i_bsid_tmp where shkzg ne c_debit_s.
if not i_bsid_tmp[] is initial.
Get the Payment days from T052
select zterm ztagg ztag1 ztag2 ztag3
from t052
into table i_t052
for all entries in i_bsid
where zterm = i_bsid-zterm.
endif.
endif.
endform. " get_payment_term_days
Form populate_final_table
To polupate final internal table
form populate_final_table.
sort i_bsid.
sort i_kna1 by kunnr.
sort i_knkk by kunnr.
sort i_knkk_knkli by kunnr.
sort i_knvv by vkorg kunnr.
sort i_t052 by zterm ztag1 ztag2 ztag3.
sort i_t001 by bukrs.
loop at i_bsid.
clear i_knb1.
read table i_knb1 with key kunnr = i_bsid-kunnr
binary search.
if not i_knb1-busab in s_busab.
continue.
else.
i_output-busab = i_knb1-busab.
endif.
clear i_knvv.
read table i_knvv with key kunnr = i_bsid-kunnr
vkorg = i_bsid-bukrs
binary search.
if not i_knvv-kvgr1 in s_kvgr1.
continue.
else.
i_output-kvgr1 = i_knvv-kvgr1.
i_output-zterm1 = i_knvv-zterm.
endif.
To read the data from kna1,knkk and knvv and moving data to final
internal table i_output.
perform move_kna1_knkk_knvv.
To read the data from bsid and t052 and moving data to final
internal table i_output.
perform move_bsid_t052.
To calculate the number of days.
perform move_no_of_days.
endloop.
endform. " populate_final_table
Form move_kna1_knkk_knvv
To read the data fron kna1,knkk and knvv
form move_kna1_knkk_knvv.
clear i_kna1.
read table i_kna1 with key kunnr = i_bsid-kunnr
binary search.
if sy-subrc eq 0.
i_output-name1 = i_kna1-name1.
endif.
clear i_knkk.
read table i_knkk with key kunnr = i_bsid-kunnr
binary search.
if sy-subrc eq 0.
i_output-knkli = i_knkk-knkli.
i_output-kdgrp = i_knkk-kdgrp.
i_output-klimk = i_knkk-klimk.
i_output-sbgrp = i_knkk-sbgrp.
endif.
endform. " move_kna1_knkk_knvv
Form move_bsid_t052
To read the data from BSID and T052
form move_bsid_t052.
move: i_bsid-kunnr to i_output-kunnr,
i_bsid-zuonr to i_output-zuonr ,
i_bsid-zterm to i_output-zterm,
i_bsid-bldat to i_output-bldat,
i_bsid-kunnr to i_output-kunnr1.
read table i_t001 with key bukrs = i_bsid-bukrs
binary search.
if sy-subrc eq 0.
move: i_t001-bukrs to i_output-bukrs,
i_t001-waers to i_output-waers.
endif.
if i_bsid-shkzg eq c_credit_h.
i_bsid-dmbtr = - i_bsid-dmbtr.
endif.
move i_bsid-dmbtr to i_output-tot_ar.
If base line date is initial, then use Document date.
if i_bsid-zfbdt is initial.
i_bsid-zfbdt = i_bsid-bldat.
endif.
if i_bsid-shkzg eq c_debit_s.
clear v_paym_days.
if not i_bsid-zbd3t is initial.
v_paym_days = i_bsid-zbd3t.
elseif not i_bsid-zbd2t is initial.
v_paym_days = i_bsid-zbd2t.
elseif not i_bsid-zbd1t is initial.
v_paym_days = i_bsid-zbd1t.
if no discount days is existing in BSID the
take discount days from table T052
else.
clear : i_t052,
v_zterm.
if i_bsid-zterm is initial.
v_zterm = c_deflt_zterm_y000.
else.
v_zterm = i_bsid-zterm.
endif.
read table i_t052 with key zterm = v_zterm
binary search.
if sy-subrc eq 0.
if not i_t052-ztag3 is initial.
v_paym_days = i_t052-ztag3.
elseif not i_t052-ztag2 is initial.
v_paym_days = i_t052-ztag2.
elseif not i_t052-ztag1 is initial.
v_paym_days = i_t052-ztag1.
endif.
endif.
endif.
i_output-due_date = i_bsid-zfbdt + v_paym_days.
else.
i_output-due_date = i_bsid-zfbdt.
endif.
clear v_date_diff.
v_date_diff = sy-datum - i_output-due_date.
i_output-v_no_days = v_date_diff.
endform. " move_bsid_t052
Form move_no_of_days
To read the no of days
form move_no_of_days.
if i_knkk-grupp = c_sc01.
i_output-spcol = i_bsid-dmbtr.
else.
if v_date_diff < 0.
i_output-not_due = i_bsid-dmbtr.
elseif v_date_diff = 0.
i_output-curr_due = i_bsid-dmbtr.
elseif v_date_diff <= 30.
-
Unable to save the sales order in varient configuration
Hi Gurus,
In varient configuration i have done all the settings and it works fine, and i am getting one error
while saving the sale order(incomplete long) showing configuration.
while click the error shwoing like this :
Item 000011 can only be changed by configuring material XXXX(item 000010)
Error Message NO. V1456
(Item &1 can only changed by configurable material &2 (item &3))
Please help in in this regards.
Where i am missing the settings.
Thanksa and reagards
E.RambabuDear Rambabu,
While saving the sales order Configuration showing in the incompletion log means it is related to configurable material only so you look in these areas,
1.Check the BOM settings whether BOM is exploding properly or not.
2.Item category is getting determined or not.
3.Have you able to select the sub item items through configuration selection screen or not.
4.Go to transaction VOV7 check the item category settings related to the configuration.
5. Have you maintained all the data in the KMAT (Configurable) material master data like class assignment etc.
I hope this will help you,
Regards,
Murali.
Maybe you are looking for
-
I bought a Pavillion p6210f last week with Win7 loaded to replace my Dell/Vista. I was using two monitors with a VGA port and DVI port on the old PC, so I tried plugging in the same on my new HP and the DVI would not fit. In examining the pins I fo
-
Problems with Samsung Monitor/Tv
I've just bought Samsung Tv/Monitor SyncMaster T24B530, but when I connect it to muy MacBook Pro it doesn't look nice. It looks Blurred and color isn't right at all. Does anyone knows how to set it up or calibrate so as to fix this?
-
Data Migration Oracle 8.1.6 Oracle 8.1.7 - internal password
I upgraded from Oracle 8.1.6 to 8.1.7. The datamigration manager asked me for the 'internal' password. I tried 'change_on_install', but that did not help. I did not change an internal password, at least not knowingly. What can be done ? Thanks Franz
-
Where is the "device" button in the new version of itunes? Whenever we connect our ipod touch(es) -- 4th generation....a device button NEVER appears. We can't "click and drag" new music purchases to our "device" b/c our "device" never comes up.
-
Calendar events missing--what happened?
I was checking my appointments and just noticed out of the blue all my calendar info is gone! What to do? Some notes and appointments are critical. Thanks. I don't use MobileMe or any other cloud service.