Inter order
hy this is a raja sekhar,
i have a doubt in internal order. according to internal settlement, and eaxternal settlement.
according to external settlemnt.
if we post one fi document f-02, that document assainged in interal order. if we go for exernal settlement from internal order to g/l settlemtn(external settlemtn) it means once again the amount updated to the same account. i cant understand to this point. sap gurus pl help.
i didnot get anwser , i colosed
Similar Messages
-
hi,
In OSM 7, using OPG can you build an inter-order dependency?
say,
Order 1 has lineitem A mapped to fulfillment functions F1(A), F3(A,B)
Order 2 has lineitem B mapped to fulfillment functions F2(B), F3(A,B)
How do i implement a 'wait' condition so that the functon F3 is executed for the orders 1 and 2 (and line items A,B) together?
VJhi,
In OSM 7, using OPG can you build an inter-order dependency?
say,
Order 1 has lineitem A mapped to fulfillment functions F1(A), F3(A,B)
Order 2 has lineitem B mapped to fulfillment functions F2(B), F3(A,B)
How do i implement a 'wait' condition so that the functon F3 is executed for the orders 1 and 2 (and line items A,B) together?
VJ -
Dear All,
When we settle the internal order with KO8G the following entry is generated
611013 Expense (P&L) Account 28 453 960.08
731000 Transfer account 119 659 770.10 u2013
731100 Transfer account 64 478 186.98 u2013
284200 Asset under construction account 77 841 998.50
243500 Fixed Asset Account 77 841 998.50
I have two questions
1. I understand that the 611013 / 731000 / 731100 is under the cost element group PCE and the same is assiged under sttlement rule besides these accounts there are many other cost elements. My question is while settling how the system is posting only to these cost elements and why not to others under the PCE group.
2. 284200, 243500 are the assets accounts which is settled against the internal order. Please let me know how the system is splitting the amount in these two respective accounts
We are in 4.7 version of SAP
Please let me know
Thanks
ZHi Eli
When you post costs on internal order, they are posted on a cost element : By which transaction code we do this ? How system determines that we that cost post to a specific cost element ?
Thanks!
Z -
How to create Actual Posted CCtr field mandatory in Interal Order
Hi Experts,
Can anybody tell me how to make Actual Posted CCtr field mandatory in KO01 or while creating Internal Order ?
Experts help would be great on this.
Regards,
Sharvari Joshi.
Moderator: SImply define it as mandatory field in field status for the order type in question. Please, avoid asking basic questionsHi Tarang,
I think there is a transaction/screen variant maintained for that. Ask your ABAP team member to debug and check if there is any coding done to make it mandatory. There is no customizing for this one. There must be some code written to make it mandatory.
But you are correct, if you maintain the sort string in BOM, it gets copied on to the planned order, the reservation and the production order as well.
Regards,
Pradeep. -
Interal Order not flowing to Accounting doc from MM
Hi Gurus,
Need help on one of the issues with FI-MM integration.
1. We have created a MM movement type and posting is enabled to Cost center and Internal order with the movement type.
2. Cost center is automatically derived from OKB9, whereas Internal order is manually input in MB1A.
3. After posting through MB1A ( Goods issue) , the MM document shows both Cost center and Internal order.
4. But the Accounting document shows only "Cost center". "INTERNAL ORDER" is not showing up at all.
(PS : If i try posting to the same GL account directly from FI, it is showing up both "Cost center" and "Internal order")
Any clues on why the Internal order is not flowing to the FI from MM ?
Thanks
SivaHi,
Thanks for your reply. The issue is RESOLVED.
I checked the movement type thoroughly. The problem, is caused by the indicator " Check acct.***." on the initial screen of the Movement type.
i checked it and now it is working fine. both cost center and order are flowing to FI /CO as well.
The help on the field is as below:
Check account assignment
Indicates that the account assignment is checked.
Use
If this indicator is set, the system checks whether a G/L account or an
account assignment has been specified on the item screen. If so, the system
copies this data to the posting line.
If this indicator is not set, the system always uses the G/L accounts or
account assignments determined automatically.
Thanks again for your help.
Siva -
Hi Friends
Please give me all tables where internal order data are stored
regards
AvadhutHi,
there are two tables where internal order data are stored which are COAS and COBRB.
with regards,
Sudipto -
Hi there,
Is there any setting in the order type or somewhere in Internal order where I can say that Inter Order of this type will always be statistical?
Thanks and Regards,
DeepshikhaHi
The Internal Order (irrespective of order type setting) can be statistical by flagging in control tab....check the box for statistical order which holds costs for information only.
You cannot settle a statistical order or apply overhead to it.
If you set this indicator in a order type, it is used as a default value when you create new orders of the affected order type. You can change the indicator in the order, as long as
Regards
Dinabandhu -
Hi!
Can anyone please help me out as to whats the problem with the report thats causing in loss of records , presently when I combine the two internal tables and try extracting the records its not showing up all the records , its just taking the entries whicg match against the two tables and giving output. Please help me ot please.
Thanks
*& Include ZSD_RENTAL_REPTEST_T01
TABLES: vbak, vbap, wbrk, vbkd, fplt, fpla, zsdsched.
TYPE-POOLS: slis.
DATA: BEGIN OF itab OCCURS 0,
vbeln LIKE vbak-vbeln, "Sales Document
posnr LIKE vbap-posnr, "Item
ernam LIKE vbak-ernam, "Created by
erdat LIKE vbak-erdat, "Created on
audat LIKE vbak-audat, "Document Date
vbtyp LIKE vbak-vbtyp, "SD document category
auart LIKE vbak-auart, "Sales Document type
vkorg LIKE vbak-vkorg, "Sales Org
vtweg LIKE vbak-vtweg, "Distribution Channel
spart LIKE vbak-spart, "Division
vkbur LIKE vbak-vkbur, "Sales Office
guebg LIKE vbak-guebg, "Valid from date
gueen LIKE vbak-gueen, "Valid to date
kunnr LIKE vbak-kunnr, "Sold-to party
kunnrt LIKE kna1-name1, "Sold-to Name
kvgr4 LIKE vbak-kvgr4, "Territory
matnr LIKE vbap-matnr, "Material
arktx LIKE vbap-arktx, "Material Short Text
charg LIKE vbap-charg, "Batch
matkl LIKE vbap-matkl, "Material Group
pstyv LIKE vbap-pstyv, "Item Category
zmeng LIKE vbap-zmeng, "Target Quantity
zieme LIKE vbap-zieme, "Target Unit
kdmat LIKE vbap-kdmat, "Customer Material Number
werks LIKE vbap-werks, "Plant
lgort LIKE vbap-lgort, "Storage Location
vstel LIKE vbap-vstel, "Shipping Point
route LIKE vbap-route, "Route
netpr LIKE vbap-netpr, "Net Price
kpein LIKE vbap-kpein, "Condition Price Unit
kmein LIKE vbap-kmein, "Condition Unit
shkzg LIKE vbap-shkzg, "Returns Item
oidrc LIKE vbap-oidrc, "DRC Code
kunwe LIKE vbap-oid_ship, "Ship-to
kunwet LIKE kna1-name1, "Ship-to Name
zzwprofid LIKE vbap-zzwprofid, "Waste Profile ID
kunre LIKE wbrk-kunre, "Bill-to
kunret LIKE kna1-name1, "Bill-to Name
addl_schd LIKE icon-id, "Push Button For addl line
datab LIKE zsdsched-datab, "Valid-From Date
datbi LIKE zsdsched-datbi, "Valid To Date
zschdfreq LIKE zsdsched-zschdfreq, "Contract schedule frequency
frequency LIKE zsdsched-frequency, "Frequency
monday LIKE zsdsched-monday, "Mondays
tuesday LIKE zsdsched-tuesday, "Tuesdays
wednesday LIKE zsdsched-wednesday, "Wednesdays
thursday LIKE zsdsched-thursday, "Thursdays
friday LIKE zsdsched-friday, "Fridays
saturday LIKE zsdsched-saturday, "Saturdays
sunday LIKE zsdsched-sunday, "Sundays
dzieme LIKE zsdsched-dzieme, "Target quantity UoM
comments LIKE zsdsched-comments, "Comments
fplnr like vbkd-fplnr,
END OF itab.
data: begin of itab1 occurs 0,
fksaf LIKE fplt-fksaf, "Billing Status
afdat LIKE fplt-afdat, "Billing date
fakwr LIKE fplt-fakwr, "Value to be billed
fkdat LIKE fplt-fkdat, "Settelment Date
nfdat LIKE fplt-nfdat, "Settelment Date
fpart LIKE fpla-fpart, "Billing plan type
bedat LIKE fpla-bedat, "Start day for billing
endat LIKE fpla-endat, "End date for billing
horiz LIKE fpla-horiz, "Horizon in billing plan
fplnr LIKE fplt-fplnr,
vbeln LIKE vbak-vbeln,
end of itab1.
data : begin of gt_report occurs 0,
vbeln LIKE vbak-vbeln, "Sales Document
posnr LIKE vbap-posnr, "Item
ernam LIKE vbak-ernam, "Created by
erdat LIKE vbak-erdat, "Created on
audat LIKE vbak-audat, "Document Date
vbtyp LIKE vbak-vbtyp, "SD document category
auart LIKE vbak-auart, "Sales Document type
vkorg LIKE vbak-vkorg, "Sales Org
vtweg LIKE vbak-vtweg, "Distribution Channel
spart LIKE vbak-spart, "Division
vkbur LIKE vbak-vkbur, "Sales Office
guebg LIKE vbak-guebg, "Valid from date
gueen LIKE vbak-gueen, "Valid to date
kunnr LIKE vbak-kunnr, "Sold-to party
kunnrt LIKE kna1-name1, "Sold-to Name
kvgr4 LIKE vbak-kvgr4, "Territory
matnr LIKE vbap-matnr, "Material
arktx LIKE vbap-arktx, "Material Short Text
charg LIKE vbap-charg, "Batch
matkl LIKE vbap-matkl, "Material Group
pstyv LIKE vbap-pstyv, "Item Category
zmeng LIKE vbap-zmeng, "Target Quantity
zieme LIKE vbap-zieme, "Target Unit
kdmat LIKE vbap-kdmat, "Customer Material Number
werks LIKE vbap-werks, "Plant
lgort LIKE vbap-lgort, "Storage Location
vstel LIKE vbap-vstel, "Shipping Point
route LIKE vbap-route, "Route
netpr LIKE vbap-netpr, "Net Price
kpein LIKE vbap-kpein, "Condition Price Unit
kmein LIKE vbap-kmein, "Condition Unit
shkzg LIKE vbap-shkzg, "Returns Item
oidrc LIKE vbap-oidrc, "DRC Code
kunwe LIKE vbap-oid_ship, "Ship-to
aufnr LIKE vbap-aufnr, "Interal Order #
vkaus LIKE vbap-vkaus, "Usage
bezei LIKE tvlvt-bezei, "Usage Description
kunwet LIKE kna1-name1, "Ship-to Name
zzwprofid LIKE vbap-zzwprofid, "Waste Profile ID
kunre LIKE wbrk-kunre, "Bill-to
kunret LIKE kna1-name1, "Bill-to Name
addl_schd LIKE icon-id, "Push Button For addl line
datab LIKE zsdsched-datab, "Valid-From Date
datbi LIKE zsdsched-datbi, "Valid To Date
zschdfreq LIKE zsdsched-zschdfreq, "Contract schedule frequency
frequency LIKE zsdsched-frequency, "Frequency
monday LIKE zsdsched-monday, "Mondays
tuesday LIKE zsdsched-tuesday, "Tuesdays
wednesday LIKE zsdsched-wednesday, "Wednesdays
thursday LIKE zsdsched-thursday, "Thursdays
friday LIKE zsdsched-friday, "Fridays
saturday LIKE zsdsched-saturday, "Saturdays
sunday LIKE zsdsched-sunday, "Sundays
dzieme LIKE zsdsched-dzieme, "Target quantity UoM
comments LIKE zsdsched-comments, "Comments
fksaf LIKE fplt-fksaf, "Billing Status
afdat LIKE fplt-afdat, "Billing date
fakwr LIKE fplt-fakwr, "Value to be billed
fkdat LIKE fplt-fkdat, "Settelment Date
nfdat LIKE fplt-nfdat, "Settelment Date
fpart LIKE fpla-fpart, "Billing plan type
bedat LIKE fpla-bedat, "Start day for billing
endat LIKE fpla-endat, "End date for billing
horiz LIKE fpla-horiz, "Horizon in billing plan
END OF gt_report.
DATA: gs_report LIKE LINE OF gt_report,
gt_sched TYPE TABLE OF zsdsched,
gt_sched_tmp TYPE TABLE OF zsdsched,
gs_sched TYPE zsdsched,
gt_sel LIKE gt_report OCCURS 0,
gt_vbpa TYPE TABLE OF vbpa,
gs_vbpa TYPE vbpa,
gv_auart TYPE auart,
gv_counter TYPE i.
**-- ALV variables
DATA: ls_fieldcat TYPE slis_fieldcat_alv, "Field Catalog list
gt_fieldcat TYPE slis_t_fieldcat_alv, "Field Catalog
ls_sort TYPE slis_sortinfo_alv, "Sorting list
gt_sort TYPE slis_t_sortinfo_alv, "Sort
gs_layout TYPE slis_layout_alv, "List Layout
gs_variant TYPE disvariant, "Display Variant
gv_repid LIKE sy-repid,
gv_save(1) TYPE c,
gv_exit(1) TYPE c.
CONSTANTS: gc_a TYPE c VALUE 'A',
gc_g TYPE c VALUE 'G',
gc_re(2) TYPE c VALUE 'RE'.
* Screen-control Variables
CONTROLS:
tctrl_sched TYPE TABLEVIEW USING SCREEN 1010. " Schedule lines.
*& Report ZSD_RENTAL_REPTEST
REPORT ZSD_RENTAL_REPTEST.
*& Report ZSD_RENTAL_REPTEST
INCLUDE zsd_rental_reptest_t01.
* Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK m1 WITH FRAME TITLE text-t01.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t02.
SELECT-OPTIONS: s_vkorg FOR vbak-vkorg MEMORY ID vko,
s_vtweg FOR vbak-vtweg MEMORY ID vtw,
s_spart FOR vbak-spart MEMORY ID spa,
s_vkbur FOR vbak-vkbur MEMORY ID vkb.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
s_erdat FOR vbak-erdat,
s_ernam FOR vbak-ernam,
s_guebg FOR vbak-guebg,
s_gueen FOR vbak-gueen,
s_fplnr for fplt-fplnr,
s_auart FOR gv_auart MEMORY ID vta
MATCHCODE OBJECT h_vakz.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS:
s_kunnr FOR vbak-kunnr,
s_kunwe FOR vbap-oid_ship,
s_kunre FOR wbrk-kunre.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t03.
SELECT-OPTIONS: s_werks FOR vbap-werks MEMORY ID wrk,
s_lgort FOR vbap-lgort MEMORY ID lag,
s_vstel FOR vbap-vstel MEMORY ID vst,
s_route for vbap-route,
s_matnr FOR vbap-matnr.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t04.
PARAMETERS: p_varia TYPE disvariant-variant MEMORY ID wrk,
p_all AS CHECKBOX DEFAULT 'X',
p_group AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK b3.
SELECTION-SCREEN END OF BLOCK m1.
* Start of Selection
START-OF-SELECTION.
PERFORM get_data.
* Display ALV
END-OF-SELECTION.
IF gt_report[] IS INITIAL.
MESSAGE s419(brain).
ELSE.
PERFORM create_alv.
ENDIF.
* AT SELECTION-SCREEN ON VALUE-REQUEST *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_varia.
PERFORM f01_f4_variant CHANGING p_varia.
*& Form get_data
* text
FORM get_data .
data: v_tabix type sy-tabix.
* Select the appropriate contract data.
SELECT a~vbeln a~erdat a~ernam a~audat a~vbtyp a~auart a~vkorg
a~vtweg a~spart a~vkbur a~guebg a~gueen a~kunnr a~kvgr4
b~posnr b~matnr b~charg b~matkl b~arktx b~pstyv b~zmeng
b~zieme b~kdmat b~werks b~lgort b~vstel b~netpr b~kpein
b~kmein b~shkzg b~oid_extbol b~oid_miscdl b~oidrc b~oid_ship AS kunwe
b~zzwprofid c~datbi c~datab b~route d~fplnr
INTO CORRESPONDING FIELDS OF TABLE itab
FROM vbak AS a
INNER JOIN vbap AS b ON a~vbeln = b~vbeln
inner join vbkd as d on b~vbeln = d~vbeln
LEFT OUTER JOIN zsdsched AS c ON b~vbeln = c~vbeln AND
b~posnr = c~posnr
WHERE a~vbeln IN s_vbeln
AND a~erdat IN s_erdat
AND a~vbtyp = gc_g
AND a~ernam IN s_ernam
AND a~vkorg IN s_vkorg
AND a~vtweg IN s_vtweg
AND a~spart IN s_spart
AND a~vkbur IN s_vkbur
AND a~guebg IN s_guebg
AND a~gueen IN s_gueen
AND a~auart IN s_auart
AND a~kunnr IN s_kunnr
AND b~oid_ship IN s_kunwe
AND b~werks IN s_werks
AND b~lgort IN s_lgort
AND b~vstel IN s_vstel
and b~route in s_route
AND b~matnr IN s_matnr.
SORT itab.
select e~fkdat e~nfdat e~fakwr e~fksaf e~afdat
f~fpart f~bedat f~endat f~horiz g~vbeln
INTO CORRESPONDING FIELDS OF TABLE itab1
FROM fplt AS e
INNER JOIN fpla AS f ON f~fplnr = e~fplnr
inner join vbkd as g on f~fplnr = g~fplnr
where g~vbeln in s_vbeln and
e~fplnr in s_fplnr.
sort itab1.
loop at itab.
read table itab1 with key vbeln = itab-vbeln.
if sy-subrc = 0.
move sy-tabix to v_tabix.
move-corresponding itab to gt_report.
move-corresponding itab1 to gt_report.
append gt_report.
delete itab1 index v_tabix.
endif.
endloop.
loop at itab1.
move-corresponding itab1 to gt_report.
append gt_report.
endloop.
IF NOT itab[] IS INITIAL.
* Get Bill-to Party's for Item Lines
SELECT vbeln posnr parvw kunnr INTO CORRESPONDING FIELDS OF TABLE gt_vbpa
FROM vbpa
FOR ALL ENTRIES IN itab
WHERE vbeln = itab-vbeln
AND parvw = gc_re.
* Select the remaining records from the ZSDSCHED Table.
SELECT * FROM zsdsched
INTO TABLE gt_sched
FOR ALL ENTRIES IN itab
WHERE vbeln = itab-vbeln
AND posnr = itab-posnr.
SORT gt_sched.
ENDIF.
* Loop through captured data for additional information
* LOOP AT itab INTO gs_report.
LOOP AT itab.
* Find the bill-to party
READ TABLE gt_vbpa INTO gs_vbpa WITH KEY vbeln = gs_report-vbeln
posnr = gs_report-posnr
parvw = gc_re.
IF sy-subrc 0.
READ TABLE gt_vbpa INTO gs_vbpa WITH KEY vbeln = gs_report-vbeln
parvw = gc_re.
CHECK sy-subrc = 0 AND gs_vbpa-kunnr IN s_kunre.
ELSE.
CHECK gs_vbpa-kunnr IN s_kunre.
ENDIF.
gs_report-kunre = gs_vbpa-kunnr.
* Get the Customer's Name
gs_report-kunnrt = zcl_kna1=>get_name1( itp_kunnr = gs_report-kunnr ).
gs_report-kunwet = zcl_kna1=>get_name1( itp_kunnr = gs_report-kunwe ).
gs_report-kunret = zcl_kna1=>get_name1( itp_kunnr = gs_report-kunre ).
* Get the scheduling lines for the item line.
CLEAR gv_counter.
IF NOT p_group IS INITIAL.
* If we are grouping the lines add the icon button.
LOOP AT gt_sched INTO gs_sched WHERE vbeln = gs_report-vbeln
AND posnr = gs_report-posnr.
IF gv_counter > 0.
gs_report-addl_schd = '@1E@'.
CONTINUE.
ENDIF.
MOVE-CORRESPONDING gs_sched TO gs_report.
ADD 1 TO gv_counter.
ENDLOOP.
ELSE.
* Otherwise get the rest of the schedule information
READ TABLE gt_sched INTO gs_sched
WITH KEY vbeln = gs_report-vbeln
posnr = gs_report-posnr
datbi = gs_report-datbi
datab = gs_report-datab.
IF sy-subrc = 0.
MOVE-CORRESPONDING gs_sched TO gs_report.
ENDIF.
ENDIF.
APPEND gs_report TO gt_report.
ENDLOOP.
* Remove any duplicates from the reporting table
DELETE ADJACENT DUPLICATES FROM gt_report.
* If Show all records is initial, delete non-scheduled lines (ex. Sub-items)
IF p_all IS INITIAL.
DELETE gt_report WHERE datbi = 0
AND datab = 0.
ENDIF.
ENDFORM. " get_data
*& Form create_alv
* text
FORM create_alv .
PERFORM initialize_fieldcat USING gt_fieldcat[].
PERFORM populate_layout CHANGING gs_layout
gs_variant.
PERFORM populate_sort USING gt_sort[].
PERFORM display_alv_report.
ENDFORM. " create_alv
*& Form initialize_fieldcat
* Get and enhance the field catalog data
* -->L_FIELDCAT[] text
FORM initialize_fieldcat USING l_fieldcat TYPE slis_t_fieldcat_alv.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = 'ZSD_RENTAL_REPTEST'(002)
i_internal_tabname = 'GT_REPORT'
i_inclname = 'ZSD_RENTAL_REPTEST_T01'(001)
CHANGING
ct_fieldcat = l_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'VBELN'.
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Contract'.
ls_fieldcat-hotspot = 'X'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'KUNNRT'.
ls_fieldcat-seltext_s =
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Sold-to Name'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'KUNWET'.
ls_fieldcat-seltext_s =
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Ship-to Name'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'KUNRET'.
ls_fieldcat-seltext_s =
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Bill-to Name'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'ADDL_SCHD'.
IF NOT p_group IS INITIAL.
ls_fieldcat-seltext_s = 'Schd'.
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Additional Scheduling Lines'.
ls_fieldcat-icon = 'X'.
CLEAR: ls_fieldcat-key,
ls_fieldcat-ref_fieldname,
ls_fieldcat-ref_tabname,
ls_fieldcat-reptext_ddic,
ls_fieldcat-ddic_outputlen.
ls_fieldcat-hotspot = 'X'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
ELSE.
DELETE l_fieldcat INDEX sy-tabix.
ENDIF.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'DATAB'.
ls_fieldcat-seltext_s = 'Schd From'.
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Sched. From Date'.
CLEAR: ls_fieldcat-key.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'DATBI'.
ls_fieldcat-seltext_s = 'Schd To'.
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Sched. To Date'.
CLEAR: ls_fieldcat-key.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
ENDFORM. " initialize_fieldcat
*& Form populate_layout
* text
* <--GS_LAYOUT
* <--GS_VARIANT
FORM populate_layout CHANGING gs_layout TYPE slis_layout_alv
gs_variant TYPE disvariant.
gs_layout-colwidth_optimize = 'X'.
gs_layout-allow_switch_to_list = 'X'.
gs_layout-zebra = 'X'.
gs_variant-report = sy-repid.
ENDFORM. " populate_layout
*& Form populate_sort
* text
* -->l_SORT[] text
FORM populate_sort USING l_sort TYPE slis_t_sortinfo_alv.
ENDFORM. " populate_sort
*& Form display_alv_report
FORM display_alv_report .
gv_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE = ' '
i_callback_program = gv_repid
* I_CALLBACK_PF_STATUS_SET = ' '
i_callback_user_command = 'USER_COMMAND'
i_structure_name = 'gt_report'
is_layout = gs_layout
it_fieldcat = gt_fieldcat
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
it_sort = gt_sort
* IT_FILTER =
* IS_SEL_HIDE =
i_default = 'X'
i_save = gc_a
is_variant = gs_variant
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_report
EXCEPTIONS
program_error = 1
OTHERS = 2
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. " display_alv_report
*& Form f01_f4_variant
* Get the Layout variant for the user.
FORM f01_f4_variant CHANGING c_variant TYPE disvariant-variant.
DATA: ls_variant TYPE disvariant,
l_exit TYPE char1.
ls_variant-report = sy-repid.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = ls_variant
i_save = 'A'
* it_default_fieldcat =
IMPORTING
e_exit = l_exit
es_variant = ls_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 2.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
IF l_exit EQ space.
c_variant = ls_variant-variant.
ENDIF.
ENDIF.
ENDFORM. " f01_f4_variant
* FORM USER_COMMAND *
* --> R_UCOMM *
* --> RS_SELFIELD *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
* Check function code
CASE r_ucomm.
WHEN '&IC1'.
READ TABLE gt_report INTO gs_report INDEX rs_selfield-tabindex.
CHECK sy-subrc = 0.
CASE rs_selfield-fieldname.
WHEN 'VBELN'.
* Set parameter ID for transaction screen field
CHECK NOT gs_report-vbeln IS INITIAL.
SET PARAMETER ID 'KTN' FIELD gs_report-vbeln.
CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
WHEN 'ADDL_SCHD'.
CHECK NOT gs_report-addl_schd IS INITIAL.
REFRESH gt_sched_tmp.
LOOP AT gt_sched INTO gs_sched
WHERE vbeln = gs_report-vbeln
AND posnr = gs_report-posnr.
APPEND gs_sched TO gt_sched_tmp.
ENDLOOP.
CHECK sy-subrc = 0.
CALL SCREEN '1010' STARTING AT 5 5.
ENDCASE.
ENDCASE.
ENDFORM. "user_command
*& Module STATUS_1010 OUTPUT
* text
MODULE status_1010 OUTPUT.
SET PF-STATUS 'MAIN_1010'.
SET TITLEBAR '1010' WITH gs_report-vbeln gs_report-posnr.
ENDMODULE. " STATUS_1010 OUTPUT
*& Module USER_COMMAND_1010 INPUT
* text
MODULE user_command_1010 INPUT.
CASE sy-ucomm.
WHEN 'BACK' OR 'CANC'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_1010 INPUTHi - in this section --
if sy-subrc = 0.
move sy-tabix to v_tabix.
move-corresponding itab to gt_report.
move-corresponding itab1 to gt_report.
append gt_report.
delete itab1 index v_tabix.
endif.
.. the append to gt_report should not be inside the if -
Problem in Creating Service Entry Sheet
Hi,
We have a Service PO. When we are creating Service Entry Sheet for it, showing error msg -
"Goods receipt for purch. order" is not allowed (ORD 10000722)
What should be issue...Hi,
I am very sure that PO is created with the account assignment -F (Internal Order) , So provided IO number in PO under account assigment tab is already locked by your accounts/commercial team.
Please check if the Interal Order is blocked ,you need to activate IO again from KO02 or either change your IO accordingly.
Hope this will resolve your issue.
Thanks & Regards,
Sandesh Sawant -
Hi all
I have an interview on below topics pls calrify
1. Project objective is to propose new SD pricing condition (it will hit CO
Module),
2. carry out blueprint workshop discussion,
3. Configuration on CO module,
4. Prepare unit test scripts & carry out unit test by himself/herself,
5. Prepare integration test script and carry out integration test with
The rest of the team,
6. Prepare UAT scripts and guide the user in doing uat,
7. Prepare the training document and conduct the training on CO,
8.Master data conversion,
9.After live support and 1st month end closing support.
Thanks in advanceHi
I will answer some quesstion as given by U.
3.Configuration of CO moudle,
Any project which is implemented CO, we have 3 components in that,
a) Inter Order b) Cost center & cost element b) Profit center
and some companies implement Product costing & COPA.
4.Prepare unit test scripts & carry out unit test by himself/herself,
Preparing unit testing, means when U are doing any configuration or developing any report first from our side we will test that, so this is called Unit Testing. The consultant him self do this testing by posting any entry.
5. Prepare integration test script and carry out integration test with
The rest of the team,
FI-MM and FI-SD so if we do the integreation as given, so this is called integreation testing where two modules are involved, so here FI and MM or SD consultant will sit and test by posting the entries. Once it is testing fine we have to prepare the documention for that.
6. Prepare UAT scripts and guide the user in doing uat,
Finally it will be send to UAT (User Acceptance Test) The user will test the configuration or resport by posting the entries and checks from different angles that the system is acting fine.
7. Prepare the training document and conduct the training on CO,
We have to prepare the end user training manual for the end user. In this we will describe with the screen shots and process how to enter the informaton in SAP. and what will be output.
Regards,
Venkat -
PP/DS Optimizer u2013 Planning for HALB and FERT in sequence with Optimizer
We are using PP/DS optimizer to plan the two level BOM items. FERT and HALB planned orders are converted from SNP. ROH products are not planned in APO. PPDS is not used to create or delete orders. Only scheduling is done by optimizer. Only one mode exists in PDS. Setup matrix is used for both HALB and FERT.
The requirement is to schedule HALB products in time on their own resources in time for multiple FERT orders. The optimizer does not appear to do this consistently. We use the following steps in planning run:
1. Stage numbering.
2. Schedule orders at the earliest with infinite planning. This is done to ensure there are no blank spaces at the beginning of the planning interval on resources after optimization. The result is all orders starting at the same time with multiple loading on resources.
3. Optimization with weightage for makespan and setup time. Key settings are: Forward planning, finite resource loading, pegging relevance, considering inter order relationships. All HALB and FERT resources are selected in this step. (Delays are not important within the Optimization interval and there are no stocks of HALB except when there are time gaps between HALB Orders and FERT orders. HALB order is finished earier than FERT order start.)
The question is: Is Optimizer capable of scheduling HALB and FERT on their own resources but at the right iner order timings while optimizing the setup time. Are there any key setting to watch out for in Optimization profile or Strategy profile to enable this?
If this is not possible, we will have optimize only at one BOM level and then use top down or bottom up heuristics to plan the other level.HI TemYogi,
Assumptions:
1. One PDS each for HALB & FERT level with one resource
2. HALB to be scheduled first. Based on HALB schedule, FERT has to be scheduled
To achieve this
Maintain "Maximum Lateness of a Receipt" in Pegging tab in Demand tab in Product master
in FERT PDS maintain the consumption type of HALB components as continious/ start/end of the the operation
use the planning direction as backward and reverse in DS strategy profile
Use schedule mode as Insert operation / insert operation and close gaps until end in DS strategy profile
Fix all the previous run orders in DS board for HALB and then Schedule all the HALB orders considering u r setups through optimization
Now run the optimizer for FERT
Regards
Sravan maturu
+91 9392602314 -
Wrong version of an entity bean object being updated
We are having a problem with an entity bean that uses bean managed persistence. The "order" entity bean has
been used as part of our Order Routing System for the last 2 years with no problems. The entity bean is
accessed via calls from a "Order Manager" session bean. No change has been done to the entity bean but the
frequency of calls from the session bean to update the entity bean have increased significantly.
The "order" entity bean wraps an Order object that contains order properties (i.e. id, quantity, price,
version, etc). The entity bean has a "void setOrder(Order param)" function that writes the Order to a database
and a "Order getOrder()" function that clones and returns the internal Order object. The "ejbLoad()" function
reads the Order object from the database and the "ejbStore()" function is not implemented.
The "OrderEntityPK ejbFindByPrimaryKey()" function checks if the order entity primary key (an "int") exists
on the database.
We are using the SilverStream 3.5 application server as our EJB container. According to the SilverStream manual
it does not maintain a pool of idle/unused entity beans, instead it instantiates beans as requested.
Our problem is:
1) The wrong version of the entity object is sometimes being updated (i.e. an old instance of the order entity is being
picked up and updated on the database).
2) We sometimes get a TransactionRequired exception thrown when we have concurrent updates to two different
objects of the entity bean.
Any idea as to what our problem could be?
Thanks in advance for your help,
The following are the main code snippets:
Original Code
Session Bean A
Method 1 --- gets entity Bean B and calls a method on a different object passing this entity bean
in as a parameter to enable a method on this bean to be called.
EntityBean lOrderEntity = findOrderEntity(callerUnixLogin, currOrderId);
currOrder = lOrderEntity.getOrder();
//Logic to update the currOrder object via a method call.
persistManager.persistOrder(lOrderEntity, callerUnixLogin, currOrder, psTransactionType);
persistManager.persistOrder Method:
lOrderEntity.setOrder(callerUnixLogin, order);
findOrderEntity method:
OrderEntity lOrderEntity = null;
OrderEntityBeanPK orderPK = new OrderEntityBeanPK(orderId);
try
if (orderEntityHome == null)
connectToOrderEntityBean(callerUnixLogin);
lOrderEntity = orderEntityHome.findByPrimaryKey(orderPK);
... etc
Current Code
Session Bean C
Method 2 ---- calls method 1 in Session Bean A
Calls to method 2 above happens in quick succession.
OrderEntityBean class
... important methods ...
private Order order = null;
public OrderEntityBeanPK ejbFindByPrimaryKey(OrderEntityBeanPK primaryKey)
throws FinderException, RemoteException, DBOException
try
orderObjectManager.orderIdExists(primaryKey.orderId);
catch (OMOrderValidationException exc)
throw new FinderException(exc.getMessage());
return primaryKey;
public void setOrder(String userUnixLogin, Order newOrder)
throws EJBException, RemoteException, DBOException, OMFormattingException, OMOrderValidationException
callerUnixLogin = userUnixLogin;
int version = newOrder.getOrderVersion().intValue();
if (order.getOrderVersion().intValue() == version)
order = null;
order = newOrder;
Integer newVersion = new Integer(version + 1);
order.setOrderVersion(newVersion);
newVersion = null;
order.setSysUser(callerUnixLogin);
orderObjectManager.updateOrder(callerUnixLogin, order);
else
Debug.Print(userUnixLogin, "OrderEntityBean.setOrder: wrong version number for order " + newOrder.getOrdId() +
": expected " + order.getOrderVersion() + " and got " + newOrder.getOrderVersion(), 0);
throw new OMOrderValidationException("wrongVersion", order, order.getOrdId(), IName.Order.VERSION, newOrder.getOrderVersion());
public Order getOrder()
throws EJBException, RemoteException
return ((Order)order.clone());
The following transactions exists for the entity bean ...
Required:
create and setOrder methods
Not Supported
findByPrimary and getOrder methods"The entity bean has a "void setOrder(Order param)" function that writes the Order to a database"
This functionality should be performed in the ejbStore method().
"a "Order getOrder()" function that clones and returns the internal Order object."
Sounds reasonable, except for the cloning part.
"The "ejbLoad()" function reads the Order object from the database"
Cool.
""ejbStore()" function is not implemented."
Whoops. Looks like your setOrder method is doing too much. It should do the inverse of getOrder (namely, setting the interal Order object), nothing more. Defer the persistence code to the ejbStore method.
"According to the SilverStream manual it does not maintain a pool of idle/unused entity beans, instead it instantiates beans as requested."
Manual? What's that? Assuming that is correct, better hope you don't ever get a high load. You might wanna look into JBoss.
"2) We sometimes get a TransactionRequired exception thrown when we have concurrent updates to two different objects of the entity bean."
How can you have concurrent access to two different objects?? Concurrency is inherently applicable to only one object.
In summary:
Write your beans properly, ejbLoad populates the bean with data, ejbStore persists the bean's data.
Get a better (and possibly free) appserver. -
SRM Error - Budget Almost Exhausted - Availability Control
Hi All,
We are trying to use the Internal Order number(Real Order) in the shopping cart which has
estimated costs value of 25000 USD in KO02 and budget assignment of 25000 USD in KO22 and
we have Tolerance limit if the above Internal Order number is used in range 90%-129% it should
show warning and if it is used above 130% it should show ERROR.
While creating Purchase Order in SAP ECC 5.0 with the above the Interal Order number the system
works as expected but the ISSUE is when we try to use the same Internal Order in SRM 5.0 (classic scenario)
while creating shopping cart for value above between 22,500 USD to 25,000 USD (which is around 90%-129% of total value
25000 USD), the SRM system is throwing 2 hard ERROR messages(instead of Warning messages).
Error Messages are :1. Availability Control
2. Item XXX Order XXXXXXXX Budget Almost Exhausted
Experts any hints to resolve this issue is highly appreciated.
Thanks in Advance
NoorSorry, there was couple of typo in the previous post.
I tried with both the OSS notes but it is not working.
I think the notes is specific to : if (I-information) messages are showing as (E-Error) then it will fix it seems but
in my case SAP Internal Order warnings and budget exceeded (W-warning) messages are showing up as E-Error messages
in SRM. The generic message BBP_PD 047 is being used to show the error messages(In an effort to fix this i also
tried changing the SPRO>SRM Server> CA basic settings>influence message control>BBP_PD 047 (standard message is W) but in our system it is forced to be E-Error) I tried changing it to Standard message(which is W-warning). Unfortunately
since it is generic message it affects other messages too(for example if I enter wrong cost center the message appears as W-Warning(instead of hard error).
My need is to display the Internal Order warnings as W-Warning in SRM(As shown in SAP) instead of E-Error.
Thanks in advance for your valuable thoughts and contributions
Any clue to resolve this issue is highly appreciated
Thanks
Noor -
Hi all
We have following scnerio
Our capital purchase cycle is as follow
1)Make CER(capex expens note) & get approved by president
2)With reference to CER we make internal order , budget & PO with reference to inter order
Now our requirement is to link CER to internal order so that in internal order CER number will come.
PL. send me the suggestion how will we map this ?To get quick ans. also post this issue in FI forum
-
hi,
if at the same time there is posting to more than 1 co object, for example to cost center and copa or other combination of cost object, how do i know to which co object is real posting and which co object is just statistical?
thanksHi,
When we post to Internal Orders and Cost Centers, then Cost Centers will be taken as statistical if Inter Order is a Real Order.
in the case where u mentioned Cost center and Profit Center, Profit center is always a statistical posting irrespective of the other cost objects.
So Not to compare PC with CC.
if simulteneous postings are made to Cost Center and either COPA or Internal Order (real), COPA Segment or Internal Order will have superceding effect than Cost Center
I hope you got the concept.
Please award points suitably if you are satisfied with the answer. else please let me know for further clarifications
Best Regards
Surya
Maybe you are looking for
-
Creating a stationary pop up video on a web page- Help
I am working on a web site for my company and we specialize in creating a lot of internet videos. I really want to create an effect where one of our videos can pop up on top of our web page with a transparent background and play through without movin
-
When i try to open it. it states that there are some missiing files that are required and it cant open but i should reinstall it. Though every time i try yo reinstall it it doesnt work, it says itunes will open automatically but it doesnt i dont know
-
How does it work? SuperDrive with double-layer support
Hi, Can anyone help me? I own a macbook with SuperDrive with double-layer support. I want to try to burn a dvd with the dual layer, how does this work? Which applications do i need? I have been searching for info on this subject but havent succeeded
-
Error: Expected a field name after '.' operator
I'm trying to use a "for" loop to add an "onRelease" handler to my symbols using the following code, but I get error that says: Expected a field name after '.' operator. Any idea what's wrong and how I can fix this? for (i=1; i<10; i++) { thumbs_mc.t
-
My audio interface experiences so far PLUS my new problems HELP
Ok im new. Ive been a Logic/ mainstage user for just about a year now to a fair amount o success. Running endless tracks in Logic with multiple process going on and quite cpu hungry maintstage concerts All using the Line 6 UX2 for desktop, UX1 for Li