L_TO_CREATE_MULTIPLE with split bins
Hi,
I need to create a transfer order without reference for multiple line items with split bin items.
When using LT01, an item is split sucessfully over two bins when necessary and I need to do the same, but with multiple lines on the TO.
Both L_TO_CREATE_MULTIPLE and LT01 use FM L_TO_CREATE_INT, but by the time this FM is called in LT01 there is a table TAP populated with the split items. This table has not been populated when the FM is called via L_TO_CREATE_MULTIPLE.
Does anyone have any understanding of how I can get this table populated before I call L_TO_CREATE_MULTIPLE ?
Many Thanks
Diane
Dear Diane
I have the same problem. Can you find the solution from this problem?
Thank you,
Nuttapon K.
Similar Messages
-
Problem with MSG_fr.bin
I use BOE XIR2 in Client/Server on my PC
When I want to connect to Designer or Desktop Intelligence I have this error :
"A problem was encounterted with MSG_fr.bin ; check it has been generated".
I can't start the Desktop Intelligence Report Server service
Could you help me?
ThanksIf I remember correctly this has been asked numerous times before, try searching the discussions.
Anyway, you have a couple of possible solutions for this.
It is understandable that you don't want hundreds of reallocation on daily basis, and you don't want to lose the capacity otherwise, but it feels that your bins should and could have been planned a bit better, there is always a way to unify capacities, split bins, use the storage space in a more meaningful manner. This is the point where your optimization was supposed to be done, not in SAP. But anyway, you are stuck with what you have and here are the solutions that cross my mind.
1. Standard SAP:
Split the bins to multiple storage types, this way you will have 30 bin types, but they will have different capacity for different storage types (in OMM4). Easy and standard, but has the downside that you will have to manipulate with 5 storage types instead of 1. A bit of more customizing but will solve the problem. Also, storage type search will need to be changed to include all the STs... Might be harder to track the strategies but this is the only standard way that crosses my mind.
2. ABAP:
This is the solution I have used and works fine, though you will need an ABAP-er to complete this.
Create a z-table/view having the same structure as the standard one, just add 120 more fields.
Well, not only that, you will have to change the coding to use this custom table instead of standard one, and although this isn't the brightest solution since you won't be able to change this table in customizing in the predefined path in SPRO/OLML, but will need o do it in SM30.
Luckily both of the options should work fine if done correctly, I have used both of these, and both have up and down sides... But I would go with standard SAP if it doesn't complicate your life too much because of several more STs. If it does, go with ABAP. -
Inbound Delivery Idoc not update PIC and PGI with split batch.
Dear Experts,
Delivery outbound with split batch send to third party Warehouse to PIC and PGI from SAP, then receive the delivery inbound IDOC to update the PIC and PGI in SAP from third party. Basic Idoc DELIVERY03 it's works fine with out split batch, with split batch it's not updating PIC and PGI at the same time no error. Please advice on this
E1EDL24-HIPOS = "HIGHER LEVEL ITEM NUMEBR"
E1EDL24-HIEVW = "VALUE 1"
E1EDL19-QALF = "BAS"
Thanks and Regards,
Thiru.Hi,
You also have to create a segment with following data as well (for batches).
E1EDL19-QUALF = "QUA".
Cheers, -
Raw materials on MAP with split valuation used in standard cost estimate
We have a few raw materials which are purchased from different vendors and of different brands. We have opened split valuations for these raw materials. These raw materials are later used in manufacture of different finished goods. We use MAP for raw materials and Std. for finished goods. What configuration and processing steps will be required to run standards cost estimate and what will be standard price for a finished good considering the following example:
Material X is finished good
Raw Material A with split valuation @ USD 5 (brand aplha) & USD 10 (brand beta)
Raw Material B without split valuation @ USD 1
It is expected that we used brand aplha 60% of the time and brand beta 40% of the time and production batch size is usually 100 Kg.
Please reply
Edited by: Chris SAP on Sep 29, 2011 7:56 AMhi chris
Hope you have configured the material A for split valuation. while calculating standard cost estimate for the material C. through ck11n, the system will pick up the header price from material master.
But here you are saying that you have chances of using the material A, 60% of brand alpha and 40% brand beta
Instead of using split valuation use mixed costing concept. create the material A with separate Ids and create two boms one with alpha and the other with beta.
create procurement alternative in CK91N and mixed ratio with Ck94 and release the mixed cost estimate
please go through this thread also
Re: Difference between Split Valuation and Mixed Costing
Krishna -
Hi,
I have a windows cluster SAP R3 4.7 with oracle 10.2.
I have implemented backup with brtools 7.0 with split copy, using split_cmd command to split filesystem and post_split_cmd to start sap.
Bac
Brbackup finish successfully but with the warning:
"BR0068W SAP system is running or SAP user is connected to database PRD - database cannot be shut down"
We attach the log of brbackup .
Any idea ?
Thanks.
Maurizio Manera
Detail log: beajdpzw.aff
BR0051I BRBACKUP 7.00 (40)
BR0055I Start of database backup: beajdpzw.aff 2009-04-16 01.50.28
BR0484I BRBACKUP log file: Z:\oracle\PRD\sapbackup\beajdpzw.aff
BR0351I Restoring F:\oracle\PRD\102\database\sapPRD.ora
BR0355I from F:\oracle\PRD\102\database\sapPRD.ora ...
BR0477I Oracle pfile F:\oracle\PRD\102\database\initPRD.ora created from spfile F:\oracle\PRD\102\database\spfilePRD.ora
BR0613I Database instance PRD/PRIMARY is shut down
BR0280I BRBACKUP time stamp: 2009-04-16 01.50.29
BR0304I Starting and opening database instance PRD/PRIMARY ...
BR0280I BRBACKUP time stamp: 2009-04-16 01.50.38
BR0305I Start and open of database instance PRD/PRIMARY successful
BR0101I Parameters
Name Value
oracle_sid PRD
oracle_home F:\oracle\PRD\102
oracle_profile F:\oracle\PRD\102\database\initPRD.ora
sapdata_home K:\oracle\PRD
sap_profile f:\splitscripts\PRD\initPRD_ReplicationManager.sap
backup_mode ALL
backup_type offline_split
backup_dev_type util_file
util_par_file F:\splitscripts\PRD\initPRD_ReplicationManager.utl
primary_db PRD
split_cmd F:\splitscripts\PRD\ERM_PRD.cmd > F:\splitscripts\PRD\logs\split_log.txt
resync_cmd NULL
post_split_cmd F:\splitscripts\PRD\start_PRD_sap.cmd > F:\splitscripts\PRD\logs\post_split_log.txt
system_info prdadm SRB44 Windows 5.2 Build 3790 Service Pack 2 AMD64
oracle_info PRD 10.2.0.2.0 8192 24929 2831181212 SRB31 UTF8 UTF8
sap_info 620 SAPPRD PRD S0893011436 R3_ORA 0020174098
make_info NTAMD64 OCI_10201_SHARE Feb 1 2009
command_line brbackup.exe -p f:\splitscripts\PRD\initPRD_ReplicationManager.sap -t offline_split -u system/****** -d util_file -m all -c
BR0116I ARCHIVE LOG LIST before backup for database instance PRD
Parameter Value
Database log mode Archive Mode
Automatic archival Enabled
Archive destination M:\oracle\PRD\oraarch\PRDarch
Archive format ARC%S_%R.%T
Oldest online log sequence 24926
Next log sequence to archive 24929
Current log sequence 24929 SCN: 2831181212
Database block size 8192 Thread: 1
Current system change number 2831210933 ResetId: 633955817
BR0280I BRBACKUP time stamp: 2009-04-16 01.50.44
BR0307I Shutting down database instance PRD/PRIMARY ...
BR0280I BRBACKUP time stamp: 2009-04-16 01.50.45
BR0308I Shutdown of database instance PRD/PRIMARY successful
BR0280I BRBACKUP time stamp: 2009-04-16 01.50.46
BR0295I Splitting mirror disks...
BR0280I BRBACKUP time stamp: 2009-04-16 02.04.56
BR0296I Split of mirror disks successful
BR0280I BRBACKUP time stamp: 2009-04-16 02.04.56
BR0304I Starting and opening database instance PRD/PRIMARY ...
BR0280I BRBACKUP time stamp: 2009-04-16 02.06.28
BR0305I Start and open of database instance PRD/PRIMARY successful
BR0117I ARCHIVE LOG LIST after backup for database instance PRD
Parameter Value
Database log mode Archive Mode
Automatic archival Enabled
Archive destination M:\oracle\PRD\oraarch\PRDarch
Archive format ARC%S_%R.%T
Oldest online log sequence 24926
Next log sequence to archive 24929
Current log sequence 24929 SCN: 2831181212
Database block size 8192 Thread: 1
Current system change number 2831214167 ResetId: 633955817
BR0280I BRBACKUP time stamp: 2009-04-16 02.06.29
BR1374I Executing post-split command...
BR0280I BRBACKUP time stamp: 2009-04-16 02.08.48
BR1375I Post-split command executed successfully
BR0118I Tablespaces and data files
Tablespace TS-Status F-Status File Size Id. Device Link Type MaxSize IncrSize BlkSize
PSAPPRD ONLINE* ONLINE+ J:\ORACLE\PRD\SAPDATA3\PRD_20\PRD.DATA20 10485768192 23 9 NOLINK FILE 10485760000 20971520 8192
BR0120I Control files
File Size Id. Device Link Type
H:\oracle\PRD\origlogA\cntrl\cntrlPRD.dbf 15024128 0 7 NOLINK FILE
K:\oracle\PRD\sapdata1\system_1\cntrl\cntrlPRD.dbf 15024128 0 10 NOLINK FILE
K:\oracle\PRD\saparch\cntrl\cntrlPRD.dbf 15024128 0 10 NOLINK FILE
BR0280I BRBACKUP time stamp: 2009-04-16 02.08.48
BR0057I Backup of database: PRD
BR0058I BRBACKUP action ID: beajdpzw
BR0059I BRBACKUP function ID: aff
BR0110I Backup mode: ALL
BR0077I Database files for backup:
H:\ORACLE\PRD\ORIGLOGA\LOG_G11M1.DBF
H:\ORACLE\PRD\ORIGLOGB\LOG_G12M1.DBF
H:\ORACLE\PRD\ORIGLOGA\LOG_G13M1.DBF
H:\ORACLE\PRD\ORIGLOGB\LOG_G14M1.DBF
H:\oracle\PRD\origlogA\cntrl\cntrlPRD.dbf
BR0061I 89 files found for backup, total size 724314.986 MB
BR0143I Backup type: offline_split
BR0130I Backup device type: util_file
BR0109I Files will be saved by backup utility
BR0126I Unattended mode active - no operator confirmation required
BR0280I BRBACKUP time stamp: 2009-04-16 02.08.48
BR0229I Calling backup utility with function 'backup'...
BR0278I Command output of 'F:\usr\sap\PRD\SYS\exe\run\backint.exe -u PRD -f backup -i Z:\oracle\PRD\sapbackup\.beajdpzw.lst -t file -p F:\splitscripts\PRD\initPRD_ReplicationManager.utl -c':
BR0280I BRBACKUP time stamp: 2009-04-16 02.18.37
#FILE..... J:\ORACLE\PRD\SAPDATA3\PRD_21\PRD.DATA21
#SAVED.... 1239840533
BR0280I BRBACKUP time stamp: 2009-04-16 04.33.11
#FILE..... J:\ORACLE\PRD\SAPDATA3\PRD_57\PRD.DATA57
#SAVED.... 1239848995
BR0280I BRBACKUP time stamp: 2009-04-16 04.33.11
BR0232I 89 of 89 files saved by backup utility
BR0230I Backup utility called successfully
BR0280I BRBACKUP time stamp: 2009-04-16 04.33.14
BR0229I Calling backup utility with function 'backup'...
BR0278I Command output of 'F:\usr\sap\PRD\SYS\exe\run\backint.exe -u PRD -f backup -i Z:\oracle\PRD\sapbackup\.beajdpzw.lst -t file -p F:\splitscripts\PRD\initPRD_ReplicationManager.utl -c':
BR0280I BRBACKUP time stamp: 2009-04-16 04.33.16
#PFLOG.... Z:\oracle\PRD\sapbackup\beajdpzw.aff
#SAVED.... 1239849194
BR0280I BRBACKUP time stamp: 2009-04-16 04.33.17
#PFLOG.... Z:\oracle\PRD\sapbackup\backPRD.log
#SAVED.... 1239849195
BR0280I BRBACKUP time stamp: 2009-04-16 04.33.21
#PFLOG.... F:\oracle\PRD\102\database\initPRD.ora
#SAVED.... 1239849201
BR0280I BRBACKUP time stamp: 2009-04-16 04.33.21
BR0232I 8 of 8 files saved by backup utility
BR0230I Backup utility called successfully
BR0068W SAP system is running or SAP user is connected to database PRD - database cannot be shut down
BR0056I End of database backup: beajdpzw.aff 2009-04-16 04.33.21
BR0280I BRBACKUP time stamp: 2009-04-16 04.33.22
BR0053I BRBACKUP completed successfully with warningsHi,
> BR0068W SAP system is running or SAP user is connected to database PRD - database cannot be shut down
> BR0056I End of database backup: beajdpzw.aff 2009-04-16 04.33.21
> BR0280I BRBACKUP time stamp: 2009-04-16 04.33.22
> BR0053I BRBACKUP completed successfully with warnings.
As it is offline backup via brbackup it seems sap starts automatically after completion of backup.
So it is giving warnings that sap is already running.
You can ignore it.
Regards,
Nitin Salunkhe -
High volume of batches with Split valuation - impact on system performance
Hi!
I have a client that is intending to load a new material type from their legacy system which will be automatically batch managed with split valuation. So, Valuation category will be 'x' and the valuation type will also be the batch number as automatically created on GR.
The concern of the client is the impact on system performance. Having up to 80,000 batches per material master record (so, 80,000 valuation types will be mainatined with a unique price in the Accounting 1 tab of the MMR) and overall around 1 million batches a year. I'm not aware of any system performance issues around this myself but there seems to be anecdotal evidence that SAP has advised against using this functionality with high volumes of batches.
Could you please let me know of any potential problems I might encounter, having 1 million batches with split valuation may cause? Logically, this would increase to tens of millions of batches over time until archived off via SARA.
Many thanks!
AnthonyI currently have about 1.5 million batches with split valuation in my system (but it is not the X split), and we archive yearly.
having many batches for one material ( lets say 1000) causes dramatic performace issues during automatic batch determination.
it took about 5 minutes until a batch was returned into a delivery. if the user then wants a different batch and has to carry out batch determination again, then he just works for 10 to 15 minutes on one delivery.
This is mainly caused by the storage location segment of the batches. if one batch gets movedd within a plant thru 3 different locations, then the batch has 3 records in table MCHB. But SAP has a report to reorganize the MCHB table that have zero stock.
The X split has more effect, it is not only the batch table that makes issues in this case. With the x-split SAP adds an MBEW record (material master valuation view) for each new batch.
However, if the design is made to get a certain functionality (here valution at batch level), then you have to get a proper hardware in place that can give you the performance that is needed. -
STOs with split valuation by batches
I have split valuation by batches activated.
The system forces me enter a batch number(valuation type) when i am creating the STO.
It does not make sense, as the batch is really known at the time of shipping.
wE have reviewed all the relevant oss notes , nothing seems to work.
i appreciate if anyone has valuable inputs on this.
best regardsHello,
Note 66953 explains that during the creating of stock transport orders,
you must enter the receiving 'valuation type' (not the batch number).
The valuation type in a stock transport order is always mandatory in accordance with the following: (w/o OMF4 configuration of either ME21 or ME27 or ME21N)
The first step after posting the stock transfer PO is the goods issue.
In this step, the user is only able to type in the issuing valuation type. But the system also needs the receiving valuation type to post the value correctly.
This information can only be taken from the PO
item. So the valuation type in stock transfer orders is mandatory.
As you have pointed out other valuation types are proposed eventhough they are deactivated. This is normal.
In contrast, the first step after posting normal POs is NOT the goods issue, but the goods receipt. So the receiving valuation type can be typed in and you need not specify the valuation type in the PO item.
For normal POs the valuation type field 'required' can be configured using the field selection reference keys in transaction OMF4 (e.g. ME21 NBF), thereby making the field a required entry. However, a similar
customizing for field reference keys ME27, UBF is not effective.
Note 216904 describes the correction only for standard PO´s (w/o item category 'U').
Also, your description 2 describes the standard system
when creating PO's with split batch valuation and note 66953 addresses this.
I hope this information helped you!
Regards
David Merino -
Automatic STO for materials with split valuation
Hey Gurus,
Our client uses plant-to-plant STO to do transfers among internal plants. The current process: Run MRP in receiving plants --> MRP generates PReq --> Release PReq --> Assign Preq and create STO(from here, buyers manually check stock at issuing plant to see if there are "New" or "Rebuild" stock available, Rebuild stock always take the priority. Buyers manually assign Rebuild or New to ME21N).
The client tries to automate the STO process, ie, using ME59 or ME59N instead of ME21N. The problem is how the system does stock check and automatically enters"Rebuild" or "New" for materials with Split Valuation, which are done by buyers manually?
Thanks
JMHello,
Your client's request can be met with an user exit i guess. I have not used this but this is a suggestion that you can try if you wish.
The following things need to be done.
1. New PR type needs to be created and assinged to the STO document type.
2. When running a MRP at receiving plant, the system uses the special procurement key to create the STO requisition, hence we can write the relevant code in user exit in the MRP program. (please find the user exit for MD01)
3. If the special procurement key is 40 in the material master (MRP view), then system has to create the PR using the new PR type for STO. Also for those PRs the default batch should be "Rebuilt" entered while creating the PR.
4. As the batch is already entered in the PR, converting them to PO automatically will not be an issue.
if you feel that the above solution is little tough to implement, then please write a program to fetch the STO PRs and update the PRs one by one using the BAPI PR update or BDC with the batch "Rebuilt". This program you can ask the users to run before using ME59.
Regards,
Sakthi -
Quickly open projects in tmux with split window configuration
When I work on a coding project, I often have a window for it in tmux. The window is split horizontally into two panes. On the left there's vim, on the right there's just shell for running commands. This is a bit tedious to set up everytime I want to work on a project, so I created a little helper script for it.
The first script is called tmuxide.
#!/bin/sh
dir=${1:-$PWD}
name=${2:-$dir}
session="$USER-ide"
window="$session:$name"
# Create a new session if there isn't one
tmux has-session -t $session 2> /dev/null || tmux new-session -d -s $session
# Select the project's window if it exists, else create it
tmux select-window -t $window 2> /dev/null || {
tmux new-window -c $dir -t $session -n $name 'vim .'
tmux setw -t $window allow-rename off > /dev/null
tmux split-window -t $window -d -c $dir -h -p 45
tmux -2 attach -d -t $session
The project directory and name are given as parameters. This looks for a session called $USER-ide and creates it if it's not found. Then, it tries to select the window with the project name. If it doesn't find it, a new window with the previously described split configuration is opened. Last, it attaches to the IDE session. So I can open a project view for instance in my dotfiles folder: `tmuxide $HOME/.dotfiles dotfiles`, where the second "dotfiles" is the name given to the project window.
To complement this, I created a convenience script called project. It's inspired by a feature called "Project Quick Open" found in some text editors.
#!/bin/sh
root=${PROJECT_ROOT:-"$HOME/projects"}
prj=$1
[ -z $prj ] && {
ls -d $root/*/ | awk -F'/' '{print $(NF-1)}' | column
printf "\n"
read -e -p "Open project: " prj
dir="$root/$prj"
[ ! -d $dir ] && exit 0
tmuxide $dir $prj
This looks for the environment variable $PROJECT_ROOT. I can now supply the name of any folder under $PROJECT_ROOT: eg. if I run now `project metaballs`, it looks for the folder $PROJECT_ROOT/metaballs and opens a tmuxide window in that folder with the name "metaballs". If no project name is given as a parameter, the script shows a directory listing and prompts the user for a project.
The scripts become especially powerful when bound to a hotkey. For example, I'm binding the project script with sxhkd in my bspwm environment like this:
super + shift + p
bspc rule -a URxvt -o desktop=code && urxvtc -e project
Now the powerful environment is just a keypress away.
I'm sure you all have your own workflows with vim, tmux etc. This is mine, and I just thought I'd share it in case someone finds it useful. Especially, the detection of existing windows and directing the commands to the right session in the tmuxide script was somewhat non-trivial (well, for me at least).
I'll appreciate any thoughts and ideas for improvement.
Edit: more descriptive title.
Last edited by flannelhead (2015-01-29 21:04:35)You might try a third-party utility such as Witch to create window sets that can be configured and restored. Look for it and others at VersionTracker or MacUpdate.
-
AP PAYABLES- Not getting all the DUE DATE's in with split schedule payments
Hello All,
We have some issues with AP Data loading's into our DW from EBS 11.5.10 AP - PAYABLES.
One of our customer is using split schedule and share payment into few payment. Our
sql is not reading all the due dates for PAYABLES.
We are using PAYMENT_NUM=1 from ap_payment_schedules_all table as condition to load the Data to avoid duplicate rows coming for Payables.
Some hints: removing the "PAYMENT_NUM=1" from the where clause gives all the due_dates but then we have duplicate rows for Payables.
Please help to modify our query so that it will work for split schedule payment.
select
inv.invoice_num,
inv.doc_sequence_value,
sob.currency_code,
inv.invoice_date,
'EH'||inv.vendor_id vendor_id,
'EH'||inv.vendor_site_id vendor_site_id,
ael.ae_line_number distribution_line_number,
inv.invoice_currency_code,
aeh.accounting_date,
'EH'||ael.code_combination_id code_combination_id,
nvl(ael.entered_dr,0)-nvl(ael.entered_cr,0) accounted,
nvl(ael.accounted_dr,0)-nvl(ael.accounted_cr,0) amount,
fuser.user_name,
fuser2.user_name user_name2,
inv.payment_status_flag,
'PAYABLES' rowtype,
inv.discount_amount_taken,
inv.invoice_type_lookup_code invoice_type,
inv.exchange_rate,
inv.exchange_date,
tax.name,
inv.source,
inv.attribute6 eflow_doc_id,
sysdate transfer_date,
sch.hold_flag,
inv.cancelled_date,
sch.due_date
from
ap.ap_invoices_all inv,
apps.ap_ae_headers_all aeh,
apps.ap_ae_lines_all ael,
ap.ap_tax_codes_all tax,
ap.ap_payment_schedules_all sch,
gl.gl_sets_of_books sob,
applsys.fnd_user fuser,
applsys.fnd_user fuser2
where
aeh.ae_header_id=ael.ae_header_id and
inv.set_of_books_id=sob.set_of_books_id and
inv.invoice_id=sch.invoice_id and
sch.payment_num*1=1 and ---------------------------------------------- *
fuser.user_id=inv.last_updated_by and
fuser2.user_id=inv.created_by and
ael.tax_code_id=tax.tax_id(+) and
ael.ae_line_type_code='LIABILITY' and
inv.invoice_id=ael.source_id and
ael.source_table='AP_INVOICES' and
aeh.gl_transfer_flag='Y'
Thanks,
AmanHello All,
We have some issues with AP Data loading's into our DW from EBS 11.5.10 AP - PAYABLES.
One of our customer is using split schedule and share payment into few payment. Our
sql is not reading all the due dates for PAYABLES.
We are using PAYMENT_NUM=1 from ap_payment_schedules_all table as condition to load the Data to avoid duplicate rows coming for Payables.
Some hints: removing the "PAYMENT_NUM=1" from the where clause gives all the due_dates but then we have duplicate rows for Payables.
Please help to modify our query so that it will work for split schedule payment.
select
inv.invoice_num,
inv.doc_sequence_value,
sob.currency_code,
inv.invoice_date,
'EH'||inv.vendor_id vendor_id,
'EH'||inv.vendor_site_id vendor_site_id,
ael.ae_line_number distribution_line_number,
inv.invoice_currency_code,
aeh.accounting_date,
'EH'||ael.code_combination_id code_combination_id,
nvl(ael.entered_dr,0)-nvl(ael.entered_cr,0) accounted,
nvl(ael.accounted_dr,0)-nvl(ael.accounted_cr,0) amount,
fuser.user_name,
fuser2.user_name user_name2,
inv.payment_status_flag,
'PAYABLES' rowtype,
inv.discount_amount_taken,
inv.invoice_type_lookup_code invoice_type,
inv.exchange_rate,
inv.exchange_date,
tax.name,
inv.source,
inv.attribute6 eflow_doc_id,
sysdate transfer_date,
sch.hold_flag,
inv.cancelled_date,
sch.due_date
from
ap.ap_invoices_all inv,
apps.ap_ae_headers_all aeh,
apps.ap_ae_lines_all ael,
ap.ap_tax_codes_all tax,
ap.ap_payment_schedules_all sch,
gl.gl_sets_of_books sob,
applsys.fnd_user fuser,
applsys.fnd_user fuser2
where
aeh.ae_header_id=ael.ae_header_id and
inv.set_of_books_id=sob.set_of_books_id and
inv.invoice_id=sch.invoice_id and
sch.payment_num*1=1 and ---------------------------------------------- *
fuser.user_id=inv.last_updated_by and
fuser2.user_id=inv.created_by and
ael.tax_code_id=tax.tax_id(+) and
ael.ae_line_type_code='LIABILITY' and
inv.invoice_id=ael.source_id and
ael.source_table='AP_INVOICES' and
aeh.gl_transfer_flag='Y'
Thanks,
Aman -
Issue with splitting string into multiple lines
Hi Experts,
I have a long string s. I want to split this string into several lines each having 72 characters. For this I have done following programming:
String s = "For the first time it includes a supplementary report attempting to determine if extreme weather
events can be linked to human-induced climate change. The research team, including members
of the UK Met Office, identified recent episodes of extreme weather then used a computer to
estimate the likelihood of the episode happening in a world without increased CO2." ;
s = s.replaceAll("[\r\n]+", " ");
char[] sAr = s.toCharArray();
AbstractList RecepitsList7 = new Bapitrtext.Bapitrtext_List();;
int start = 0; // start with
int i = 72 ;
// for (int i = 71; i < sAr.length; i++) {
while (i < sAr.length) {
// { if (sAr[i] == ' ')
Bapitrtext Recepits7 = new Bapitrtext();
Recepits7.setTextid("TEXT");
Recepits7.setTextline(s.substring(start, i).replaceAll("[\r\n]+", ""));
RecepitsList7.add(Recepits7);
start = i+1;
i += 72;
input.setText(RecepitsList7);
The output of program is as below:
For the first time it includes a supplementary report attempting to dete
mine if extreme weather events can be linked to human-induced climate
hange. The research team, including members of the UK Met Office, iden
ified recent episodes of extreme weather then used a computer to estim
te the likelihood of the episode happening in a world without increased
Here as we can see last characters are getting deleted by program. For example in first line
determine 'r' is missing in extreme right.
In 3rd line c is missing in extreme left (word change is needed. Program
prints hange.
Also in 3rd line extreme right 't' is missing
Also in 4th line extreme right 'a' is missing
Also the last line is not being printed. In last line "CO2." " should appear.
There are two issues:
1. Why last word of each sentence is not being printed?
2. Why last sentence is not being printed?
I am struggling since last 2 days. Please help. I made all changes like replacing 72 by 71 etc.
By making such changes, I am able to print first line correctly. However under all cases
last character of 2nd line onward is not getting displayed.
Also last line is not getting displayed. I did every thing like using while instead of for loop etc.
Kindly help.
Regards,
Gary
Edited by: 945655 on Jul 10, 2012 11:39 PMString s = wdContext.currentContextElement().getExpense_Text();
s = s.replaceAll("[\r\n]+", " ");
char[] sAr = s.toCharArray();
AbstractList RecepitsList7 = new Bapitrtext.Bapitrtext_List();;
int start = 0; // start with
int i = 72;
while (i < sAr.length) {
Bapitrtext Recepits7 = new Bapitrtext();
Recepits7.setTextid("TEXT");
System.out.println(s.substring(start, i));
RecepitsList7.add(Recepits7);
start = i+1;
i += 72;
input.setText(RecepitsList7);
Edited by: 945655 on Jul 11, 2012 2:25 AM -
Error when doing two step transfer between Plants with split valuation
Hi expert,
I´ve activated split valuation for Material X , it has three Valuation types ( NEW, REPAIR and DAMAGE ) . The problem arose when i tried to do a two step transfer between plants ( mov 303 ) and i got the following error msg :
Use one-step procedure for transfer posting to mat. subj. to valuation
Message no. M7048
Diagnosis
In the receiving plant, the material is subject to split valuation. For this material, a stock transfer cannot be carried out using the two-step procedure.
Procedure
Use the one-step procedure (movement type 301) or a stock transfer order for the stock transfer.
The message is very clear itself , but... i just wonder if there`s actually any way to avoid this, I tried to change the error msg into a warning but couldn´t find it in customizing. Thanks for any comments on this !Hi,
What do you mean with "inconcistent to my storage type definition?", is that mean i can process two step transfer without using PO/delivery process or one-step movement? coz according to business requirement, we must use two step transfer considering to the distance between plants is so far and we want to make it the simple way so that PO/Delivery process isn't better solution. I think, this is an standard procedure all company over the world can use but just the reason of split valuation the system can't execute the transaction.
Is there any config i miss to? is there any user exit i can use for this requirement? please help me..
thanks,
AJ -
Canu00B4t use two step transfer with split valuation ?
Hi people , i´ve activated split valuation for MaterialX , it has two Valuation types ( Production and Purchase ) . The problem arose when i tried to do a two step transfer between plants ( mov 303 ) and i got the following error msg :
Use one-step procedure for transfer posting to mat. subj. to valuation
Message no. M7048
Diagnosis
In the receiving plant, the material is subject to split valuation. For this material, a stock transfer cannot be carried out using the two-step procedure.
Procedure
Use the one-step procedure (movement type 301) or a stock transfer order for the stock transfer.
The message is very clear itself , but... i just wonder if there`s actually any way to avoid this, considering that having to create a transfer order for each movement will duplicate work and using a one step transfer won´t be practical. I tried to change the error msg into a warning but couldn´t find it in customizing. Thanks for any comments on this !First of all , thanks everyone for the help.
Csaba Szommer, Kunal ingale , i read the OSS note and the pdf and indeed everything confirms it´s not possible to do the two step movement. So , i tried the stock transport order and something else appeared here. When creating this type of order , the system first ask for a Supplying Plant , then you can populate the material , quantity and the destination plant. But then it asks for the Valuation Type of the material involved, and it seems this field is Mandatory . Is it possible to make this field on the transport order as optional ? I couldn´t find this field at SPRO-MM-Purchasing-Purchase Order-Define Screen Layout at Document Level .
I need this field to be optional for the following reason. In my company there´s a relation between two plants , Plant A ( from where products are dispatched to the customer ) and Plant B ( where the material is produced with valuation type "Production" and sometimes is buyed from vendors with valuation type "Purchase" ) . The idea is to run an MRP which will generate the material needs on Plant A considering the Sales Orders. This need will be then transformed (automatically by MRP ) in Stock Transport Orders with Supplying Plant "Plant B" and receiving "Plant A". The problem here is that , at the moment of the transport order creation it´s no possible to know which will be the valuation type of the material that will satisfy the need. I mean , Plant B ( production and buying plant ) will check the list of needs for Plant A and then will decide which material ( with which Valuation Type ) they will provide considering the actual stock levels at the time of the MRP run.
In a few words, i see the only way to do a two step transfer of a split valuated material is using Stock Transport Orders , is there a way to make the field "Valuation Type" optional ?. The idea would be to choose the Valuation Type of the material at the moment of the Good Issue. Thanks a lot , once again.
Edited by: Christian Len on Jul 7, 2008 3:16 PM -
GR for a STO with SD delivery and Batches with split valuation X
Hello,
We have a problem with the Goods Receipts for Stock Transfer Orders between plants for materials subject to batch split and split valuation with valuation type X.
The scenario is very similar to the one explained on this thread: STO:problem with batch valuated material
When creating the the STO, it automatically sets a valuation type that is not be the appropriate one, we cannot use only one valuation type per position because we can use more than one batch (and valuation type). The outbound delivery has the correct valuation types for each batch and material but when doing the GR at the receiving plant, it only takes into account the valuation type indicated in the STO with no chance to change it.
I have seen the Note 212532 but we are not working with active ingredients.
Does anybody know a useful EP to use?
Thanks in advance for your help.
Regards,
Javier.Well, we can change the valuation type before Posting the goods issue of the delivery, but in most cases we need more than one batch (each batch has a different valuation type) for each item (material) in the purchase order.
We can do this at delivery level but the GR only takes into account the valuation type of the purchase order.
Thanks. -
I'm Starting in Java programing and need some help.
Based in the information of txt file, I need to split a file.txt into "n" .txt files, depending of the blocks thats the file containt. It's delimited by """".
And put the name between "UZ0RN0" the second field
Example:
"01APR02","UZ0RN0","******************************************
EMHA PNR.UZ0RN0 CR01APR 0419Z MEX BY GS BT
MEX GS BT 01APR 0421Z 385310 MX
"01APR02","TSCS44","******************************************
etc.
My question is how do I split a file into parts eg split test.txt into UZ0RN0.txt, TSCS44.txt, etc.
Pls help. Where do I start? I just need help with the the manage of the java.nio.channels.FileChannel to generate several files
Thanks a lot.Ok Thats is the final code:
This program divide a file.txt in "n" files.txt's according of the block's that the file.txt contain and catch the name of the second tokent to name the new file.txt
import java.io.*;
import java.nio.*;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
public class FileCopy {
public static void main(String[] args) {
if(args.length==0) {
System.out.println("No existe archivo a copiar. Application usage is: \n" +
"java -classpath. Filecopy \" filepath\"" );
System.exit(1);
File fromFile = new File(args[0]);
if(!fromFile.exists()) {
System.out.println("Archivo a copiar. " + fromFile.getAbsolutePath()
+ ", no existe.");
System.exit(1);
FileInputStream inFile = null;
try{
inFile = new FileInputStream(fromFile);
} catch(FileNotFoundException e) {
e.printStackTrace(System.err);
//assert false;
FileChannel inChannel = inFile.getChannel();
try{
int SizeFile = (int)inChannel.size();
ByteBuffer buf = ByteBuffer.allocate(SizeFile);
int length = 0;
int lengthArch = 0;
int NoArch = 0;
int NoComilla = 0;
String str = new String("");
try{
while ((length = inChannel.read(buf)) != -1 ) {
buf.rewind();
for (int i=0; i<length; i++) {
lengthArch++;
byte b = buf.get();
//Delimita caracter. Cada bloque tiene 6 "'s
if ( b == 34 ) {
NoArch++;
NoComilla++;
//Definir nombre del archivo
if (NoComilla==3) {
if ( b!=34) {
str += (char)b;
//Imprime archivo
if (NoComilla==6) {
fromFile = fromFile.getAbsoluteFile(); //Asegura una ruta absoluta
File parentDir = new File(fromFile.getParent()); //Obtiene el directorio
File bFile = new File(parentDir,str + ".txt"); //Genera nuevo archivo
str = ("");
File toFile1 = createFile(bFile);
FileOutputStream outFile1 = null;
try{
outFile1 = new FileOutputStream(toFile1);
} catch(FileNotFoundException e) {
e.printStackTrace(System.err);
//assert false;
FileChannel outChannel1 = outFile1.getChannel();
// Write the files
try {
inChannel.transferTo(((i + 1) - lengthArch),lengthArch,outChannel1);
outFile1.close(); // Close the output stream & the channel
System.out.println("Archivo " + (NoArch/6) +": " + ((i +1) - lengthArch) + " long " + lengthArch);
} catch(IOException e) {
e.printStackTrace(System.err);
System.exit(1);
lengthArch = 0;
NoComilla = 0;
//System.out.print((char)b);
buf.clear();
System.out.println("Tamano del archivo de Origen " + SizeFile);
System.out.println("EOF " + (NoArch/6) + " Archivos copiados.");
catch(IOException e) {
e.printStackTrace(System.err);
System.exit(1);
inFile.close();
} catch(IOException e) {
e.printStackTrace(System.err);
System.exit(1);
System.exit(0);
// Metodo para crear un achivo y en caso de que exista hacer *+_backup.*
public static File createFile(File aFile) {
aFile = aFile.getAbsoluteFile(); //Asegura una ruta absoluta
File parentDir = new File(aFile.getParent()); //Obtiene el directorio
String name = aFile.getName(); //Obtiene el nombre del archivo
int period = name.indexOf('.'); //Busca el separador de la extension
if(period == -1) //Si no es
period = name.length(); //Lo coloca al final del String
String nameAdd = "_backup"; //Agrega "Backup" al nombre
//Crea el objeto archivo que es unico
File backup = new File(name.substring(0,period)
+ name.substring(period));
while (backup.exists()) { //Si el nombre ya existe....
name = backup.getName(); //Obtiene el nombre actual del archivo
period += nameAdd.length(); //Agrega el separador
backup = new File(parentDir, name.substring(0,period) //agrega backup de nuevo
+ nameAdd + name.substring(period));
return backup;
This is the example of the file with 2 blocks
"01APR02","UZ0RN0","******************************************
EMHA PNR.UZ0RN0 CR01APR 0419Z MEX BY GS BT
385310 MX
***1.ALCANTARA/JORGEALBERTO
FONE-MEX/N000
RCVD-PAX
TKT -T/OK
1 MX 7M 01APR MEXMTY HK 1 650A 815A
AB * FLT 7 7A
RCVD-PAX
MEX GS BT 01APR 0419Z 385310 MX
AB | FLT 7 7A
RCVD-PAX
MEX GS BT 01APR 0421Z 385310 MX
"01APR02","TSCS44","******************************************
.... PNR.TSCS44 CR25MAR 1834Z HDQ BY RM 1S
***1.1BRAVO/OCTAVIO
FONE-MTY1-81503300*A/A528
RLOC-HDQ1SJOXMWV/D4C2/86511574/MTY/1S/T/MX
/MXN
G FX-OSI YY 86511574 / VILLATOURS CENTRO P
CC D4C2
OSI MX TKNA 13235822315830
SSRSEATMXHS1MTYMEX0070K28MAR.16B
SSRSEATMXHS1MEXMTY0007K01APR.09B
1 MX 70K 28MAR MTYMEX HK 1 645A 815A
2 MX 7K 01APR MEXMTY HK 1 650A 815A
X3 SSRSEATMXNN1MTYMEX0070K28MAR.16B
RCVD-
HDQ RM 1S 25MAR 2205Z
X3 SSRSEATMXNN1MEXMTY0007K01APR.09B
RCVD-
HDQ RM 1S 25MAR 2231Z
X3 SSRSEATMXKK1MTYMEX0070K28MAR.16BN
X3 SSRSEATMXKK1MEXMTY0007K01APR.09BN
RCHDQ1SJOXMWV/D4C2/86511574/MTY/1S/T/MX
/MXN
HDQ RM 1S 26MAR 0055Z
Chao/Bye
Maybe you are looking for
-
Java.lang.Exception:Incorrect content-type found text/html
Dear All, While opening a PCR throught MSS, which is PDF based service, I am getting following error. java.lang.Exception: Incorrect content-type found 'text/html'. com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeExcep
-
Hello Everyone, My client is using MT940 FORMAT for EBS. Suppose there are 10 transactions which have the same amount for eg:Rs.1000 for ten payment transactions, the system is unable to post the document when we import the bank statement. Kindly hel
-
Error message 9041:why will cd not burn?
I am getting an error message of 9041 when trying to burn a cd. What does this mean? What can I do. I have a radio show tomorrow and have to burn this cd!
-
Which account do I use to install bootcamp?
Hi, I have 2 accounts on a MBP, one admin and another managed. My daughter needs WIndows for a autocad. Should I go about installing bootcamp/windows after logging onto her managed account or the admin account? Thanks
-
Reg : smartform assign in NACE transaction
Hi Guys, I have a requirement in NACE transaction : I have a created one module pool program, in that i am calling two different smartforms. i need to assaign NACE transaction to see the preview or print options.is there any solution how to assign tw