WANTED: Function Module (Product Allocation Planning Hierarchy Upload Tool)
Hi,
I would like to seek assistance in utilizing the <b>right function module</b> in uploading Product Allocation Planning Hierarchy to MC62.
I've tried direct table update and BDC but to no avial.
Points will be rewarded.
Thanks in advance
Hi,
I'm having trouble using the FM 'MCP_GET_HIERARCHY'.
CALL FUNCTION 'MCP_GET_HIERARCHY'
EXPORTING
i_gstru =
IMPORTING
RETURN =
TABLES
t_filter =
t_char_values = .
What do I put in i_gstru, t_filter, and t_char_values?
I'm very new with this.
Thanks in advance for the help.
Similar Messages
-
Product Allocation: Planning Hierarchy
hello, friends.
in tests, product allocation is performing as required. it is now time to set the data in PRD.
the hierarchy involves Material, Plant and Sold-to. all-in-all, this translates to a large number of nodes (in the thousands, due to the many possible combinations of the 3 levels). it is not practical to do MC61/MC62 manually.
is there any BAPI that would allow uploading of the planning hierarchy? can the database table accomodate potentially 1 million line items in the table SxxxE?
thanks.
jyHello Jonathan
I am not aware of any BADIs, BAPIs to do this. But if there are programs for deleting, regeneration (RMC**, MC**), so there could be programs for creation/generation also. So check the OSS notes blow.
I am also wondering if you could use SE16 since an infostructure is essentially a table and SAP kind of alluded to it in OSS note 674719 - Planning hierarchy: Highest level is deleted.
Also may be you could use Copy From functionality available within the Transactions MC61 and MC62?
I beleive the recommended largest size of the database is 500, 000 ( 1/2 Million) entries. Take a look at OSS note 631323 which talks about this and provides some useful tips. Also check out the notes mentioned within.
631323 - Planning hierarchy: Known problems
624731 - MC62: Bad performance with large hierarchies
Hope this helps.
ps: did my reply help you in resolving the retrobilling issue you posted on August 3rd? -
Any function module to change planning hierarchy (tcode: MC92)?
I need to change planning hierarchy for product alloction.
I have tried to do it via transaction recorder, but some screens are missing when I tried to record it.
Could any one please advise if there is any function module that can serve the same purpose? Thanks.Thanks Bhanu for ur quick reply.
Is that enough to change the technical name in the table RSZCOMPDIR.
Let me give some more information, idea is to change the technical name of all the queries present in a system based on a new naming conventions.
Eg.
Change all the technical name of queries ZQSAP to ZQXYZ.
If there is function module which allows to change the technical name of the queries that not only updates the table RSZCOMPDIR but also all the interlinked tables. -
Function module for calculating planned and actual cost of production order
Hi ,
Do we have any standard function module for calculating planned and actual cost for production order?
i need to implement this in a Z-report.
Thanks
SriniHi,
try below function module
CRMCO_GET_PLAN_ACTUAL_COSTS
CO_IH_GET_PLANNED_COSTS_TOTAL
Regards,
Sankaran -
Function module to change price of uploaded product
Hi Gurus,
is there any function module to change price of uploaded product info in crm
regards
Naveen
Edited by: Naveen Kumar on Feb 13, 2009 12:05 PMcondition record can modify using FM 'CNFPR_RECORD_PUT'
-
Function Modules for Actual, Plan, Budget Cost over internal orders
Dear All,
I need a function module for getting the Actual, Plan, Budget Costs for the internal orders assigned.
I want to fetch the cost related to internal order which is assigned to project C projects in PLM.hai tehre are no such funcion moduels
u have to select from bpge and bpja tables
and sum up them
afzal -
Function Module to get planned Quantity from posting date
hi,
i need one function module which takes plant and posting date date as an input parameter and get the Planned quantity for that range of that ...i dont want to fetch it from material since the report is run for the whole plant(werks).so it has got a lot of data entries so i need a function for that...
is there any function module which will fetch this data ...
Edited by: sonal musale on Jun 23, 2008 3:53 PMHi,
I have also the same problem. Any solution you have for this one?
Thanks,
Raymond -
Is there a Function module to get customer hierarchy data?
Howdy,
I'm writing a report where the user can, on the selection screen, enter a customer number or a hierarchy node and then the program has to get all the higher level nodes and and lower level nodes for the selected Sales area.
eg. for the following hierarchy:
A
->B
--|-> D
--|-> E
-> C
---|-> F
---|-> G
if node b was selected it would pull back:
KUNNR HKUNNR
A blank
B A
C A
D B
E B
F C
G C
Anyone know if there is a Function module that can do this?
ThanksHi Victoria,
even i was using the same FM "RSNDI_SHIE_STRUCTURE_GET3"
my code goes like this...
i am passing hierarchy name and node name...this is for cost element hierarchy.
please check the code and tell if i am missing anything.
o/p i am getting is all 0's.
report ztest5.
tables : ZREPCODMAP.
data: itab type standard table of ZREPCODMAP with header line.
TYPES: BEGIN OF STRUC,
RESULT type RSSH_S_NODEBYNAMEWOL,
ZREPCODMAP-REPDSELM,
END OF STRUC.
DATA: itab1 type standard table of struc with header line.
data: w_hiesel like RSNDI_S_HIESEL.
w_hiesel = '1000KES'.
*data: w_nodebyname type RSNDI_T_NODENM.
data: tab type standard table of RSNDI_S_HTAB with header line.
data: lsubrc type SY-SUBRC.
select * from ZREPCODMAP into table itab where PROFIT_CTR <> ' '.
loop at itab.
concatenate itab-CO_AREA itab-REPDSELM INTO itab1-RESULT.
*write: itab1.
break-point.
CALL FUNCTION 'RSNDI_SHIE_STRUCTURE_GET3'
EXPORTING
I_S_HIEKEY =
i_s_hiesel = w_hiesel
i_s_subtreesel = itab1-result
I_T_NODENAME =
I_NO_NODENM_TABLE = w_flag
IMPORTING
E_S_HIEDIR =
e_subrc = lsubrc
TABLES
E_T_HIEDIRT =
e_t_hierstruc = tab.
E_T_MHIERNODE =
E_T_THIERNODE =
E_T_HIERINTVL =
E_T_NODENAMES = tab.
E_T_NODEATTR =
E_T_LEVEL =
E_T_MESSAGE =
write: tab.
*write: lsubrc.
endloop.
Thanks & Regards,
Vijaya -
Function Module to find Planned Costs and Actual Costs against WBS element
Dear All,
We have a requirement where we need to find out the Planned Costs and Actual Costs booked against a WBS element, in a year. The costs can be against all the plan versions or on individual plan version.
Are there any function modules to retrieve this value?
Thanks for the help.
Warm Regards,
JudithHi,
The easiest way would be to get the OBJNR for all WBS elements from PRPS and look up RPSCO and summarize for Value type (RPSCO-WRTTP) 1 for planned cost and 4 for Actual cost.
Please let me know if this helps.
jibat -
Function Module Production order created via Variant Configuration conditio
Hi,
I am looking for a function module which can provide me with the following information.
the component selected in a production order and the corresponding VC condition which forced this selection in the production order.
Any help appreciated.
Thanks!Hello ,
There is no proper FM or BAPI that can do the way it is used that all the components are first selected buy FM get_stpo and then configured via FM cubx_configure_object or CUBX_CONFIGURE_STPOB. The ones that fulfill the condition gets deleted. For the Selection condition you can look at table STPO-KNOBJ.
Generally for configuration you should use FM vc_get_configuration_ibase..
Also for SO FM CUKO_ddb_has_components reads from the database but you can check if it can work for PO
Thanks
Amber -
respected sdn's,
i had requirement of functional module for conversion of created date of vbrk-fkdat into format of 28th november 2006 and country to full name for example in to india like that .
with regards,
vikramreddy t.For ur case i dont suppose there is a single Fm to get the job but u can create a logic as suggested .
you want this literal after date also .
28<b>th</b>
22<b>nd</b>
1<b>st</b>
3<b>rd</b>
how are u going about this ?
As suggested the logic from table T247 will work for u .
write a case logic as to supplement the literal for the same
case date.
when 1 -- as 'st'
when 2 - as 'nd'
when 3 - as 'rd'
when 4 or 5 or 6 ... as 'th'.
like that .
how are u fetching the country name ? what is your input or avaliable parameters ?
regards,
vijay -
Initializing Function Module used in Planning function in BPS0
Hi Everybody,
I have been assigned to create a function module which will be used for initialization purpose in BPS planning function. Whenever the user will change values of variable, even if user sets a data for a particular variable whose record does not exist in Cube, default values for keyfigyures should be shown after executing the planning function. How to achieve it? Eagerly waiting for your precious reply.
Warm Regards
PulokeshHi Everbody,
For a long time i have waited for somebody to answer my query. But after having all sorts of RNDs I came up with a sample code given below, and its also working properly....
FUNCTION ZKEYFIGURE_VALUE_DEFLT
""Local Interface:
*" IMPORTING
*" REFERENCE(I_AREA) TYPE UPC_Y_AREA
*" REFERENCE(I_PLEVEL) TYPE UPC_Y_PLEVEL
*" REFERENCE(I_METHOD) TYPE UPC_Y_METHOD
*" REFERENCE(I_PACKAGE) TYPE UPC_Y_PACKAGE
*" REFERENCE(I_LAYOUT) LIKE UPP_PARAM-PARAM DEFAULT 'INPUT'
*" REFERENCE(IT_EXITP) TYPE UPF_YT_EXITP
*" REFERENCE(ITO_CHASEL) TYPE UPC_YTO_CHASEL
*" REFERENCE(ITO_CHA) TYPE UPC_YTO_CHA
*" REFERENCE(ITO_KYF) TYPE UPC_YTO_KYF
*" EXPORTING
*" REFERENCE(ET_MESG) TYPE UPC_YT_MESG
*" REFERENCE(ETO_CHAS) TYPE ANY TABLE
DATA: LR_WA TYPE REF TO DATA.
DATA: T_SUBRC TYPE SY-SUBRC,
LS_MESG TYPE UPC_YS_MESG,
WA_COMDTY LIKE /BIC/PZCOMDTY.
DATA: L_COMDTY TYPE CHAR4, "Comodity value
LS_CHASEL TYPE UPC_YS_CHASEL, "Line of characteristic selection table
LT_CHARNG TYPE UPC_YT_CHARNG, "Selection table for char value
LS_CHARNG TYPE UPC_YS_CHARNG, "line of selection table for char value
L_VENDOR TYPE CHAR10, "VENDOR value
LA_CHASEL TYPE UPC_YS_CHASEL, "Line of characteristic selection table
LV_CHARNG TYPE UPC_YT_CHARNG, "Selection table for char value
LA_CHARNG TYPE UPC_YS_CHARNG. "line of selection table for char value
FIELD-SYMBOLS: <LS_DATA> TYPE ANY,
<CL_VEND> TYPE ANY,
<CL_COMDTY> TYPE ANY,
<KY_DATA> TYPE ANY,
<S_CHAS> TYPE ANY,
<FS_VEND> TYPE ANY,
<FS_COMM> TYPE ANY.
IF T_SUBRC = 0.
*Get the comodity of the data begin processed
READ TABLE ITO_CHASEL WITH KEY CHANM = 'ZCOMDTY3' INTO LS_CHASEL.
*Get the selection criteria comodity to be processed
READ TABLE LS_CHASEL-T_CHARNG INDEX 1 INTO LS_CHARNG.
*Read the comodity from the selection criteria
L_COMDTY = LS_CHARNG-LOW.
*Get the VENDOR of the data begin processed
READ TABLE ITO_CHASEL WITH KEY CHANM = 'ZSS_VEND3' INTO LA_CHASEL.
*Get the selection criteria VENDOR to be processed
READ TABLE LA_CHASEL-T_CHARNG INDEX 1 INTO LA_CHARNG.
*Read the VENDOR from the selection criteria
L_VENDOR = LA_CHARNG-LOW.
create structure for the selection criteria
CREATE DATA LR_WA LIKE LINE OF ETO_CHAS.
ASSIGN LR_WA->* TO <S_CHAS>.
ASSIGN COMPONENT 'ZSS_VEND3' OF STRUCTURE <S_CHAS> TO <FS_VEND>.
IF SY-SUBRC EQ 0.
MOVE L_VENDOR TO <FS_VEND>.
ENDIF.
ASSIGN COMPONENT 'ZCOMDTY3' OF STRUCTURE <S_CHAS> TO <FS_COMM>.
IF SY-SUBRC EQ 0.
MOVE L_COMDTY TO <FS_COMM>.
ENDIF.
COLLECT <S_CHAS> INTO ETO_CHAS.
ELSE.
LS_MESG-MSGTY = 'W'.
LS_MESG-MSGID = 'upf'.
LS_MESG-MSGNO = '001'.
LS_MESG-MSGV1 = 'Failed to get data from Layout'.
APPEND LS_MESG TO ET_MESG.
ENDIF.
ENDFUNCTION. -
hai all,
I want one function module such a way that if i enter the vendor number i must get the vendor name from another client.
for ex.
I am using clientNo aaa, user id: yyyyy
i must get the vendor name from the clint No: bbb, user id: yyyyy
how to do that.
thanking u.
regards,
giri.Hi,
Creaat a RFC function module and pass the client number to this.
and in that RFC write the logic.
select single * from lfa1 where lifnr = <vendor number>.
and return this record through the export parameter of the RFC.
call this RFC in one client as.
call function 'RFCFMNAME' destination 'RFCDESTINATION'.
Thanks
Mahesh -
Need function module or Bapi name for uploading CJ02 tcode
Hi All,
When i am trying to record the data for TCODE : CJ02 i need to enter the project Definition and enter the WBS element it takes me to the screen then i should select the WBS element and attach a file for that selected WBS element . The option for me to attach the attachment of file will be available on the application area(Services for the Object).
Now the problem when i try to do recording in SHDB this option like create attachement is not visible in the recodring . Kindly suggest me what can i do such that i attach the file for the particular project def and WBS element.
Either suggest any function module or other procedure .......
Regards,
Sana.
Edited by: Misbah Sultana on Nov 5, 2009 10:33 AMHi,
try using BAPI
BAPI_PROMO_CHANGESITEPLANNING
or
BAPI_PLANNEDORDER_CHANG
THANKS
ravi -
What the function of product allocation firming
hi gurus,
a question about prodcut allocation. in mc94, what's the function in setting - firming: the switch-on, swich-off and unfirm period?
is there anyone has some idea on that.
thanks a lot.Hi Daniel Zhou,
Firming is nothing but the usual term Fixing, or confirming. Firming defines whether the system is to create the new procurement proposals for material shortage within the planning time fence and how these procurement proposals are to be scheduled. No automatic change made to procrument proposal which are Firm during MRP run.
For details of Firming Type and usage just go through the link.
[Firming Type|http://help.sap.com/saphelp_47x200/helpdata/en/f4/7d30b644af11d182b40000e829fbfe/frameset.htm]
Hope clear to you.
Regards,
R.Brahmankar
Reward if useful
Maybe you are looking for
-
G3 not booting from Master HD. from slave gets bomb in OS 9.2
G3 B&W, 350 mhz, 320 Ram under 10.3.9 or 9.2. 2 HD's - 100 gb master with 10.3.9, partitioned into 6 drives, and slave is original 30gb under 9.2, partitioned into 4 drives. I was having trouble with it yesterday, so I put the 10.3 install disk in to
-
Show values as percentages of first value in series
I have a tricky problem I've tried to figure a way to do in OBIEE and I'm currently stumped. I have data that generally decays over time, but has vastly different starting values. I need to be able to show the data as percentages of the starting valu
-
VA01/VA02 - Sales Order Line items
Hello SD Expert, When am creating Sales Order (VA01) I noticed my transaction display only default of 2 line items and i need to scroll down in the event i have more that 2 line item to enter/key in. And I noticed that other SD user when they execut
-
Yosemite Photos App Shared Library
Just downloaded 10.10.3 and am migrating to Photos. On iPhoto I used to have the iPhoto library in the Shared folder, and all logins pointed to that library when they opened iPhoto in their own account. Then Apple stopped this, and I went through lot
-
How to create a TOC for my captivate scorm
Hi, I am trying to use Captivate 2 to convert a 50 slide powerpoint presentation into a V1.2 SCORM object . The object opens when I publish and upload to my site, but it only shows 1 entry (for the 1st slide) in the table of contents. I guess the ppt