F.05 created unexpected huge variance - Urgent
During the month end process, F.05 was executed. That transaction (Company codes A & B )created FX postings which were beyond reasonable range. The intercompany accounts were out of balance by $200K USD.
Thanks & Regards'
Ravi
Hi,
Should check the postings quickly to see where do you have unusually big amounts.
In this document the foreign currency could have been introduced manually and not by respecting the translation of currencies.
Of course that in this case it can lead to big differences.
Reward points if useful,
Miroslav
Similar Messages
-
Logical standby stopped when trying to create partitions on primary(Urgent
RDBMS Version: 10.2.0.3
Operating System and Version: Solaris 5.9
Error Number (if applicable): ORA-1119
Product (i.e. SQL*Loader, Import, etc.): Data Guard on RAC
Product Version: 10.2.0.3
logical standby stopped when trying to create partitions on primary(Urgent)
Primary is a 2node RAC ON ASM, we implemented partitions on primar.
Logical standby stopped appling logs.
Below is the alert.log for logical stdby:
Current log# 4 seq# 860 mem# 0: +RT06_DATA/rt06/onlinelog/group_4.477.635601281
Current log# 4 seq# 860 mem# 1: +RECO/rt06/onlinelog/group_4.280.635601287
Fri Oct 19 10:41:34 2007
create tablespace INVACC200740 logging datafile '+OT06_DATA' size 10M AUTOEXTEND ON NEXT 5M MAXSIZE 1000M EXTENT MANAGEMENT LOCAL
Fri Oct 19 10:41:34 2007
ORA-1119 signalled during: create tablespace INVACC200740 logging datafile '+OT06_DATA' size 10M AUTOEXTEND ON NEXT 5M MAXSIZE 1000M EXTENT MANAGEMENT LOCAL...
LOGSTDBY status: ORA-01119: error in creating database file '+OT06_DATA'
ORA-17502: ksfdcre:4 Failed to create file +OT06_DATA
ORA-15001: diskgroup "OT06_DATA" does not exist or is not mounted
ORA-15001: diskgroup "OT06_DATA" does not exist or is not mounted
LOGSTDBY Apply process P004 pid=49 OS id=16403 stopped
Fri Oct 19 10:41:34 2007
Errors in file /u01/app/oracle/admin/RT06/bdump/rt06_lsp0_16387.trc:
ORA-12801: error signaled in parallel query server P004
ORA-01119: error in creating database file '+OT06_DATA'
ORA-17502: ksfdcre:4 Failed to create file +OT06_DATA
ORA-15001: diskgroup "OT06_DATA" does not exist or is not mounted
ORA-15001: diskgroup "OT06_DATA" does not exist or
Here is the trace file info:
/u01/app/oracle/admin/RT06/bdump/rt06_lsp0_16387.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /u01/app/oracle/product/10.2.0
System name: SunOS
Node name: iscsv341.newbreed.com
Release: 5.9
Version: Generic_118558-28
Machine: sun4u
Instance name: RT06
Redo thread mounted by this instance: 1
Oracle process number: 16
Unix process pid: 16387, image: [email protected] (LSP0)
*** 2007-10-19 10:41:34.804
*** SERVICE NAME:(SYS$BACKGROUND) 2007-10-19 10:41:34.802
*** SESSION ID:(1614.205) 2007-10-19 10:41:34.802
knahcapplymain: encountered error=12801
*** 2007-10-19 10:41:34.804
ksedmp: internal or fatal error
ORA-12801: error signaled in parallel query server P004
ORA-01119: error in creating database file '+OT06_DATA'
ORA-17502: ksfdcre:4 Failed to create file +OT06_DATA
ORA-15001: diskgroup "OT06_DATA" does not exist or is not mounted
ORA-15001: diskgroup "OT06_DATA" does not exist or
KNACDMP: *******************************************************
KNACDMP: Dumping apply coordinator's context at 7fffd9e8
KNACDMP: Apply Engine # 0
KNACDMP: Apply Engine name
KNACDMP: Coordinator's Watermarks ------------------------------
KNACDMP: Apply High Watermark = 0x0000.0132b0bc
Sorry our primary database file structure is different from stdby, we used db_file_name_convert in the init.ora, it look like this:
*.db_file_multiblock_read_count=16
*.db_file_name_convert='+OT06_DATA/OT06TSG001/','+RT06_DATA/RT06/','+RECO/OT06TSG001','+RECO/RT06'
*.db_files=2000
*.db_name='OT06'
*.db_recovery_file_dest='+RECO'
Is there any thing wrong in this parameter.
I tried this parameter before for cloning using rman backup. This din't work.
What exactly must be done? for db_file_name_convert to work.
Even in this case i think this is the problem its not converting the location and the logical halts.
help me out.....
let me know if you have any questions.
Thanks Regards
Raghavendra rao Yella.Hi reega,
Thanks for your reply, our logical stdby has '+RT06_DATA/RT06'
and primary has '+OT06_DATA/OT06TSG001'
so we are using db_file_name_convert init parameter but it doesn't work.
Is there any thing particular steps hiding to use this parameter? as i tried this parameter for rman cloning it din't work, as a workaround i used rman set new name command for clonning.
Let me know if you have any questions.
Thanks in advance. -
I am having issues suddenly exporting files. It reads error exporting 25 files, As I attempt to choose another destination folder the folders show a black square where the folder sign previously was. I am in my busy season and this has created a huge delay!!! HELP!!!!
oh and if you use a creative cloud version of Lightroom it could also be that the logon to the cloud is messed up. Logging out and logging back in from preferences in the creative cloud app will fix that. Due to the release of Lightroom CC it appears that adobe's servers have been overwhelmed a bit And many people have strange problems that are solved by logging out and back in.
-
Huge Variance between Target cost and Actual Cost
Hi,
In Product Costing,I am getting Huge variance between Target cost and Actual Cost.It is showing the Target Cost as ZERO.Why i am getting this target cost as Zero? what could be the reason? Kindly help me in fix this issue.
Thanks
SupriyaDear,
First do the GR final DEV for Production order
You need to do the variance calculation in KKS2, then when you save the variance, the target cost is calculated.
Target cost appear after GR. And you will get the Variance also right.
Please try and come back.
Regards,
R.Brahmankar -
iMac. 2.4GHz. Core 2 Duo. 2GB SDRAM. OS - 10.9.5. Keynote - 6.2.2 v.1878.
I just completed a keynote slide show. The Finder indicates it is 5.25GB. It is 200 slides, no movies, no audio of any kind, no special transitions. It is just photos and some added text explanations. The individual photos are each 5-6MB, with about 190 photos total. I have other previous .key's about the size in terms of the number of photos and they are showing in the Finder as taking up 300-500MB. There is nothing different with this one particular presentation. I usually organize and store my photos using .key after a trip. Photos are downloaded into iPhoto (7.1.5) and then I build a keynote presentation by copying the photos as .jpg's out of iPhoto and into Keynote, with text as notes on or under each photo. Something changed with the latest keynote in terms of file size. But I can't determined why it required 5.25GB of disc space while other .key's of the approximate same size and content are only taking 10% of that amount. Anyone have an idea what is going on with keynote is this particular instance??? I know I could compress it, but I want to understand why the last time I used keynote the file size was so huge. Thanks for the help.Some additional information. In looking at the package contents info, under the DATA Folder there are several entries for each slide/photo in the .key presentation. There is a long list of contents that shows each image as:
pasted-image-1234.png
and a second list right below that identifies each image again in the .key as:
pasted-image-small-1234.png
Both of these lists show image files of 15-25MB for each photo, even though the original .jpg photo was 4-6MB. They list/show all of the images in the .key, but DO NOT show the added text. So it appears the package contents indicates two separate .png files for each photo in the .key, but the file size for each is 3-5 times greater than the original .jpg that was copy/pasted from iPhoto. And for some reason there are two copies of each.
There is also a list for the two following image/data files:
pasted-image-small-small-1234.png
st12-1234.png
Both of these lists show a file size of 100-200KB for each image, and again show all of the images in the.key.
Only the st-xx-xxxx.png list of images also show the added text.
Again it appears when I created the Keynote presentation by copy/paste images from iPhoto, Keynote stored multiple copies of each image as .png file several times larger than the original .jpg. The completed Keynote slide show is so large is almost impossible to work with. The system is so slow that routine commands are not completed, e.g., trying to "save as" into a .pdf never finishes and I have to "force quit".
Still trying to determine why this occurred with the 6.2.2 version. Any chance I can delete all but the st-xx-xxxx image list and get back to a normal file size?? -
Error while creating BOM using BAPI (urgent)
Hi all,
Thanks for ur help. i am getting some error while creting a BOM using that BAPI
BAPI_MATERIAL_BOM_GROUP_CREATE.
errors are
1) Error/warning when checking the structure of the BOM group with ID =
2)Alternative does not exist for material assignment to material BAPIBOMFG1
is it mandatory to pass the bom group id to this bapi?
In bomgroup structure , i am not passing anything to BOM_GROUP field.
is it mandatory to pass this data? i am giving my coding below.plz suggest , where i am making mistake. it is urgent.
regards
pabitra
report z_bom_create
line-size 132
line-count 65
no standard page heading.
*-- DATA DECLARATION--
include <icon> .
*---Tables
tables : s076, t100, marc .
*---Types
types : begin of t_upload, " Upload file data
col1(18),
col2(10),
col3(30),
col4(12),
col5(50),
end of t_upload,
begin of t_split,
location like stpu-ebort,
end of t_split.
data:begin of i_return occurs 10.
include structure bapiret2.
data:end of i_return.
types:begin of t_item."occurs 10.
include structure BAPI1080_ITM_C.
types:end of t_item.
types:begin of t_subitem." occurs 10.
include structure BAPI1080_SUI_C.
types:end of t_subitem.
types:begin of t_header." occurs 10.
include structure BAPI1080_MBM_C.
types:end of t_header.
types:begin of t_bomgroup." occurs 10.
include structure BAPI1080_BGR_C.
types:end of t_bomgroup.
types:begin of t_variant." occurs 10.
include structure BAPI1080_BOM_C.
types:end of t_variant.
*--- Tables
data: i_upload type standard table of t_upload, " to hold data
i_upload1 type standard table of t_upload,
i_split type standard table of t_split,
i_item type standard table of t_item,
i_subitem type standard table of t_subitem,
i_header type standard table of t_header,
i_bomgroup type standard table of t_bomgroup,
i_variant type standard table of t_variant.
data: wa_upload type t_upload, " to hold file data,
wa_upload1 type t_upload, " to hold plan data,
wa_split type t_split,
wa_item type t_item,
wa_subitem type t_subitem,
wa_header type t_header,
wa_bomgroup type t_bomgroup,
wa_variant type t_variant.
data:v_matnr like mara-matnr,
v_start like sy-index,
v_count(3) type c.
*--Constants
data: c_dot type c value '.',
c_x type c value 'X',
c_comma type c value ','.
-------Selection Screen Design -
*Selection screen for input of upload file address
selection-screen skip 2.
selection-screen begin of block blk1 with frame.
parameters : p_file like rlgrap-filename obligatory .
parameters : p_matnr like mara-matnr obligatory,
p_werks like marc-werks obligatory memory id wrk,
p_stlan like afko-stlan obligatory default '1' .
selection-screen end of block blk1.
---AT SELECTION SCREEN -
at selection-screen on value-request for p_file.
*--For popup to select file.
perform f_give_help.
at selection-screen on p_matnr.
perform f_check_matnr.
-----START OF SELECTION -
*--Data upload using WS_Upload.
perform f_get_data.
perform f_get_bom_data.
perform f_get_bom_data1.
perform f_call_bapi.
*& Form f_give_help
text
--> p1 text
<-- p2 text
FORM f_give_help.
call function 'WS_FILENAME_GET'
exporting
mask = ',.,..'
mode = 'O'
importing
filename = p_file
exceptions
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
others = 5.
if sy-subrc <> 0 and not sy-msgty is initial.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
ENDFORM. " f_give_help
*& Form f_check_matnr
text
--> p1 text
<-- p2 text
FORM f_check_matnr.
CALL FUNCTION 'BAPI_MAT_BOM_EXISTENCE_CHECK'
EXPORTING
MATERIAL = p_matnr
PLANT = p_werks
BOMUSAGE = '1'
VALID_FROM_DATE =
VALID_TO_DATE =
TABLES
RETURN = i_return.
ENDFORM. " f_check_matnr
*& Form f_get_data
text
--> p1 text
<-- p2 text
FORM f_get_data.
call function 'WS_UPLOAD'
exporting
CODEPAGE = ' '
filename = p_file
filetype = 'DAT'
tables
data_tab = i_upload
exceptions
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
others = 10
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
ENDFORM. " f_get_data
*& Form f_get_bom_data
text
--> p1 text
<-- p2 text
FORM f_get_bom_data.
delete i_upload where col1 is initial.
delete i_upload where col1 cs 'ITEM'.
read table i_upload into wa_upload with key col1 = 'FINISHED GOOD:'.
if sy-subrc = 0.
v_matnr = wa_upload-col2.
if v_matnr <> p_matnr.
message e001(zl) with p_matnr.
endif.
else.
message e000(zl).
endif.
ENDFORM. " f_get_bom_data
*& Form f_get_bom_data1
text
--> p1 text
<-- p2 text
FORM f_get_bom_data1.
loop at i_upload into wa_upload where col1 CS 'FINISHED GOOD'.
v_start = sy-tabix + 1.
loop at i_upload into wa_upload1 from v_start .
if wa_upload1-col1 cs 'FINISHED GOOD'.
exit.
else.
perform f_split_upload_data.
endif.
endloop.
endloop.
ENDFORM. " f_get_bom_data1
*& Form f_split_upload_data
text
--> p1 text
<-- p2 text
FORM f_split_upload_data.
if not wa_upload1-col5 is initial.
if wa_upload1-col5 cs c_comma.
split wa_upload1-col5 at c_comma into table i_split.
loop at i_split into wa_split.
v_count = v_count + 1.
endloop.
if wa_upload1-col4 <> v_count.
wa_upload1-col4 = v_count.
endif.
clear wa_upload1-col5.
clear wa_split.
loop at i_split into wa_split.
wa_upload1-col5 = wa_split-location.
append wa_upload1 to i_upload1.
endloop.
else.
append wa_upload1 to i_upload1.
endif.
else.
append wa_upload1 to i_upload1.
endif.
ENDFORM. " f_split_upload_data
*& Form f_call_bapi
text
--> p1 text
<-- p2 text
FORM f_call_bapi.
clear wa_upload1.
wa_header-material = p_matnr.
wa_header-plant = p_werks.
wa_header-bom_usage = p_stlan.
append wa_header to i_header.
wa_bomgroup-bom_usage = p_stlan.
wa_bomgroup-created_in_plant = p_werks.
append wa_bomgroup to i_bomgroup.
wa_variant-alternative_bom = 1.
wa_variant-base_qty = 1.
wa_variant-valid_from_date = sy-datum.
append wa_variant to i_variant.
loop at i_upload1 into wa_upload1.
wa_item-item_no = wa_upload1-col1.
wa_item-item_cat = wa_upload1-col2.
wa_item-component = wa_upload1-col3.
wa_item-comp_qty = wa_upload1-col4.
append wa_item to i_item.
wa_subitem-subitem_qty = '1'.
wa_subitem-installation_point = wa_upload1-col5.
append wa_subitem to i_subitem.
endloop.
CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
EXPORTING
TESTRUN = ' '
ALL_ERROR = ' '
TABLES
BOMGROUP = i_bomgroup
VARIANTS = i_variant
ITEMS = i_item
SUBITEMS = i_subitem
MATERIALRELATIONS = i_header
ITEMASSIGNMENTS =
SUBITEMASSIGNMENTS =
TEXTS =
RETURN = i_return.
if i_return[] is initial.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
*write: /'BOM created:', stpo-stlnr.
else.
*if not i_return[] is initial.
loop at i_return.
IF i_return-TYPE = 'E'.
errmsg-type = i_return-type.
errmsg-line = i_return-message.
append errmsg.
ULINE /1(108).
write:/ icon_led_RED as icon, i_return-MESSAGE.
ULINE /1(108).
ENDIF.
IF i_return-TYPE = 'W'.
errmsg-type = i_return-type.
errmsg-line = i_return-message.
append errmsg.
ULINE /1(108).
write:/ icon_led_YELLOW as icon, i_return-MESSAGE.
ULINE /1(108).
ENDIF.
ENDLOOP.
*write: / i_return-id, i_return-number, i_return-message(80).
*endloop.
*write: /'Error'.
endif.
ENDFORM. " f_call_bapiHi shashi,
Thanks for ur help.i tried after passing the group but it is giving same error.
i am getting the error
"Error/warning when checking the structure of the BOM group with ID= test"
i am gettig the above error when i put bomgroup-bom_group_identification = 'TEST'.
whatever i am putting in this field, the same error is comming having different value.
if i put--- bomgroup-bom_group_identification = ' '. then i will get error
"Error/warning when checking the structure of the BOM group with ID=
if i omit that field, then also , i am getting same error.
plz suggest what r the fields i need to pass for BOMGROUP structure for that bapi?
regards
pabitra -
How to create an IDOC ? Urgent!
Hi ...can anyone tell me the steps and process of creating an IDOC?
or can email to [email protected]
very urgent...THANKS IN ADVANCE.
SuryaaHi SUrya,
Go the below links:
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf
Also check this links for additional information.
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
Regards
Srini -
Unable to create database in Cloudscape// UrGent
Hiii All,
I am trying to create one new database by using cloudscape. But Every time when I give database name and click OK, it produces following exception:-
java.lang.ClassNotFoundException: COM.cloudscape.core.JDBCDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at c8e.eb.ab.setSelectedDatabase(Unknown Source)
at c8e.dx.bs.connect(Unknown Source)
at COM.cloudscape.ui.panel.NewDatabasePanel.newDatabase(Unknown Source)
at COM.cloudscape.ui.panel.NewDatabasePanel.ok(Unknown Source)
at COM.cloudscape.ui.panel.NewDatabasePanel.okButton_actionPerformed(Unknown Source)
at COM.cloudscape.ui.panel.NewDatabasePanel_okButton_actionAdapter.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I am starting the database with the the following command:-
java -classpath ..\lib\cloudscape\cloudview.jar COM.cloudscape.tools.cview
Please Help me as soon as possible, as its very urgent for me.
Thanx in advance
RajThe driver for what looks like you are using is Cloudscape 4 (btw, please move to Derby/Cloudscape 10) is COM.cloudscape.core.RmiJdbcDriver
You need to include cloudclient.jar in your CLASSPATH -
Network Model - Arcs create unexpected results
Hello Spatial Users,
I have created a road network using the "Automatic" Network Definition, loaded all the nodes and links, and everything seems to be OK. It all validates, links and nodes have the correct values. It is an undirected network.
I can create shortest paths, but the issue I'm having is arcs within the links are returning unexpected results. It is as though the start of the arc is used and then it follows the arc and jumps back to the end of the line - so the shortest path is not the shortest with all this jumping from start to finish of the arcs within the line string.
Do I need to convert the arcs to lines or am I missing something else? I was hoping that because it was 'undirected' this would resolve this issue.
We are using 11.1.0.6.0.
Thanks for your help,
KerryneHi, Kerryne,
NDM doesn't support arcs in its spatial path representation. For arcs it will only use start and end pt of the arc. You need to approximate arcs as linear segments for link geometry to get a more accurate path geometry.
Regards,
Jack -
Where is the text stored when we create a discussion under Urgent Requests?
Hello,
Under the Urgent Requests when we create the discussions
where is the text stored. Under which folder is the text stored? I would like to modify the text. Can anyone help me?
Thnx in advance.hi murali,
actually discussions are of two types in portal...one you start at any folder or document level and second is you start under ur HOME role in discussion .
First type of discussion is stored in /collaboration repository and second type of discussion is stored in /discussiongroup repository. you can find these repository in content admin -> km content
hope this will help you. -
To create Multilevel BOM---- BAPI (urgent)
Hi all,
i am using BAPI_MATERIAL_BOM_GROUP_CREATE to create a <u><b>MULTI LEVEL</b></u> BOM in sap. but i am not getting any field for <b>LEVEL</b> in this BAPI.so, can i create a multilevel bom without a level ?
can u plz suggest, how can i use this BAPI to create a <b>multi level</b> bom?
is there any field relating to assembly indicator (stlkz) in this BAPI?i am not getting this field.plz suggest.
any idea will be highly appreaciated.
Regards
pabitraHi eswar,
Thanks for ur help. i am getting some error while creting a BOM using that BAPI.
errors are
1) Error/warning when checking the structure of the BOM group with ID =
2)Alternative does not exist for material assignment to material BAPIBOMFG1
is it mandatory to pass the bom group id to this bapi?
In bomgroup structure , i am not passing anything to BOM_GROUP field.
is it mandatory to pass this data? i am giving my coding below.plz suggest , where i am making mistake. it is urgent.
regards
pabitra
report z_bom_create
line-size 132
line-count 65
no standard page heading.
*-- DATA DECLARATION--
include <icon> .
*---Tables
tables : s076, t100, marc .
*---Types
types : begin of t_upload, " Upload file data
col1(18),
col2(10),
col3(30),
col4(12),
col5(50),
end of t_upload,
begin of t_split,
location like stpu-ebort,
end of t_split.
data:begin of i_return occurs 10.
include structure bapiret2.
data:end of i_return.
types:begin of t_item."occurs 10.
include structure BAPI1080_ITM_C.
types:end of t_item.
types:begin of t_subitem." occurs 10.
include structure BAPI1080_SUI_C.
types:end of t_subitem.
types:begin of t_header." occurs 10.
include structure BAPI1080_MBM_C.
types:end of t_header.
types:begin of t_bomgroup." occurs 10.
include structure BAPI1080_BGR_C.
types:end of t_bomgroup.
types:begin of t_variant." occurs 10.
include structure BAPI1080_BOM_C.
types:end of t_variant.
*--- Tables
data: i_upload type standard table of t_upload, " to hold data
i_upload1 type standard table of t_upload,
i_split type standard table of t_split,
i_item type standard table of t_item,
i_subitem type standard table of t_subitem,
i_header type standard table of t_header,
i_bomgroup type standard table of t_bomgroup,
i_variant type standard table of t_variant.
data: wa_upload type t_upload, " to hold file data,
wa_upload1 type t_upload, " to hold plan data,
wa_split type t_split,
wa_item type t_item,
wa_subitem type t_subitem,
wa_header type t_header,
wa_bomgroup type t_bomgroup,
wa_variant type t_variant.
data:v_matnr like mara-matnr,
v_start like sy-index,
v_count(3) type c.
*--Constants
data: c_dot type c value '.',
c_x type c value 'X',
c_comma type c value ','.
-------Selection Screen Design -
*Selection screen for input of upload file address
selection-screen skip 2.
selection-screen begin of block blk1 with frame.
parameters : p_file like rlgrap-filename obligatory .
parameters : p_matnr like mara-matnr obligatory,
p_werks like marc-werks obligatory memory id wrk,
p_stlan like afko-stlan obligatory default '1' .
selection-screen end of block blk1.
---AT SELECTION SCREEN -
at selection-screen on value-request for p_file.
*--For popup to select file.
perform f_give_help.
at selection-screen on p_matnr.
perform f_check_matnr.
-----START OF SELECTION -
*--Data upload using WS_Upload.
perform f_get_data.
perform f_get_bom_data.
perform f_get_bom_data1.
perform f_call_bapi.
*& Form f_give_help
text
--> p1 text
<-- p2 text
FORM f_give_help.
call function 'WS_FILENAME_GET'
exporting
mask = ',.,..'
mode = 'O'
importing
filename = p_file
exceptions
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
others = 5.
if sy-subrc <> 0 and not sy-msgty is initial.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
ENDFORM. " f_give_help
*& Form f_check_matnr
text
--> p1 text
<-- p2 text
FORM f_check_matnr.
CALL FUNCTION 'BAPI_MAT_BOM_EXISTENCE_CHECK'
EXPORTING
MATERIAL = p_matnr
PLANT = p_werks
BOMUSAGE = '1'
VALID_FROM_DATE =
VALID_TO_DATE =
TABLES
RETURN = i_return.
ENDFORM. " f_check_matnr
*& Form f_get_data
text
--> p1 text
<-- p2 text
FORM f_get_data.
call function 'WS_UPLOAD'
exporting
CODEPAGE = ' '
filename = p_file
filetype = 'DAT'
tables
data_tab = i_upload
exceptions
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
others = 10
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
ENDFORM. " f_get_data
*& Form f_get_bom_data
text
--> p1 text
<-- p2 text
FORM f_get_bom_data.
delete i_upload where col1 is initial.
delete i_upload where col1 cs 'ITEM'.
read table i_upload into wa_upload with key col1 = 'FINISHED GOOD:'.
if sy-subrc = 0.
v_matnr = wa_upload-col2.
if v_matnr <> p_matnr.
message e001(zl) with p_matnr.
endif.
else.
message e000(zl).
endif.
ENDFORM. " f_get_bom_data
*& Form f_get_bom_data1
text
--> p1 text
<-- p2 text
FORM f_get_bom_data1.
loop at i_upload into wa_upload where col1 CS 'FINISHED GOOD'.
v_start = sy-tabix + 1.
loop at i_upload into wa_upload1 from v_start .
if wa_upload1-col1 cs 'FINISHED GOOD'.
exit.
else.
perform f_split_upload_data.
endif.
endloop.
endloop.
ENDFORM. " f_get_bom_data1
*& Form f_split_upload_data
text
--> p1 text
<-- p2 text
FORM f_split_upload_data.
if not wa_upload1-col5 is initial.
if wa_upload1-col5 cs c_comma.
split wa_upload1-col5 at c_comma into table i_split.
loop at i_split into wa_split.
v_count = v_count + 1.
endloop.
if wa_upload1-col4 <> v_count.
wa_upload1-col4 = v_count.
endif.
clear wa_upload1-col5.
clear wa_split.
loop at i_split into wa_split.
wa_upload1-col5 = wa_split-location.
append wa_upload1 to i_upload1.
endloop.
else.
append wa_upload1 to i_upload1.
endif.
else.
append wa_upload1 to i_upload1.
endif.
ENDFORM. " f_split_upload_data
*& Form f_call_bapi
text
--> p1 text
<-- p2 text
FORM f_call_bapi.
clear wa_upload1.
wa_header-material = p_matnr.
wa_header-plant = p_werks.
wa_header-bom_usage = p_stlan.
append wa_header to i_header.
wa_bomgroup-bom_usage = p_stlan.
wa_bomgroup-created_in_plant = p_werks.
append wa_bomgroup to i_bomgroup.
wa_variant-alternative_bom = 1.
wa_variant-base_qty = 1.
wa_variant-valid_from_date = sy-datum.
append wa_variant to i_variant.
loop at i_upload1 into wa_upload1.
wa_item-item_no = wa_upload1-col1.
wa_item-item_cat = wa_upload1-col2.
wa_item-component = wa_upload1-col3.
wa_item-comp_qty = wa_upload1-col4.
append wa_item to i_item.
wa_subitem-subitem_qty = '1'.
wa_subitem-installation_point = wa_upload1-col5.
append wa_subitem to i_subitem.
endloop.
CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
EXPORTING
TESTRUN = ' '
ALL_ERROR = ' '
TABLES
BOMGROUP = i_bomgroup
VARIANTS = i_variant
ITEMS = i_item
SUBITEMS = i_subitem
MATERIALRELATIONS = i_header
ITEMASSIGNMENTS =
SUBITEMASSIGNMENTS =
TEXTS =
RETURN = i_return.
if i_return[] is initial.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
*write: /'BOM created:', stpo-stlnr.
else.
*if not i_return[] is initial.
loop at i_return.
IF i_return-TYPE = 'E'.
errmsg-type = i_return-type.
errmsg-line = i_return-message.
append errmsg.
ULINE /1(108).
write:/ icon_led_RED as icon, i_return-MESSAGE.
ULINE /1(108).
ENDIF.
IF i_return-TYPE = 'W'.
errmsg-type = i_return-type.
errmsg-line = i_return-message.
append errmsg.
ULINE /1(108).
write:/ icon_led_YELLOW as icon, i_return-MESSAGE.
ULINE /1(108).
ENDIF.
ENDLOOP.
*write: / i_return-id, i_return-number, i_return-message(80).
*endloop.
*write: /'Error'.
endif.
ENDFORM. " f_call_bapi -
BRTOOLS - Recreate database Create new database fails URGENT HELP
Hi All,
I'm following sap note 748434 to recreate SYSTEM tablespace but when I've got to step 4 Create new database it errors :-
Recreate database main menu
1 + Specify new database options
2 + Export user tablespaces
3 + Export global objects
4 = Create new database
5 * Import global objects
6 * Import user tablespaces
7 * Exit program
8 - Reset program status
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
4
BR0280I BRSPACE time stamp: 2014-03-13 15.26.00
BR0663I Your choice: '4'
BR0613I Database instance BWD is shut down
BR0618I Database instance BWD will be started now
BR0280I BRSPACE time stamp: 2014-03-13 15.26.00
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
c
BR0280I BRSPACE time stamp: 2014-03-13 15.26.04
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0280I BRSPACE time stamp: 2014-03-13 15.26.04
BR0619I Starting database instance BWD ...
BR0280I BRSPACE time stamp: 2014-03-13 15.26.06
BR0620I Start of database instance BWD successful
BR0490I Database file /oracle/BWD/sapdata1/system_1/system.data1 (and its subdirectory or link if applicable) will be deleted now
BR0490I Database file /oracle/BWD/origlogA/log_g11m1.dbf (and its subdirectory or link if applicable) will be deleted now
BR0490I Database file /oracle/BWD/mirrlogA/log_g11m2.dbf (and its subdirectory or link if applicable) will be deleted now
BR0490I Database file /oracle/BWD/origlogB/log_g12m1.dbf (and its subdirectory or link if applicable) will be deleted now
BR0490I Database file /oracle/BWD/mirrlogB/log_g12m2.dbf (and its subdirectory or link if applicable) will be deleted now
BR0490I Database file /oracle/BWD/origlogA/log_g13m1.dbf (and its subdirectory or link if applicable) will be deleted now
BR0490I Database file /oracle/BWD/mirrlogA/log_g13m2.dbf (and its subdirectory or link if applicable) will be deleted now
BR0490I Database file /oracle/BWD/origlogB/log_g14m1.dbf (and its subdirectory or link if applicable) will be deleted now
BR0490I Database file /oracle/BWD/mirrlogB/log_g14m2.dbf (and its subdirectory or link if applicable) will be deleted now
BR0490I Database file /oracle/BWD/origlogA/cntrl/cntrlBWD.dbf (and its subdirectory or link if applicable) will be deleted now
BR0490I Database file /oracle/BWD/sapdata1/cntrl/cntrlBWD.dbf (and its subdirectory or link if applicable) will be deleted now
BR0490I Database file /oracle/BWD/saparch/cntrl/cntrlBWD.dbf (and its subdirectory or link if applicable) will be deleted now
BR0280I BRSPACE time stamp: 2014-03-13 15.26.06
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
c
BR0280I BRSPACE time stamp: 2014-03-13 15.27.22
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0280I BRSPACE time stamp: 2014-03-13 15.27.22
BR0792I Database files can be saved before deletion
BR0675I Do you want to perform this action?
BR0280I BRSPACE time stamp: 2014-03-13 15.27.22
BR0676I Enter 'y[es]' to perform the action, 'n[o]/c[ont]' to skip it, 's[top]' to abort:
c
BR0280I BRSPACE time stamp: 2014-03-13 15.27.28
BR0257I Your reply: 'c'
BR0678I The action will be skipped...
BR0259I Program execution will be continued...
BR0794I Database file /oracle/BWD/sapdata1/system_1/system.data1 deleted
BR0480I Directory /oracle/BWD/sapdata1/system_1 deleted
BR0794I Database file /oracle/BWD/origlogA/log_g11m1.dbf deleted
BR0794I Database file /oracle/BWD/mirrlogA/log_g11m2.dbf deleted
BR0794I Database file /oracle/BWD/origlogB/log_g12m1.dbf deleted
BR0794I Database file /oracle/BWD/mirrlogB/log_g12m2.dbf deleted
BR0794I Database file /oracle/BWD/origlogA/log_g13m1.dbf deleted
BR0794I Database file /oracle/BWD/mirrlogA/log_g13m2.dbf deleted
BR0794I Database file /oracle/BWD/origlogB/log_g14m1.dbf deleted
BR0794I Database file /oracle/BWD/mirrlogB/log_g14m2.dbf deleted
BR0794I Database file /oracle/BWD/origlogA/cntrl/cntrlBWD.dbf deleted
BR0794I Database file /oracle/BWD/sapdata1/cntrl/cntrlBWD.dbf deleted
BR0794I Database file /oracle/BWD/saparch/cntrl/cntrlBWD.dbf deleted
BR0280I BRSPACE time stamp: 2014-03-13 15.27.28
BR0491I Subdirectory or link for database file /oracle/BWD/sapdata1/system_1/system.data1 and will be recreated now if needed
BR0491I Subdirectory or link for database file /oracle/BWD/sapdata1/sysaux_1/sysaux.data1 and will be recreated now if needed
BR0491I Subdirectory or link for database file /oracle/BWD/sapdata1/temp_1/temp.data1 and will be recreated now if needed
BR0491I Subdirectory or link for database file /oracle/BWD/sapdata4/undo_1/undo.data1 and will be recreated now if needed
BR0280I BRSPACE time stamp: 2014-03-13 15.27.28
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
c
BR0280I BRSPACE time stamp: 2014-03-13 15.27.30
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0370I Directory /oracle/BWD/sapdata1/system_1 created
BR0280I BRSPACE time stamp: 2014-03-13 15.27.30
BR1273I SQLPLUS will be started for execution of SQL script /oracle/BWD/sapreorg/senkbgrd/dbcrt.sql
BR0280I BRSPACE time stamp: 2014-03-13 15.27.30
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
c
BR0280I BRSPACE time stamp: 2014-03-13 15.27.43
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0280I BRSPACE time stamp: 2014-03-13 15.27.43
BR0278I Command output of '/oracle/BWD/102_64/bin/sqlplus /nolog < /oracle/BWD/sapreorg/.senkbgrd.spi':
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Mar 13 15:27:43 2014
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
SQL> SQL> SQL> Connected.
SQL>
SQL> CREATE DATABASE BWD
ERROR at line 1:
BR0278E Command output of '/oracle/BWD/102_64/bin/sqlplus /nolog < /oracle/BWD/sapreorg/.senkbgrd.spi':
ORA-01092: ORACLE instance terminated. Disconnection forced
SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
BR0280I BRSPACE time stamp: 2014-03-13 15.28.32
BR1274I Execution of SQL script /oracle/BWD/sapreorg/senkbgrd/dbcrt.sql completed
BR1277W SQLPLUS reported warnings or errors during the execution of SQL script /oracle/BWD/sapreorg/senkbgrd/dbcrt.sql
BR0668I Warnings or errors occurred - you can continue to ignore them or go back to repeat the last action
BR0280I BRSPACE time stamp: 2014-03-13 15.28.32
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
The file it refers to Command output of '/oracle/BWD/102_64/bin/sqlplus /nolog < /oracle/BWD/sapreorg/.senkbgrd.spi': contains this :-
cat /oracle/BWD/sapreorg/.senkbgrd.spi
set linesize 250;
set pagesize 1000;
@/oracle/BWD/sapreorg/.senkbgrd.spu
host /usr/sap/BWD/SYS/exe/run/brtools -f delete /oracle/BWD/sapreorg/.senkbgrd.spu;
@/oracle/BWD/sapreorg/senkbgrd/dbcrt.sql
exit;
But the file it tries to run first @/oracle/BWD/sapreorg/.senkbgrd.spu doesn't exist at runtime it seems!
Anyone offer any help urgently as this system is now dead!
Thanks
CraigApologies, I resolved this myself. Was not obvious and no error logs indicated what the problem was.
Turns out that the initial configuration of tablespace data files was incorrect. Even though it matched the correct size it tried creating them as 1 file and subsequently ran out of file system space.
After realising this I changed the values and adjusted the tablespaces post creation.
Thanks anyway.
Cheers
Craig -
Want to create a knowledge module urgently
Hi all,
I am very new in ODI, i want to create an IKM for loading data into a target table. The logic i want to implement is that.
I have a target table say Event, it has three columns
Create table Event
Event_ID Number(10,0)
,Event_Num Varchar(255)
,Source Varchar(255)
Now i have a source table say Sales
Create table event
Sales_ID Varchar(255)
,Flag byteint
I want to load target table Event in a way that
Event
Event_ID is a Surrogate_Key preferably a sequence in the interface named say Seq_Event that is unique for every event_num
,Event_Num is Sales_id from source table say Event
,Source hard coded value say 'Hello'
The only complexity is that event_id should b generated once for each sales_id i.e it should be a one to one mapping.
My source and target technology is teradata, if u ppl r not familiar with teradata then u can help me in making a IKM for oracle i will convert it into teradata.
Your urgent help will be higly appreciated.
Thanks in advanceHere is the simple way to solve it.
Step 1. Create a variable EVENT_ID_SEQ and write syntax like this SELECT NVL(MAX(EVENT_ID),0) FROM TARGET_TABLE .
Step 2. Call the variable in the interface #EVENT_ID_SEQ+ROWNUM
step 3. Call the variable in refresh mode and interface in the package and run that.
This way every time you find the max (value) and using rownum gives the incrementing factor namely sequence number , Also make sure you map it to target and use Insert only and uncheck update for EVENT_ID column.
hope this solves your issue -
Dear buddies,
I am trying to create a table with a select statement.
The where clause is a bit complicated. And the table is also huge.. Its taking hours but not creating it as of now. Any hint that I could use to speed the select statement?
Please guide me.
Its a select * from ....
Thanks
Nithuser645399 wrote:
Dear buddies,
I am trying to create a table with a select statement.
The where clause is a bit complicated. And the table is also huge.. Its taking hours but not creating it as of now. Any hint that I could use to speed the select statement?
Please guide me.
Its a select * from ....
Thanks
NithThread: HOW TO: Post a SQL statement tuning request - template posting
HOW TO: Post a SQL statement tuning request - template posting -
Trying to play from an external drive created unexpected results
I have a Firelight drive that was full of music from another computer so I plugged it into my iMac then held down the option key while opening itunes.\
Choose Library didn't work so I clicked on Create a new Library in itunes.
I wanted to just play and burn the songs from the drive but they instead were imported to iTunes.
This was okay though, I saved the songs to dvd and deleted them.
What is troubling is this;
When I click on my hard drive on the desktop it lists all the music that was imported so I guess I really didn't delete anything when I deleted everything in iTunes.
Question 1 ) why did this happen.
I suppose I can go ahead and delete everything but....
Question 2) all that will be left on my iMac's drive after deleting the music is a Users file and a file with a curved arrow on the bottom left corner that says "Users Guide and Information"
I am sure that there were a lot more things listed on the iMac drive before.
Everything seems to be working fine and the Home,Applications,Documents,Music and Pictures icons are all unchanged.
One more thing.
The Firelight would not turn off or go to sleep even when I turned off the computer. Before it always went to sleep when the computer went to sleep.As a test, try removing all USB devices except a standard keyboard and mouse, including any USB hub. Connect the hard drive and iPod directly to the computer. See if that works.
If it works, try to figure out which USB device makes it NOT work, treating any USB hub as a device.
If it still does not work, try using the Restore button in iTunes to see of that helps. This will erase the iPod and restore it to original settings.
Maybe you are looking for
-
Hello, I'm having problems converting word documents to PDFs. I get the message - 'cannot find file specified'. After about 20-30 attempts, my PC decides to convert. Any ideas? Any help would be much appreicatiated, thanks in advance, Archonophios
-
I have a late 2011 machine. I keep the display icon in the menu bar but I can't find anything that will get the airplay icon to show. I'm tyring to connect to my Apply TV, which is on. I do have Air Display on the machine, not sure if that's messing
-
I had a computer hard drive crash, and lost everything, including music and video I had transferred to my I-Pad 2 from other sources. The upgrade to the current OS warns me that I will lose all non-Apple downloads when I upgrade. I have lots of non
-
MacBook Pro Late 2011 : Optical Disk Drive not working?
MacBook Pro Late 2011 : Optical Disk Drive not working? When i try to a put in a cd or dvd; it rejects it automatically within 10-15 seconds. I have resetted SMC and PRAM; no chages. Don't know what to do. Please help. Thank you.
-
Re: Cash flow statement&Funds flow statement
Hi team, I have a requirement regarding the cash flow and funds flow .Cleint wants to see the cash flow and funds flow statement and totall outsattnding and the total fund to be consumed.We didnt immplimented treasurey.without treasury how can w