Material Batches incorrectly blocked with inventory block
Hello,
Some of our material batches are blocked with an inventory block in table MCHB (MCHB-SPERC), although there are no open inventory documents for these batches.
We need to eliinate the inventory blocks to ba able to use the batches in stock.
Anyone had this problema before or can give me a tip to resolve this problema?
Thanks for any answer.
Aart
Find the material from table MCHB, Then go to MI20, enter the material and tick the option Phys. Inventory Document and Phys. Inventory Items.
Then press enter. You will see a pop-up. select tick option only for Not Yet Counted
Then again press enter. You will see again another pop-up. again choose only Not yet Counted
Then press enter and then press execute. You will find all PI documents which is still active.
Similar Messages
-
Is it possible to create a wip sample with inventory valdity rule in spec
Hi friends
Can anyone please tell me
Is it possible to create a wip sample with inventory validity rule in the item Specification?
I have an item which is a wip (product) item and has validity rule defined for inventory. can i create a sample from the batch for it with inventory validity rule in the specification.
Thanks in advance
Prem.Hi Jay
How are you.
Yes, in process sampling only.
Is it not neccessary to have a wip validity rule for wip products in the specs. I am able to create samples for wip products with inventory validity rule.
Regards
Prem. -
Error while cancelling GR material is at Block stock
Hi,
I have created a GR for material QM view is maintain , after GR material updated from QM it is rejected, then we have transfer it in Blocked stock in QA11 now we want to cancel the GR, but while GR cancel with MBST or MIGO the stock type it is shoing as X i.e quality stock now in quality stock is 0 because material is at blocked stock. so while cancelling it is giving error as Deficit of SL Stck.in qual.insp 5,000 NO : 928 MS10 S101
how to solve this,
regards,
zafarHi
you have to move the stock first quality only. once you got the stock in quality you can send the material to vendor with (122) movement type.
For your reference:
1. SAP NOTE 175842 needs to be implemeted first.
2. User Exit QEVA0008 needs to be activated.
3. Then First of all reverse the UD by transaction QA12, by clicking the Customer Function Tab.
4. Now the stock can be reversed for the same Lot by running program RQEVAC50 in SE38.
above procedure you have to do must if amterial belongs to quality.
laxman -
Weblogic.security.CipherException: Incorrect block length 256 (modulus
Hi,
I have a stand alone java client which runs in the weblogic 8.1 server and when I tried to connect to the external site using the weblogic's HttpsURLConnection ,its throws the below exception.
weblogic.security.CipherException: Incorrect block length 256 (modulus length 128)
<Info> <Security> <BEA-090511> <The following exception has occurred:
weblogic.security.CipherException: Incorrect encrypted block
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:205)
at weblogic.security.RSAMDSignature.verify(RSAMDSignature.java:89)
at weblogic.security.X509.verifySignature(X509.java:246)
at weblogic.security.X509.verify(X509.java:176)
at weblogic.security.SSL.SSLCertificate.verify(SSLCertificate.java:133)
at weblogic.security.SSL.SSLCertificate.input(SSLCertificate.java:116)
at weblogic.security.SSL.Handshake.input(Handshake.java:121)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:1117)
at weblogic.security.SSL.SSLSocket.clientInit(SSLSocket.java:432)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:276)
at weblogic.security.SSL.SSLSocket.<init>(SSLSocket.java:222)
at weblogic.security.SSL.SSLSocketFactory.createSocket(SSLSocketFactory.java:213)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:238)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:389)
at weblogic.net.http.HttpsClient.<init>(HttpsClient.java:209)
at weblogic.net.http.HttpClient.New(HttpClient.java:228)
at weblogic.net.http.HttpsURLConnection.getHttpClient(HttpsURLConnection.java:246)
at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:217)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:319)
at HttpsConnect.main(HttpsConnect.java:13)
<Info> <SSL> <000000> <weblogic.security.AuthenticationException: Incorrect encrypted block possibly incorrect SSLServerCertificateChainFileName set for this server certificate>
java.io.IOException: weblogic.security.AuthenticationException: Incorrect encrypted block possibly incorrect SSLServerCertificateChainFileName set for this server certificate
at weblogic.security.SSL.SSLCertificate.verify(SSLCertificate.java:172)
at weblogic.security.SSL.SSLCertificate.input(SSLCertificate.java:116)
at weblogic.security.SSL.Handshake.input(Handshake.java:121)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:1117)
at weblogic.security.SSL.SSLSocket.clientInit(SSLSocket.java:432)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:276)
at weblogic.security.SSL.SSLSocket.<init>(SSLSocket.java:222)
at weblogic.security.SSL.SSLSocketFactory.createSocket(SSLSocketFactory.java:213)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:238)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:389)
at weblogic.net.http.HttpsClient.<init>(HttpsClient.java:209)
at weblogic.net.http.HttpClient.New(HttpClient.java:228)
at weblogic.net.http.HttpsURLConnection.getHttpClient(HttpsURLConnection.java:246)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:359)
at HttpsConnect.main(HttpsConnect.java:13)
I verified the certifiate chain by using the weblogic's ValidateCertChain utility, and the output seems to be confusing for the intermediate site and the entity site.
java utils.ValidateCertChain -pem inter.cerCert[0]: CN=VeriSign Class 3 International Server CA - G3,OU=Terms of use at https://www.verisign.com/r
pa (c)10,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US
Certificate chain is incomplete, can't confirm the entire chain is valid
Certificate chain appears valid
Any pointers will be appreciated.This might be because Verisign has included anadditional intermediate certificate in its chain
You can find it here
https://knowledge.verisign.com/support/ssl-certificates-support/index?page=content&id=AR657&actp=search&viewlocale=en_US
Contact Verisign Support, u can chat with them even...
Let me know if you have any doubt.
Cheers!
Faisal
http://www.weblogic-wonders.com -
Incorrect Block Length error when configuring SSL
Hello, gurus:
I am messing around with SSL configurations on WebLogic 6.0.2. I have generated
a CSR, and located my non-password protected private key and CSR files to the
/config/[my_test_domain] folder. I have received my test cert from VeriSign, which
I have saved to /config/[my_test_domain] as cert.pem. Lastly, I copied off of
VeriSign's site an Intermediate CA certificate (or Server Cert Chain), and saved
that at ca.pem.
Now when I attempt to start WebLogic, I am seeing the following Alert messages:
==============================================================
<2001/08/07 12:03:04:JST> <Alert> <WebLogicServer> <セキュリティ
コンフィグレー
ション weblogic.security.AuthenticationException: Incorrect
block length 64 (mod
ulus length 128) possibly incorrect SSLServerCertificateChainFileName set for
th
is server certificate に矛盾があります。>
weblogic.security.AuthenticationException: Incorrect block length 64 (modulus
le
ngth 128) possibly incorrect SSLServerCertificateChainFileName set for this serv
er certificate
at weblogic.security.X509.verifySignature(X509.java:251)
at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:440)
at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
at weblogic.Server.main(Server.java:35)
==============================================================
BTW, I am doing all of this on a Japanese (EUC_JP) OS, so I apologize if part
of the above message is rendered illegible.
Anyhow, does anyone have any idea as to what is bombing?
Thanks in advance,
BrookeCan you elaborate on what you did to get the root ca cert from verisign's repository
page and
convert it to DER format using OpenSSL? I've been trying to figure out how to do
this for about
a week now... I finally got verisign support to just email me a root ca cert but I
would like to know
what you did.. Did you just cut & paste the class 1 root ca from the repository page
(http://www.verisign.com/repository/root.html) to a file? Where did you get OpenSSL
and what
did you do to convert the file to a DER? I looked at the OpenSSL site but I couldn't
figure it out.
Any help on this would be greatly appreciated. I can't believe how much time I have
wasted
looking into this...
Kirk Everett
Brooke wrote:
"Brooke" <[email protected]> wrote:
...Lastly, I copied off of VeriSign's site an Intermediate CA
certificate (or Server Cert Chain), and saved that as ca.pem.
..... And that was the whole problem. After doing more search of the resources here,
I discovered that the Server Certificate Chain File Name needed the Root Server
CA cert from VeriSign. The solution was to copy VeriSign's Root Server CA cert
from their repository page, and then use OpenSSL to transform that into a .der
file. Using this .der file as the Server Certificate Chain File did the trick. -
IMac/Tiger kernel panic and incorrect block count
Hi,
First time here, and I am not super computer-savvy, so please bear with me as I stumble through this.
I have an iMac running 10.4.11. The other day, my screen suddenly showed a message telling me I had to immediately restart my computer. (I have since learned this was due to "kernel panic.") I ran Disk Utility, received the following message via the log:
Verifying volume “Macintosh HD”
Checking HFS Plus volume.
Checking Extents Overflow file.
Checking Catalog file.
Incorrect block count for file .journalHistoryLog
(It should be 34187 instead of 0)
0 %)
Incorrect number of thread records
Checking multi-linked files.
Checking Catalog hierarchy.
Checking Extended Attributes file.
Checking Extended Attributes file.
ng volume bitmap.",0)
Volume Bit Map needs minor repair
Checking volume information.
Invalid volume free block count
(It should be 19184890 instead of 19177718)
The volume Macintosh HD needs to be repaired.
I then found that to repair this, I have to boot and run DU from my original startup (Tiger 10.4) disk.
But (here's the problem): I cannot find my 10.4 disks, and I understand it's almost impossible to purchase Tiger anymore. Also, I'm planning to get a new computer soon, so would hate to spend a lot of money to just get through a few weeks (OTOH, would hate to crash and have no computer for a few weeks!).
So here's the questions:
1. Is it possible to boot some other way (for example, in Safe Mode) and run DU that way to fix the problem? If so, what are the steps in the process?
2. If not, then what are my chances if I don't repair (that is, how serious a problem is this)? Would I be okay using the computer for another several weeks until I get my new computer (going for a Mac Book Pro)?
I should note that since this happened, the computer has been fine. (Though of course, I back up to an external hard drive every night, just in case.) So I'm hoping the computer will survive for a few weeks.
Sorry for the long post. Thank you all in advance for any help you can offer!
- Linda"Is this something a reinstall of OS X would fix or would it be more of a bad HDD that I should replace? The iMac is still under the 1 year warranty until February 5th."
Sounds like Disk Utility cannot fix the hard disk.
If getting your iMac in for service is difficult, you could get DiskWarrior which repair a directory available here: http://www.alsoft.com/
If it were me with an iMac still under warranty, I'd take it in for service and make sure Apple repairs it. You shouldn't have to rely on 3rd party software to repair the hard disk when it's still under warranty. If you do this, when you pick the iMac up, make sure and boot it before you take it home to make sure it's functioning as it should.
Carolyn
Message was edited by: Carolyn Samit -
Macbook pro wont start up after trying fsck -y (incorrect block count)
my 2 months macbook pro won't start up after numerous attempts and ive tried fsck -y and it says "incorrect block count for file system.log (it should be 184 instead of 108) help please
it just says start up disk full, its not full however it has at least 10Gb of space left.
Your HD is full! How large is your HD? You should never let your hard drive get to where you have only 10-15% of space left. You need to do some serious housekeeping. However, you need to get to your desktop to do that.
Can you safe boot? Read the threads over in the "More Like This" column over here.-----------> -
Material batch characteristics
Hi all,
I have a requirement to fetch the material batch characteristics with delivery number as input and print the characteristics for the corresponding batches. Can you please say me the logic to fetch the details ? It is an urgent requirement..
Thanks & Regards,
RamaKrishnan .THi
See the sample code for fetching the BAtch characteristics of Material
report z21311r_batch_char no standard page heading
line-size 132
line-count 58(1)
message-id mm.
Declaration for Tables
tables: mara, " Material Master
mard, " Storage Location Data for Material
t001w, " Plants/Branches
t001l, " Storage Locations
cabn, " Characteristics
inob. " Link between Internal Number and Object
Declaration for Constants
constants : c_klart like ausp-klart value '023', " Class Type
c_obtab like inob-obtab value 'MCH1', " Database Table
c_flag type c value 'X', " Flag
c_c23 type i value '23', " Ratio
Constants for Ratio Categories
c_13 type p decimals 2 value '13.00', " For Ratio 13
c_1499 type p decimals 2 value '14.99', " For Ratio 14.99
c_15 type p decimals 2 value '15.00', " For Ratio 15
c_1699 type p decimals 2 value '16.99', " For Ratio 16.99
c_17 type p decimals 2 value '17.00', " For Ratio 17
c_1899 type p decimals 2 value '18.99', " For Ratio 18.99
c_19 type p decimals 2 value '19.00', " For Ratio 19
c_2099 type p decimals 2 value '20.99', " For Ratio 20.99
c_21 type p decimals 2 value '21.00', " For Ratio 21
c_2299 type p decimals 2 value '22.99', " For Ratio 22.99
c_23 type p decimals 2 value '23.00', " For Ratio 23
c_g23(4) type c value '>=23', " For Ratio >=23
c_ratio(5) value 'RATIO', " For Ratio
Constants for Storing Selected item field information
c_cursor1(15) value 'I_OUTPUT1-MEINS', " For Selected Base
" Unit of Measure
c_cursor2(15) value 'I_OUTPUT1-MATNR', " For Selected Base
" Material Number
c_cursor3(15) value 'I_OUTPUT1-MAKTX', " For Selected Base
" Material Des.
c_cursor4(15) value 'I_OUTPUT1-CLABS', "For Selected Base
" Stock Value
c_cursor5(15) value 'I_OUTPUT1-ATFLV', " For Selected Base
" Char.Value (Ratio)
c_cursor6(5) value 'C_G23'.
Declaration for Global Variables
data : g_exit type c, " Flag
g_clabs1(16) type c, " Quantity
g_clabs(18) type c, " Quantity
g_cursor(15) type c, " Cursor field name
g_matnr type mara-matnr, " Material Number
g_werks type mchb-werks, " Plant
g_atinn(30) type c. " Character.
Declaration for Internal tables
Internal table to hold Batch Stock data
data : begin of i_mchb occurs 0,
matnr like mchb-matnr, " Material Number
werks like mchb-werks, " Plant
lgort like mchb-lgort, " Storage Location
charg like mchb-charg, " Batch Number
clabs like mchb-clabs, " Stock Value
meins like mara-meins, " Unit of measure
atflo like ausp-atflv, " Char.Value (Ratio)
atflv like ausp-atflv, " Char.Value (Ratio)
end of i_mchb.
Internal table to hold Secondary List data
data : begin of i_mchb1 occurs 0,
werks like mchb-werks, " Plant
matnr like mchb-matnr, " Material Number
lgort like mchb-lgort, " Storage Location
charg like mchb-charg, " Batch Number
atinn like ausp-atinn, " Char.Value
clabs like mchb-clabs, " Stock Value
atflo like ausp-atflv, " Char.Value (Ratio)
atflv like ausp-atflv, " Char.Value (Ratio)
end of i_mchb1.
Internal table to get the Plant Name
data : begin of i_plant occurs 0,
werks like t001w-werks, " Plant
name1 like t001w-name1, " Name
end of i_plant.
Internal table to get the Material Description
data : begin of i_makt occurs 0,
matnr like makt-matnr, " Material
maktx like makt-maktx, " Description
end of i_makt.
Internal table to hold AUSP data
data : begin of i_ausp occurs 0,
objek like ausp-objek, " Object No
atinn like cabn-atinn, " Characteric value
atflv like ausp-atflv, " Characteristic Value
end of i_ausp.
Internal table to hold output data
data : begin of i_output occurs 0,
atinn like cabn-atinn, " Characteric value
werks like mchb-werks, " Plant
matnr like mchb-matnr, " Material Number
atnam like cabn-atnam, " Characteristic
atflv like ausp-atflv, " Char.Value (Ratio)
name1 like t001w-name1, " Plant Description
maktx like makt-maktx, " Material Description
clabs like mchb-clabs, " Stock Value
meins like mara-meins, " Base Unit of Measure
end of i_output.
Internal table to hold final Output data
data : begin of i_output1 occurs 0,
atinn like cabn-atinn, " Characteric value
werks like mchb-werks, " Plant
matnr like mchb-matnr, " Material Number
atnam like cabn-atnam, " Characteristic
atflv(32) type c, " Char.Value (Ratio)
name1 like t001w-name1, " Plant Description
maktx like makt-maktx, " Material Description
clabs like mchb-clabs, " Stock Value
meins like mara-meins, " Base Unit of Measure
end of i_output1.
Selection screen
selection-screen begin of block b1 with frame title text-001.
select-options: s_werks for t001w-werks obligatory, " Plant
s_lgort for t001l-lgort, " Stor.Location
s_matnr for mara-matnr obligatory, " Material No
s_atinn for cabn-atinn. " Character.
selection-screen end of block b1.
At selection screen
at selection-screen.
Validation of Selection Screen Fields
perform validate_screen.
Start of selection
start-of-selection.
Get the Material and Batch Stock data from MARA and MCHB Tables
perform get_mat_stock_data.
Get the Material Group Text and Plant Name from T023T and T001W Tables
perform get_plant_grp_data.
Append the data into final Output Internal Table after getting the
Characteristic Values data from INOB and AUSP Tables
perform append_final_data.
Processing if the Characteristics contain 'RATIO'
perform collect_ratio.
End-of-Page
end-of-page.
write /1(125) sy-uline.
End of selection
end-of-selection.
if g_exit <> c_flag.
Display the Report Output data
perform display_report.
endif.
Top-of-Page
top-of-page.
Write the Report and Column Headings
perform get_headings.
at line-selection
at line-selection.
if sy-lsind = 1.
perform display_batch.
endif.
Top of page during line-selection
top-of-page during line-selection.
perform heading_seclist.
Form validate_screen
Validation of Selection Screen fields
form validate_screen.
Validation of Plant
clear t001w.
if not s_werks[] is initial.
select werks
into t001w-werks
from t001w
up to 1 rows
where werks in s_werks.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Plant'(002).
endif.
endif.
Validation of Material Number
clear mara.
if not s_matnr[] is initial.
select matnr
into mara-matnr
from mara
up to 1 rows
where matnr in s_matnr.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Material'(003).
endif.
endif.
Validation of Storage Location
clear t001l.
if not s_lgort[] is initial.
select lgort
into t001l-lgort
from t001l
up to 1 rows
where lgort in s_lgort.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Storage Location'(004).
endif.
endif.
Validation of Characteristic Value
clear cabn.
if not s_atinn[] is initial.
select atinn
into cabn-atinn
from cabn
up to 1 rows
where atinn in s_atinn.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Characteristic Value'(005).
endif.
endif.
Validation of Plant, Material and Storage Location
clear mard.
select matnr werks lgort
into (mard-matnr, mard-werks, mard-lgort)
from mard
up to 1 rows
where matnr in s_matnr and
werks in s_werks and
lgort in s_lgort.
endselect.
if sy-subrc <> 0.
message e899 with 'No Data found for the Selection Criteria'(006).
endif.
endform. "validate_screen
*& Form get_headings
Write the Report and Column Headings
form get_headings.
data: l_repid type sy-repid.
l_repid = sy-repid.
call function 'Y_STANDARD_HEADING'
exporting
repid = l_repid
heading1 = sy-title.
write:/1(125) sy-uline.
format color col_heading on.
write : /1 sy-vline, 2(18) 'Material Number'(008) centered,
20 sy-vline, 21(40) 'Material Description'(011) centered,
61 sy-vline, 62(22) 'Ratio'(009) centered,
84 sy-vline, 85(18) 'Quantity'(010) centered,
103 sy-vline, 104(20) 'Base Unit of Measure'(015) centered,
125 sy-vline.
write:/1(125) sy-uline.
format color off.
endform. "get_headings
*& Form get_mat_stock_data
Get the Material and Batch Stock data from MARA and MCHB Tables
form get_mat_stock_data.
clear: i_mchb,i_output, i_output1.
refresh: i_mchb,i_output, i_output1.
select a~matnr " Material Number
b~werks " Plant
b~lgort " Storage Location
b~charg " Batch Number
b~clabs " Stock Value
a~meins " Base Unit of Measure
into table i_mchb
from mara as a inner join mchb as b
on amatnr eq bmatnr
where b~matnr in s_matnr and
b~werks in s_werks and
b~lgort in s_lgort.
if sy-subrc <> 0.
g_exit = c_flag.
message s899 with 'No Data found for the Selection Criteria'(006).
stop.
endif.
sort i_mchb by matnr werks lgort charg.
endform. " get_mat_stock_data
*& Form get_plant_grp_data
Get the Material Group Text and Plant Name from T023T and T001W
form get_plant_grp_data.
if not i_mchb[] is initial.
Get the Plant Description from t001w Table
clear i_plant.
refresh i_plant.
select werks " Plant
name1 " Name
into table i_plant
from t001w
for all entries in i_mchb
where werks = i_mchb-werks.
Get the Material Description from MAKT Table
clear i_makt.
refresh i_makt.
select matnr " Material number
maktx " Material Description
into table i_makt
from makt
for all entries in i_mchb
where matnr = i_mchb-matnr and
spras = sy-langu.
sort i_plant by werks.
delete adjacent duplicates from i_plant comparing werks.
sort i_makt by matnr.
delete adjacent duplicates from i_makt comparing matnr.
endif.
endform. "form get_plant_grp_data.
*& Form append_final_data
Append the data into final Internal Table
form append_final_data.
data : l_matbatch(28),
l_tabix like sy-tabix.
if not i_mchb[] is initial.
loop at i_mchb.
l_tabix = sy-tabix.
clear l_matbatch.
concatenate i_mchb-matnr i_mchb-charg into l_matbatch.
move-corresponding i_mchb to i_output.
Get the Plant Description from i_plant Table
read table i_plant with key werks = i_mchb-werks binary search.
if sy-subrc = 0.
i_output-name1 = i_plant-name1.
endif.
Get the Material Description from i_makt Table
read table i_makt with key matnr = i_mchb-matnr binary search.
if sy-subrc = 0.
i_output-maktx = i_makt-maktx.
endif.
Get the Characteristic Values data from INOB and AUSP Tables
clear inob.
select single cuobj from inob
into inob-cuobj
where klart = c_klart and
obtab = c_obtab and
objek = l_matbatch.
if sy-subrc = 0.
select objek
atinn
atflv
from ausp
into table i_ausp
where objek = inob-cuobj and
atinn in s_atinn and
klart = c_klart.
sort i_ausp by objek atinn.
loop at i_ausp.
clear cabn.
select single atinn atnam from cabn
into (cabn-atinn,cabn-atnam)
where atinn = i_ausp-atinn.
if sy-subrc = 0.
If the ratio value is between 13-14.99, display 13
if cabn-atnam cs c_ratio.
if i_ausp-atflv between c_13 and c_1499.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_13.
If the ratio value is between 15-16.99, display 15
elseif i_ausp-atflv between c_15 and c_1699.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_15.
If the ratio value is between 17-18.99, display 17
elseif i_ausp-atflv between c_17 and c_1899.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_17.
If the ratio value is between 19-20.99, display 19
elseif i_ausp-atflv between c_19 and c_2099.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_19.
If the ratio value is between 21-22.99, display 21
elseif i_ausp-atflv between c_21 and c_2299.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_21.
If the ratio value is greater than or equal to 23, display 23
elseif i_ausp-atflv >= c_23.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_23.
endif. " Condition for RATIO values
else. " If characteristic does contain RATIO
i_mchb-atflv = i_ausp-atflv.
endif.
i_output-atinn = cabn-atinn.
i_output-atnam = cabn-atnam.
i_output-atflv = i_ausp-atflv.
i_mchb1-matnr = i_mchb-matnr.
i_mchb1-werks = i_mchb-werks.
i_mchb1-lgort = i_mchb-lgort.
i_mchb1-charg = i_mchb-charg.
i_mchb1-clabs = i_mchb-clabs.
i_mchb1-atinn = i_ausp-atinn.
i_mchb1-atflo = i_mchb-atflv.
i_mchb1-atflv = i_ausp-atflv.
append : i_output, i_mchb1.
clear i_mchb1.
modify i_mchb index l_tabix transporting atflo atflv .
endif.
endloop.
endif.
endloop.
endif.
Checking whether the table is filled or not
if not i_output[] is initial.
sort i_output by atinn werks matnr atflv.
else.
g_exit = c_flag.
message s899 with 'No Data found for the Selection Criteria'(006).
endif.
Delete the records where RATIO is less than 13.
delete i_output where atnam cs c_ratio and atflv lt c_13.
endform. "append_final_data
*& Form display_report
Display the Report Output data
form display_report.
data: l_tabix like sy-tabix.
loop at i_output1.
l_tabix = sy-tabix.
At new Characteristic
at new atinn.
read table i_output1 index l_tabix.
format color 1 intensified on.
write: /1 sy-vline, 2(20) 'Characteristic Name:'(007),
23(40) i_output1-atnam,
125 sy-vline.
format color off.
format color 4 intensified on.
write: /1 sy-vline, 2(20) 'Plant Name :'(022),
23(4) i_output1-werks, 29(30) i_output1-name1,
125 sy-vline.
format color off.
write /1(125) sy-uline.
endat.
clear: g_clabs, g_clabs1.
format color col_normal.
write :/1 sy-vline, 2(18) i_output1-matnr,
20 sy-vline, 21(40) i_output1-maktx,
61 sy-vline.
if i_output1-atflv = c_c23.
write: 62(22) c_g23 centered.
else.
shift i_output1-atflv left deleting leading space.
write: 62(22) i_output1-atflv centered.
endif.
write: 84 sy-vline,
103 sy-vline,
110(5) i_output1-meins.
If the quantity value is negative
if i_output1-clabs ge 0.
write: 85(18) i_output1-clabs unit i_mchb-meins,
125 sy-vline.
else.
i_output1-clabs = - i_output1-clabs.
write i_output1-clabs unit i_mchb-meins to g_clabs1.
condense g_clabs1.
concatenate '(' g_clabs1 ')' into g_clabs separated by space.
write: 85(18) g_clabs right-justified,
125 sy-vline.
endif.
format color off.
hide : i_output1.
new-line.
At end of material
at end of matnr.
sum.
move : i_output1-matnr to g_matnr.
format color 3 intensified on.
write /1(125) sy-uline.
write :/1 sy-vline, 2(25) 'Total for Material :'(012),
28(18) g_matnr.
if i_output1-clabs ge 0.
write: 85(18) i_output1-clabs unit i_mchb-meins,
125 sy-vline.
else.
i_output1-clabs = - i_output1-clabs.
write i_output1-clabs unit i_mchb-meins to g_clabs1.
condense g_clabs1.
concatenate '(' g_clabs1 ')' into g_clabs separated by space.
write: 85(18) g_clabs right-justified,
125 sy-vline.
endif.
write: 125 sy-vline.
format color off.
write /1(125) sy-uline.
endat.
At end of plant
at end of werks.
sum.
move : i_output1-werks to g_werks.
format color 3 intensified off.
write :/1 sy-vline, 2(25) 'Total for Plant :'(013),
28(4) g_werks.
if i_output1-clabs ge 0.
write: 85(18) i_output1-clabs unit i_mchb-meins,
125 sy-vline.
else.
i_output1-clabs = - i_output1-clabs.
write i_output1-clabs unit i_mchb-meins to g_clabs1.
condense g_clabs1.
concatenate '(' g_clabs1 ')' into g_clabs separated by space.
write: 85(18) g_clabs right-justified,
125 sy-vline.
endif.
format color off.
write /1(125) sy-uline.
endat.
At end of characteristic
at end of atinn.
read table i_output1 index l_tabix.
sum.
format color 3 intensified on.
write :/1 sy-vline, 2(25) 'Total for Characteristic:'(014),
28(25) i_output1-atnam.
if i_output1-clabs ge 0.
write: 85(18) i_output1-clabs unit i_mchb-meins,
125 sy-vline.
else.
i_output1-clabs = - i_output1-clabs.
write i_output1-clabs unit i_mchb-meins to g_clabs1.
condense g_clabs1.
concatenate '(' g_clabs1 ')' into g_clabs separated by space.
write: 85(18) g_clabs right-justified,
125 sy-vline.
endif.
format color off.
write /1(125) sy-uline.
endat.
endloop.
endform. " display_report
*& Form DISPLAY_BATCH
Display the batch details for the seclected material *
form display_batch.
Get the batch details for the selected material
get cursor field g_cursor.
if g_cursor = c_cursor1 or
g_cursor = c_cursor2 or
g_cursor = c_cursor3 or
g_cursor = c_cursor4 or
g_cursor = c_cursor5 or
g_cursor = c_cursor6.
format color 3.
write: /1 sy-vline,
2(17) 'Material Number :'(020),
20(17) i_output1-matnr,
94 sy-vline.
format color off.
write /1(94) sy-uline.
loop at i_mchb1 where matnr = i_output1-matnr and
atinn = i_output1-atinn and
atflo = i_output1-atflv.
format color col_normal.
shift i_mchb1-charg left deleting leading '0'.
write :/1 sy-vline, 2(16) i_mchb1-lgort centered,
18 sy-vline, 19(17) i_mchb1-charg centered,
36 sy-vline.
if i_output1-atnam cs c_ratio.
write: 37(29) i_mchb1-atflv
exponent 0 decimals 2 centered.
else.
write : 37(29) i_mchb1-atflv
exponent 0 decimals 0 centered.
endif.
write : 66 sy-vline, 67(27) i_mchb1-clabs unit i_mchb-meins,
94 sy-vline.
format color off.
endloop.
write /1(94) sy-uline.
else.
message s899 with 'Invalid cursor position'(016).
exit.
endif.
endform. " DISPLAY_BATCH
*& Form HEADING_SECLIST
Write the Column Headings for Interactive Report
form heading_seclist.
write /1(94) sy-uline.
format color col_heading on.
write :/1 sy-vline, 2(16) 'Storage Location'(021),
18 sy-vline, 19(17) 'Batch Number'(017) centered,
36 sy-vline, 37(29) 'Characteristic Value'(018) centered,
66 sy-vline, 67(27) 'Quantity'(019) centered,
94 sy-vline.
write /1(94) sy-uline.
format color off.
endform. " HEADING_SECLIST
*& Form COLLECT_RATIO
Display the Characteristic ratio data
form collect_ratio.
loop at i_output.
clear g_atinn.
i_output1-atinn = i_output-atinn.
i_output1-atnam = i_output-atnam .
i_output1-werks = i_output-werks.
i_output1-name1 = i_output-name1.
i_output1-matnr = i_output-matnr.
i_output1-maktx = i_output-maktx.
i_output1-clabs = i_output-clabs.
i_output1-meins = i_output-meins.
call function 'CONVERSION_EXIT_ATINN_OUTPUT'
exporting
input = i_output-atinn
importing
output = g_atinn.
if g_atinn cs c_ratio.
If the ratio value is between 13-14.99, display 13
if i_output-atflv between c_13 and c_1499.
i_output1-atflv = c_13.
If the ratio value is between 15-16.99, display 15
elseif i_output-atflv between c_15 and c_1699.
i_output1-atflv = c_15.
If the ratio value is between 17-18.99, display 17
elseif i_output-atflv between c_17 and c_1899.
i_output1-atflv = c_17.
If the ratio value is between 19-20.99, display 19
elseif i_output-atflv between c_19 and c_2099.
i_output1-atflv = c_19.
If the ratio value is between 21-22.99, display 21
elseif i_output-atflv between c_21 and c_2299.
i_output1-atflv = c_21.
If the ratio value is greater than or equal to 23, display 23
elseif i_output-atflv >= c_23.
i_output1-atflv = c_23.
endif.
write i_output1-atflv to i_output1-atflv .
else.
write i_output-atflv to i_output1-atflv exponent 0 decimals 0.
endif.
collect i_output1.
clear i_output1.
endloop.
sort i_output1 by atinn werks matnr atflv.
endform. " COLLECT_RATIO
<b>Reward points for useful Answers</b>
Regards
Anji -
Opening Stock Comapny - Plant - Material - Batch - Storage location Wise
Dear Friends,
I want to do the following report. I will explain the details to you. Pleaes suggest on how to go about it.
1. Since you know that SAP stores stock in a summary form (Plant / Material wise). Our management wants the report on the following hierarchy. (Company - Plant - Material - Batch - Storage). Our management has suggested the following:
a. Create a ZTABLE with the above columns including Quantity (which will contain closing stock quantity).
b. In this calculate and store Closing stock for each month.
c. an insert / update program has to be created for uploading data in the ZTABLE (selection will contain date).
for ex:
When running the program for 31st March 2008. system will take the closing stock stored in the ZTABLE for previous months + March Receipt - March issues. the result will be the closing stock for March 2008.
d. Then a report will be prepared using the ZTABLE and other calculated fields.
Can anyone give me the guideline as to how to go about it. Tables to be used and logic to be followed? Or if any other way the result can be achieved then nothing like it.
The Managements final goal is to have any given date closing stock in the above hierarchy (minimizing the Performance issue... that is why the suggestion of ZTABLE)...
Awaiting for your expert opinions.....
Regards,
Jitesh M NairFigured out
-
Material batch number in ORDERS05
Hi Friends,
I'm receiving a EDI 180(Returns) from the customer and I have to create a Sales order with type credit memo. In this process customer is sending material batch number in EDI NTE segment. I want to map this to field in to ORDERS05. Pls. some body tell me which IDOC segment/field I can map.
Thanks in advance.
Arjunsorry to say that, but you should learn about the application, you cannot make the field empty, it is SAP design that the valuation type goes to the batch field in case of split valuation active wihtout having batch managment active.
your wish is not possible with enhancements, and if , you would create inconsistencies and bigger problems in subsecuent processes. -
PR with FM Commitment Item not to reverse during PO with Inventory G/L
Hi,
I am facing a problem with FM Budget during Procurement.
We have create Purchase Requisition with Expense G/L, Cost Center and Activity (I/O) (to hit FM Budget).
During PO, we change Expense G/L with Inventory G/L (by removing 'f' from Acct Assignment Cat). Once we save PO, then the Expense Budget that was reduced at the time of Purchase Requisition is reversed.
Can anybody let me know how this reverse posting at the time of PO can be stopped in this scenerio.
We want that if we removed the PR expense G/L at the time of PO and replace the same by Inventory G/L, then the budget that was reduced at Purchase Requisition should not be reversed.
With Regards
RahkesThanks for your quick reply.
We have implement Budget on Cost Element and Cost Center through Fund Management at Procurement Level (it means that if budget amount is exusted then there will be no procurement)
Here I am giving an example:
For Material PO, we have created Purchase Requision with Budget Cost Element and Cost Center (to hit budget).
Once the PR is save, Budget is impacted.
Now we create Material PO with the above PR reference by deleting 'f' from Accont Assignment Category which deletes Cost Element and Cost Center from Account Assignment. Once we save PO then the system reverse the budget amount on Cost Element and Cost Center which was impacted at the time of PR.
We want that at the time of PO, the Budget amount should not be reversed.
Regards
Rahkes -
Same batch is reserved with many times during reservation
Hello Expert
I am facing a problem during reservation of material with Batch no.
Suppose
A1 is reserving material with batch(0000179) with quantity 300
A2 is also reserving the same material with same batch(0000179 ) with same quantity 300
my question is as follows with two conditions.
1) condition-1 material is in stock with 300 quantity only.
suppose A1 has reserved material with same batch&same quantity before A2
if A2 also trys to reserve same material with same batch&same quantity or differenet quantity after
reserving by A1.
system should throws error message that material is already reserved first by A1 for the same batch.
2) condition-2 material is in stock with 600 quantity only.
suppose A1 has reserved material with same batch&same quantity before A2
if A2 trys to reserve same material with same batch&same quantity
system should allow to reserve the material to A2 with the same batch&same quantiy.
please guide me to overcome this problem.
Best Regards & Thanks
Sanjay AgrawalI have the exact same problem. When I signed up 2 years ago I had great service in my house, and now I can't make a phone call even from the driveway. How does service degrade so badly? My contract is up in a couple months and I'm probably going to go to T-Mobile because they have WiFi Calling, unless Verizon can fix this. My poor wife works from home and can't even call out anymore.
-
351 movmnt type doesnot refers the Batch managed items with respect to P.O
Dear SAP Gurus,
For Stock transport order, i am using the 351 and 101 movement type.
The batch managed items are provided in the Purcahse order and the same batch is displayed while receiving the material -101 movement ytpe with respect to Purchase order, but while performing the Goods issue - 351 movement type , the batch is not displayed in the line item.
Kindly help me to solve this
Thanks in advance
Thanks and Regards,
R.DiwakarDear SAP Guru,
Thanks for your kind response
yes, the batch managed material is already available in both plants that is material already extended.
Manually the batch is entered by the receiving plant (what they required for STO), but while performing the Good issue against the Stock Transfer order the batch is not referred or automatically flows to the batch managed items.
in 351 movement type.
Kindly guide me on this.
Thanks and Regards,
R.Diwakar -
WM t-Code for Tracking Storage bins where a Material batch have stayed?
Hello Gurus,
My client ask if there is any t-code (report or whatever) in WM where he would be able to track all the storage bins in which a material batch have stayed?
It would be a kind of history data about storage bins where the batch have passed inside the warehouse....Any Clues?
Thanks!!!The only one that can serve your purpose is LT23.
Choose the "rainbow" icon and select by material and batch.
If you need help with selection screen feel free to ask... but it should be straight forward for SAP user.
Execute with all the right selections.
You will get a list of all the transfer orders which were used for that material/batch.
In the right part of TO details, you'll see storage bins, there are the ones that the material/batch have stayed in your warehouse... -
Material Batch in Production Order
Good afternoon,
We have the scenario where a Material batch is only allowed in ONE production order, for example:
Material 123, Batch A: Qty50
Material 123, Batch B: Qty50
I have a production Order that requires 75 of Material 123.
The production Order can only be a maximum of 50 and another for 25 has to be raised as only 1 material batch is allowed per Production Order.
Is this possible?Guy,
I think you are saying since your component material 123 has 2 batches of qty 50, you want to generate Finished product production order qty =50 automatically.
This is a typical requirement in Chemical/Pharma industry where production batch size is determined by available raw material qty.
This feature can be used in a concept called Material qty calculation used in the PP-PI model where you work reciepe & process orders. unfortunately this feature is not available in the PP module of SAP.
Alternatively your client may have to go for an ehancement pack " Industry solution - Pharma"
However if you are using PP-PI module the solution is as follows
With material qty calculation based on raw material qty (eg 50) issued to production order, FG production order qty can be reduces to 50 (based on formulae maintained in Mat-Qty section in Recipe).
Hope this helps resolve your question.
thanks,
Ram
Maybe you are looking for
-
IPod Mini Won't Update, HELP!
Here's the sitution. I plug my iPod mini into the computer and open iTunes. Nothing happens. My iPod is charging in the computer but I can't update it. Help, PLEASE!
-
Appraisals EHP4 - multiple reference objects not working in the same TAB
Dear SAP Experts, I am working on MBO Performance Mgmt EHP4. I have created an appraisal template and testing this in MSS. Now the structure of the template has a VB object called u201CMy Developmentu201D. Within this VB Object I have created two oth
-
After I imported a photo on lightroom I go in develop and the problem is that i see the settings are NOT the same as shot in raw. Indeed the contrast the brightness and also the temperature and the color's tone are always the same. Also if i choose t
-
Where are my file sizes??
Primarily a PC user, I have a 2nd 250GB HD dedicated only to media for FCP that has about 44GB left and I can't find where the 200GB or so has gone, since Mac OSX doesn't seem to give me ideas of the size of files. When I click on the drive, I get ab
-
Help! My keyboard is acting strange : (
Help! My keyboard is acting strange. I just moved and when I started to type in my Mac Book Pro after not using it for a few weeks, every time I typed certain letters, two other letters in the same column appear (eg: when I type c, edc appear or frv