Getting Values of MMBE transaction
Hello all,
I need to get the Values of the MMBE transaction and use those values in my report for calculation. Can anybody suggest a way to execute the MMBE tranasaction from my report and get the values in a table.
Regards,
Vijayakumar
Vijay,
Submit MMBE program in your zprogram by passing the values to the MMBE selection screen for ex
SUBMIT MMBE Program WITH p_werks = p_werks
EXPORTING LIST TO MEMORY AND RETURN.
and then use
LIST_FROM_MEMORY
LIST_TO_ASCI
LIST_FREE_MEMORY
Or copy MMBE program as zmmbe and then use EXPORT IMPORT concept to get the final internal table values into your zprogram.
K.Kiran.
Similar Messages
-
Transaction Type field not getting value in F-05 transaction
Hi All,
When ever we are doing a reverse posting for foreign currency valuation using F.05 Tcode it will create a BDC session where we can execute this batch Input session thru SM37.
This will use F-05 Tcode to post the the entries, but the problem is one of the field Transaction Type is not getting value for some of the GL account numbers range. This is totally SAP standard program take cares of it. Transaction type field value shuld be populated by '990' value for this GL account range, this is fixed. So is thr any User exit or Screen exit for this Tcode or how we can populate the value....
Help me...
Chandar
Edited by: Bala Chandar on Feb 12, 2009 1:25 PM
Edited by: Bala Chandar on Feb 12, 2009 1:28 PM
Edited by: Bala Chandar on Feb 12, 2009 1:33 PMHi Mr/Mrs Bala Chander,
I am having the same problem.
When running F.05 a BIM is created for GL account X. GL account X has a field status in which transaction type is defined as a required field because of BCS / ECCS. We have a substitution rule in place which should default the transaction type, based on several criteria. But when executing the BIM, I see that nothing is filled in field transaction type. Did you find a proper solution for your problem? Changing the field status is not an option in my opinion.
Regards,
Joep -
Function Module to get the MMBE transaction Data
Hi All,
My requirement is to calculate the open stock of a given part number in all the plants. I was told that the MMBE transaction in SAP can give me the data. So, I was searching for a function module or Bapi which could get this data which I can call in my program. Can anyone help me out?? Thanks.Hi Mohan,
You can try this code..with slight modifications.. (to work for all PLANTS)
Regards,
Raj
FUNCTION ZMM_ISSUES_PER_YEAR_POWER.
""Local interface:
*" IMPORTING
*" REFERENCE(I_MATNR) LIKE MARA-MATNR
*" REFERENCE(I_PLANT) LIKE T001W-WERKS
*" REFERENCE(I_GJAHR) LIKE MSEG-GJAHR
*" EXPORTING
*" REFERENCE(E_STK_OPBAL) LIKE BSIM-MENGE
*" REFERENCE(E_STK_VAL) LIKE BSIM-DMBTR
DATA : V_STK_OPBAL LIKE BSIM-MENGE,
V_STK_VAL LIKE BSIM-DMBTR,
V_GJAHR LIKE MSEG-GJAHR.
DATA : BEGIN OF IT_BSIM OCCURS 0,
MATNR LIKE BSIM-MATNR,
SHKZG LIKE BSIM-SHKZG,
MENGE LIKE BSIM-MENGE,
DMBTR LIKE BSIM-DMBTR,
END OF IT_BSIM.
TYPES: BEGIN OF ST_MSEG,
MATNR LIKE MSEG-MATNR,
SHKZG LIKE MSEG-SHKZG,
MENGE LIKE MSEG-MENGE,
DMBTR LIKE MSEG-DMBTR,
BWART LIKE MSEG-BWART,
LGORT LIKE MSEG-LGORT,
END OF ST_MSEG.
DATA : IT_MSEG TYPE ST_MSEG OCCURS 0 WITH HEADER LINE,
TMP_MSEG TYPE ST_MSEG OCCURS 0 WITH HEADER LINE.
DATA : BEGIN OF IT_MBEW OCCURS 0,
MATNR LIKE MBEW-MATNR,
LBKUM LIKE MBEW-LBKUM,
SALK3 LIKE MBEW-SALK3,
END OF IT_MBEW.
*V_KEYDT = I_KEYDT + 1.
SELECT MATNR
SHKZG
SUM( MENGE )
SUM( DMBTR )
INTO TABLE IT_BSIM
FROM BSIM
WHERE MATNR EQ I_MATNR
AND BWKEY EQ I_PLANT
AND GJAHR EQ I_GJAHR
AND BLART IN ('RE','WE','WA','PR')
GROUP BY MATNR SHKZG.
*SELECT MATNR
SUM( LBKUM )
SUM( SALK3 )
INTO TABLE IT_MBEW
FROM MBEW
WHERE MATNR EQ I_MATNR
AND BWKEY EQ I_PLANT
AND VPRSV EQ 'V'
AND BWTAR EQ ''
GROUP BY MATNR VPRSV.
SELECT A~MATNR
A~SHKZG
SUM( A~MENGE )
SUM( A~DMBTR )
A~BWART
A~LGORT
INTO TABLE IT_MSEG
FROM MKPF AS B
JOIN MSEG AS A
ON BMBLNR EQ AMBLNR
AND BMJAHR EQ AMJAHR
WHERE A~MATNR EQ I_MATNR
AND A~WERKS EQ I_PLANT
AND A~KZBEW IN (' ','B')
AND A~BWART NOT IN ('541','542','321','322','121')
AND A~KZVBR NOT IN ('A')
AND A~GJAHR EQ I_GJAHR
GROUP BY AMATNR ASHKZG ABWART ALGORT.
LOOP AT IT_MSEG WHERE BWART EQ '544' AND LGORT EQ ''.
TMP_MSEG = IT_MSEG.
APPEND TMP_MSEG.
ENDLOOP.
DELETE IT_MSEG WHERE ( BWART EQ '309' AND DMBTR EQ 0 ).
DELETE IT_MSEG WHERE ( BWART NE '543' AND LGORT EQ '' ).
LOOP AT TMP_MSEG.
IT_MSEG = TMP_MSEG.
APPEND IT_MSEG.
ENDLOOP.
*READ TABLE IT_MBEW WITH KEY MATNR = I_MATNR.
*V_STK_OPBAL = IT_MBEW-LBKUM.
*V_STK_VAL = IT_MBEW-SALK3.
LOOP AT IT_MSEG.
IF IT_MSEG-SHKZG EQ 'H'.
V_STK_OPBAL = V_STK_OPBAL - IT_MSEG-MENGE.
V_STK_VAL = V_STK_VAL - IT_MSEG-DMBTR.
ELSE.
V_STK_OPBAL = V_STK_OPBAL + IT_MSEG-MENGE.
ENDIF.
ENDLOOP.
LOOP AT IT_BSIM.
IF IT_BSIM-SHKZG EQ 'H'.
V_STK_OPBAL = V_STK_OPBAL - IT_BSIM-MENGE.
V_STK_VAL = V_STK_VAL - IT_BSIM-DMBTR.
ELSE.
V_STK_OPBAL = V_STK_OPBAL + IT_BSIM-MENGE.
V_STK_VAL = V_STK_VAL + IT_BSIM-DMBTR.
ENDIF.
ENDLOOP.
E_STK_OPBAL = V_STK_OPBAL.
E_STK_VAL = V_STK_VAL.
ENDFUNCTION. -
MB5L shows value but MMBE and other transactions showing 0 value
Hi Gurus,
The issue i am having here is, i am having a Material XXXXX for the Plant YYYY. When i checked the stock for the material in MB5L, it is showing some KGs. But when i am checking the MMBE transaction, it shows 0 Value. Also when i checked the MBEW table it is showing the value, similarly on MSEG and MARC tables it shows 0 value. Now my concern here is
1) What could be the reason for this?
2) How we can make it sync the both the Tables?
3) What happened to the history for this in MB51 and other transactions for this material?
4) How should we approach this issue?
Please advise and share your knowledge gurus. Thanks for your help in advance.
Regards,
SaakithyanHi
Check if Note 968812 - MM/FI Difference for material stocks is relevant for you
Regards
Eduardo -
Spec for this report not able to get values in the output
okSection 1: Document information
Title PP Total Component Requirement by Sales Forecast Report Create Date 5/2/2006
Author Ivie Ng Revision 1.0 Last changed on
Program type ( X ) Report ( ) Form ( ) Batch input ( ) Dialog program
Priority ( ) High ( X ) Medium ( ) Low
Frequency ( ) As require (X ) Daily ( ) Weekly ( ) Monthly ( ) Yearly
( ) Conversion
Doc-Ref.
Section 2: Contact Person
Task/Responsibility Name Signature Date
JM Project Manager Sean Gilgunn
ISS Project Manager YB Cisse
JM-Business Team Lead Sathe
Functional Consultant Ivie
ABAP Consultant Soh
User Acceptance Test / Approved by
Transport
Section 3: Functional Description
Background (whatever; Ex.Why does this program have to develop?)
This is to allow materials dept to view and analyze total component requirement base on sales forecast ie. budget forecast, inactive version within specific planning horizon.
Requirements
In SOP, material dept will maintain planning data (sales & production plan) in various version.
1. Active version: A00
This version is transferred to demand mgmt as active version. MRP will use this planning data to create order proposals (planned orders, purchase requisitions).
2. Inactive version: 001 999
There are 3 types of inactive version in SOP:
a) Sales forecast 000 799
b) Budge forecast 800 820
c) Forecast report 821 999
This report should allow to read any version of the sales forecast and return the total component requirements in the planning horizon that specify.
Section 3.1: Selection screen
Field name Technical name Type of selection field
(*Please specify Transparent Table and field name) (X) Single value ( ) Range ( ) Required field
( ) Single value (X) Range ( ) Required field
(X) Single value ( ) Range ( ) Required field
Section 3.2: Program Logic
Business Requirement
This report will allow option to choose to read the source from SOP or COPA.
Input Selection
Main Menu:
o Total Component Requirement from SOP forecast
o Total Component Requirement from COPA forecast
If SOP is selected, Source = SOP
If COPA is selected, Source = COPA
Option 1: SOP
1. Input Layout
Material: _____________ (note: allow multiple materials entry, no entry indicate all materials)
RM Material Group: __________ (note: allow multiple entry, no entry indicate all Mat Grp)
Plant: MY11 (note: default value)
Standard Price as of : _____________ (YYYYMM)
Version: ________ (note: allow F4 option with Version and Description)
Output Type: ____ (Month/Year)
(If the output type chosen is Month, the below is display)
Period From: _________ (YYYYMM)
Period To: _________ (YYYYMM)
(If the output type chosen is Year, the below is display)
Period From: __________ (YYYY)
Period To: __________ (YYYY)
2. Output Layout
Plant: MY11
Source:
Version:
System Date/Time:
Output Layout in Month:
Material Desc Component Desc UOM M04.2006 M05.2006 M06.2006 M07.2006 M08.2006 M09.2006 BOM
TO2368 NGK0003 PC TO2368
SIN96-015 MG TO2368
SIN96-066F MG TO2368
SIN96-066N MG TO2368
SIN96-127 GCL WCS2004
SIN96-055 G WCS2004
SIN96-110 G WCS2004
SIN96-007 G WCS2004
SIN96-002 GCL WCS1003
SIN96-001 GCL WCS1003
SIN96-006 GCL WCS1003
TO2358/511 PC TO2368
TO2358/512 PC TO2368
WCS2004 GCL TO2368
WCS1003 GCL WCS2004
Output Layout in Year:
Material Desc Component Desc UOM 2006 2007 2008 BOM
TO2368 NGK0003 PC TO2368
SIN96-015 MG TO2368
SIN96-066F MG TO2368
SIN96-066N MG TO2368
SIN96-127 GCL WCS2004
SIN96-055 G WCS2004
SIN96-110 G WCS2004
SIN96-007 G WCS2004
SIN96-002 GCL WCS1003
SIN96-001 GCL WCS1003
SIN96-006 GCL WCS1003
TO2358/511 PC TO2368
TO2358/512 PC TO2368
WCS2004 GCL TO2368
WCS1003 GCL WCS2004
3. Header Section:
Header Field: Plant
Print input field Plant.
Header Field: Source
If SOP is selected, Source = SOP
If COPA is selected, Source = COPA
Print Source.
Header Field: Version
Print input field Version, Print RMCP2-VETXT (version description).
Header Field: System Date/Time
Print current system date and time.
4. Table: S076 (SOP - Sales & Operations Planning)
Read S076 rows with input selection of Material, Plant, Year, Month, Version sorted by Material.
This table provides sales forecast figure.
Table: MAKT Material Decription
Table: MARA - General Material Data
Table: CDHDR - Change document header
Table: CDPOS - Change document items
5. Details Section: -
Read S076.PMNUX(Material). Note: There will be multiple rows in S076.PMNUX (Material)
Field: Material
Print S076.PMNUX(Material).
Field: Description
Read MAKT.MATNR(Material), Print MAKT.MAKTX.
6. Read L1 (Level 1) BOM Transaction: CS03
Where Material = S076.PMNUX (Material), Plant = MY11 (input field), BOM Usage = 1, Status = 01
7. This is to print BOM component.
If Input Material Group =
Read Component (Material), Component Qty from BOM sorted by MARA.MTART (material type) = ZROH, ZHLB , ZRUH
If Input Material Group <>
Read Component (Material), Component Qty from BOM sorted by MARA.MTART (material type) = ZROH, ZHLB , ZRUH
Where MARA-MATKL (Material Group) = Input Material Group.
If MARA.MTART (material type) = ZRUH,
Read L1 (Level 1) BOM Transaction: CS03
Where Material = S076.PMNUX, Plant = MY11 (input field), BOM Usage = 1, Status = 02.
GET RC29K-BMENG (Base Qty) ***
Field: Material Group
Print MARA-MATKL
Field: Component
Print BOM Component.
Field: Description
Print MAKT.MAKTX.
Field: UOM
Print MARA.MEINS.
Field: Currency
Field: Standard Price
If Input Standard Price Date =
Print Currency =
Print Standard Price = 0
Else
Read CDHDR-OBJECTID (Material), CDHDR-CHANGENR (ChgNo)
Where CDHDR-OBJECTID (Material) = BOM Component
And CDHDR-TCODE (Transaction) = MR21
And YYYYMM[CDHDR-UDATE (Date)] = Input Standard Price Date
If NOT Found, look up YYYYMM[CDHDR-UDATE (Date)] 1
I.e. Input Standard Price Date is 200702, If CDHDR-UDATE (Date) Not Found, look up 200701.
If Not Found, look up 200612 until the record is found **
If row return > 1, select the latest CDHDR-UDATE (Date)
i.e. If rows return 20070201 and 20070215, Select 20070215 **
Read CDPOS-CUKY_NEW (Currency), CDPOS-VALUE_NEW (New Value)
Where CDPOS-OBJECTID (Material) = CDHDR-OBJECTID (Material)
And CDPOS-CHANGENR (ChgNo) = CDHDR-CHANGENR (ChgNo)
Print CDPOS-CUKY_NEW (Currency)
Print CDPOS-VALUE_NEW (New Value)
8. If the output type is Year, print Requirement Qty in Yearly bucket.
Requirement Qty = sum[S076-ABSAT (Sales) for current Year] ie 2006
Requirement Qty = sum[S076-ABSAT (Sales) for current Year + 1] ie 2007
Requirement Qty = sum[S076-ABSAT (Sales) for current Year + 2] ie 2008
If the output type is Month, print Requirement Qty in Monthly bucket.
Field: Month (ie. M04.2006)
Requirement Qty = S076-ABSAT (Sales) * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M04.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Field: Month (ie. M05.2006)
Requirement Qty = S076-ABSAT (Sales) * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M05.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Field: Month (ie. M06.2006)
Requirement Qty = S076-ABSAT (Sales) * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M06.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Field: Month (ie. M07.2006)
Requirement Qty = S076-ABSAT (Sales) * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M07.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Field: Month (ie. M08.2006)
Requirement Qty = S076-ABSAT (Sales) * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M08.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Note: Repeat the requirement qty display in Monthly bucket base on period specified.
Field: BOM
Print L1 BOM which is S076.PMNUX (Material) from Step 6.
If Is end of component,
Repeat Step 5 for next Material in SOP (S076.PMNUX).
If MARA.MTART (material type) = ZROH,
Perform Step 7 to read next L1 BOM Component.
Perform Step 8 to print Requirement Qty.
If [MARA.MTART (material type) = ZHLB] and [MARA.MATKL(material group) = WP0100, WP0110, or WP0120],
Go Step 9 to read L2 BOM.
If [MARA.MTART (material type) = ZHLB] and [MARA.MATKL (material group) <> WP0100, WP0110, WP0120],
Perform Step 7 to read next BOM Component.
Perform Step 8 to print Requirement Qty.
9. Read L2 (level 2) BOM for the ZHLB at Transaction: CS03
Where Plant = MY11(input field), BOM Usage= 1, Status = 01.
GET RC29K-BMENG (Base Qty) ***
10. Read Component (Material), Component Qty from BOM sorted by MARA.MTART (material type) = ZROH, ZHLB.
Field: Material Group
Print MARA-MATKL
Field: Component
Print BOM Component.
Field: Description
Print MAKT.MAKTX.
Field: UOM
Print MARA.MEINS.
Field: Month (ie. M04.2006)
Requirement Qty = Requirement Qty from L1 BOM * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M04.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Field: Month (ie. M05.2006)
Requirement Qty = Requirement Qty from L1 BOM * Component Qty / / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M05.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Note: Repeat until end of Period.
Field: BOM
Print L2 BOM from Step 9.
If is end of component, perform Step 7 to read next L1 BOM component, and Step 8 to print Requirement Qty.
If MARA.MTART (material type) = ZROH,
Perform Step 10 to read next L2 BOM Component.
If MARA.MTART (material type) = ZHLB and MARA.MATKL(material group) = WP0100, WP0110, or WP0120,
Go Step 11 to read L3 BOM.
If [MARA.MTART (material type) = ZHLB] and [MARA.MATKL (material group) <> WP0100, WP0110, WP0120],
Perform Step 10 to read next L2 BOM Component.
11. Read L3 (level 3) BOM for the ZHLB at Transaction: CS03 where Plant=MY11(input field), BOM Usage=1, Status =01.
12. Read Component (Material), Component Qty from BOM sorted by MARA.MTART (material type) = ZROH, ZHLB.
Field: Material Group
Print MARA-MATKL
Field: Component
Print BOM Component.
Field: Description
Print MAKT.MAKTX.
Field: UOM
Print MARA.MEINS.
Field: Currency
Field: Standard Price
Read CDHDR-OBJECTID (Material), CDHDR-CHANGENR (ChgNo)
Where CDHDR-OBJECTID (Material) = BOM Component
And CDHDR-TCODE (Transaction) = MR21
And YYYYMM[CDHDR-UDATE (Date)] = Input Standard Price Date
If NOT Found, look up YYYYMM[CDHDR-UDATE (Date)] 1
I.e. Input Standard Price Date is 200702, If CDHDR-UDATE (Date) Not Found, look up 200701.
If Not Found, look up 200612 until the record is found **
If row return > 1, select the latest CDHDR-UDATE (Date)
i.e. If rows return 20070201 and 20070215, Select 20070215 **
Read CDPOS-CUKY_NEW (Currency), CDPOS-VALUE_NEW (New Value)
Where CDPOS-OBJECTID (Material) = CDHDR-OBJECTID (Material)
And CDPOS-CHANGENR (ChgNo) = CDHDR-CHANGENR (ChgNo)
Print CDPOS-CUKY_NEW (Currency)
Print CDPOS-VALUE_NEW (New Value)
Field: Month (ie. M04.2006)
Requirement Qty = Requirement Qty from L2 BOM * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M04.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Field: Month (ie. M05.2006)
Requirement Qty = Requirement Qty from L2 BOM * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M05.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Note: Repeat until end of Period.
Field: BOM
Print L3 BOM from Step 11.
If is end of component,
Perform Step 10 to read next L2 BOM Component.
If MARA.MTART (material type) = ZROH,
Perform Step 12 to read next L3 BOM Component.
If MARA.MTART (material type) = ZHLB and MARA.MATKL(material group) = WP0100, WP0110, or WP0120,
Repeat for next level of BOM reading. ** for future BOM expansion **
If [MARA.MTART (material type) = ZHLB] and [MARA.MATKL (material group) <> WP0100, WP0110, WP0120],
Perform Step 12 to read next L3 BOM Component.
13. The report is ALV format and should allow to export to Excel. See example below:
Option 2: COPA
1. Input Layout
Company Code: ________
Plant: MY11
Material: _____________ (note: allow multiple materials entry, no entry indicate all materials)
Material Group: __________ (note: allow multiple materials entry, no entry indicate all materials)
Standard Price as of : _____________ (YYYYMM)
Version: ________ (note: allow F4 option with Version and Description)
Read V_TKEVS_CL-VERSI (Version), V_TKEVS_CL-VTEXT (Version Description)
Output Type: ____ (Month/Year)
(If the output type chosen is Month, the below is display)
Period From: _________ (YYYYMM)
Period To: _________ (YYYYMM)
(If the output type chosen is Year, the below is display)
Period From: __________ (YYYY)
Period To: __________ (YYYY)
2. Header Section:
Header Field: Plant
Print input field Plant.
Header Field: Source
If SOP is selected, Source = SOP
If COPA is selected, Source = COPA
Print Source.
Header Field: Version
Print V_TKEVS_CL-VERSI (Version), V_TKEVS_CL-VTEXT (Version Description)
Header Field: System Date/Time
Print current system date and time.
3. Report details: -
Table: CE2ASIA - JM Operating Concern
If input selection is Monthly Report:-
Read CE2ASIA-ARTNR (Product No), Sum[CE2ASIA-ABSMG001 (Sales Qty)]
Where CE2ASIA-BUKRS (Company Code) = Input Company Code
And CE2ASIA-WERKS (Plant) = Input Plant
And CE2ASIA-PALEDGER (Currency Type) = 10
And [CE2ASIA-PERBL (FI Period) > = Input Period From And CE2ASIA-PERBL (FI Period) < = Input Period To]
Group by CE2ASIA-ARTNR (Product No)
If input selection is Yearly Report:-
Read CE2ASIA-ARTNR (Product No), CE2ASIA-ABSMG001 (Sales Qty)
Where CE2ASIA-BUKRS (Company Code) = Input Company Code
And CE2ASIA-WERKS (Plant) = Input Plant
And CE2ASIA-PALEDGER (Currency Type) = 10
And [YYYY[CE2ASIA-PERBL (FI Period)] > = Input Period From And CE2ASIA-PERBL (FI Period) < = Input Period To]
Note: The details similar to Option 1: SOP, refer section (5) to (13)
Section 3.3: Report Layout
Field name Technical name Comment
(Please specify Transparent Table and field name) (Ex. In case field does not read directly from transparent table but derive from formular or sum or else. Please show the detail how to do that.)
Section 3.3: Unit Test Criteria
Section 4: Technical Description
Section 4.1: Object information
Development class
Transport number
Section 4.2: Input/output file layout (In case upload/download file)
*Please determine structure of file like as below:
No. Field description Type (Char,Numeric, ) Length Note
Section 4.3: Report/Form information
Paper size Inch 11 8 X 11 Type of printer ( ) Laser printer (X) Dot matrix
Output report / Pre-printed Attach
Technical IssueHi gurus,actually this program selecion screen is linked to ..as
First screen is .Sop
.copa
Again for sop is having a selection screen and in this it is divide based on month and year seperately in two more screens.
same for copa also....
so pls tell me a correct solution where to correct and get values.
Priority is very highhhhhhhhhhhhhh,so pls help me in sorting out this. -
Hi,
Is it possible to get value what user can insert manually in bdc program running through all display (A)
mode?
Regards,
ZankrutiHi.
No you can't get that value immediately.
You can however do the following. When the program flow returns back from the CALL TRANSACTION.... statement you have just called in BDC_MODE 'E', you could possibly get the document number created (or changed) from the respective parameter IDs and with these values access the DB appropriate DB tables and SELECT the value of the field that the user has entered manually.
Regards,
George -
Problem with GET PARAMETER in "O4K_LICENSE" Transaction
Hi folks,
I am facing a problem with the usage of "GET PARAMETER ID" in the transaction O4K_LICENSE (IS-oil).
I have written a BDC which feeds in the License Type, External License type and a few other Mandatory fields to the Transaction, and on saving the transaction, SAP generates an "Internal License Number". This field has a Parameter ID "OIH", and I am using the command
GET PARAMETER ID 'OIH' FIELD lw_licin.
For the first pass of the loop, there is a value coming into lw_licin, but in the later loops this Value is not refreshing and the value which is coming into lw_licin is not changing. But the Database table OIHL is getting updated with the correct Internal License number values.
So, my question is, is there anyway by which i can refresh the SAP Global Memory after every loop pass?
Or, is there any way out to get the new generated values into lw_licin ?
Thanks in advance,
Vijay.Hi
If you clear the parameter, you should transfer a blank value to it:
DATA: NO_VALUE.
SET PARAMETER ID <ID> FIELD NO_VALUE.
Now the problem is this statament should be into loop and i think the transaction only does the GET PARAMETER.
If transaction doesn't do the SET PARAMETER yuo can do anything.
In your standard program there should be something like:
LOOP...
IF SY-TABIX > 1.
SET PARAMETER ID <ID> FIELD NO_VALUE.
ENDIF.
ENDLOOP.
but I think it's very hard there is a piece of code like that, and you can do nothing, because you can only set the parameter before calling the transaction (in bdc mode) and after calling the transaction but not while the transaction is working.
You should change the standard program to do this.
Max
Message was edited by: max bianchi -
Need help with IQ02 - using a FM do update a value in this transaction
Hi,
I am trying to change the Aquisition value (as in transaction IQ02) using either of following FM:
ITOB_SERIALNO_MODIFY_SINGLE
SERIALNUMBER_LIST_UPDATE
However the changed value of field (ANSWT) is not getting reflected in database.
I tried ABAP4_COMMIT_WORK, but it didnt work.
I also tried, BAPI_TRANSACTION_COMMIT but getting a express document message 'Update was terminated.'
Kindly help me with this. The only thing I need to do is to change the ANSWT (Aquisition value) field.
Thanks.
Sanjay
PS: Help will be rewardedIt's a bit dangerous to use SAP function modules that are not released to the user to update SAP data because they may not be a complete LUW. IE you may have to run other FMS either before or after. Try to find a BAPI. Maybe BAPI_MATERIAL_MAINTAINDATA_RT is what you need.
Rob -
How to get GUID for a transaction
How to get GUID of a transaction in solution manager support desk.
pls help reg this.Hi Kalpanashri,
I would suggest you to go for recording of the transaction. Then you can get to know the tables of the related fields which you have entered value during recording.
OR
For checking individual fields, you can go for the <b>WHERE-USED LIST</b>.
For Ex:
Please go to SE11 and enter data type with MATNR.
Then click on where-used list button and check only table type (the first option) and click on continue.
The system will show list of tables that store value of MATNR field. You can do double click on the field name and system will take you to detail screen of the table fields. Then from here ... you browse the data as well.
Hope this resolves your query.
Reward all the helpful answers.
Regards -
On-order stock quantity from MMBE transaction
Hi all,
I am developing a Z report in which i want to get the ON-ORDER STOCK which is display in MMBE transaction. So i need the linkage for deriving the on-order stock , iam having material no, plant, storage location, batch . Or any table from which i can dereive the on-order stock
Regards,
Madhukar ShettyHello Madhukar,
As you are referring MMBE, I am not sure whether MSKA (Which is SO stock) is helpful. This could give you the stock and u can refer your VBELN there.
I think you need MCHB or MCHA tables to see the stock from MMBE. These tables will give you a specific stock per company per batch in all storage location.
Hope this will help you.
Regards,
Ravindra Sonar -
Functionality for MMBE transaction
hi,
I need a functionality in which i need to simulate mmbe transaction with the plant and storage locations mentioned in selection parameters of a report program. All categories of stock are required except returns stock i.e. Unrestricted, Blocked, QI stock.
I need to sum up all the stocks i.e. Unrestricted, Blocked, QI stock except returns stock and pass it to a variable in report program.
Is there any FM that exists that can return the value of all stocks or is there any other way I can implement this functionality.
Please do help.Hi!
You have to use 2 tables for this:
- MARD - materal stock data
- MBEW - material values
And for the stock values you have to multiply the stock data with the values for each material.
For historical data, you have to use the MBEW_EXTEND and MARD_EXTEND function modules also, because these function modules are correcting the historical values (previous month and previous year).
Regards
Tamá -
Difference between CO09 and MMBE Transactions
Hi All,
Please let me know difference between CO09 and MMBE Transactions.
FOr particular material and plant ,Quantity 1 is there as FGI in MMBE screen but it is not there in CO09 for same material in the same plant.
Regards
NidhiDear Nidhi Srivastva
MMBE(Stock over view ) : By using this transaction code we can get the information pertinent to the particular material stock levels in the respective plant and storage locations.
With the help of the detailed display we will know wether the material is in transit mode ,restricted ,unrestricted and so on........
CO09(Avilability overview): With the help this we will know when the order was raised and the confirmed quantities.
Apart from that we know about the goods issues and goods recites of respective plant.
Please let me know if you have any further clarifications
Thanks&Regards
Raghu.k -
NOT Getting Values for LOCATION...on MultiProvider REPORT
HI All,
I have a MultiProvider on 4 cubes.All these 4 cubes having object LOCATION. I can see data in all cubes for LOCATION. I am running a report on this MultiProvider.
Problem:
I am not getting Values for LOCATION. Why?
What I did:
I checked all location objects of all 4 cubes @ MultiProvider level .
I didn't use any Infoprovider in Qry designer sections.
Please suggest. What is the reason how to solve..
THanks & Regards.
Sri.
Edited by: siri26 k on Dec 5, 2008 10:41 AM
Edited by: siri26 k on Dec 5, 2008 10:41 AMhello,
in the identification tab of the MP,make sure you have checked all four checkboxes across the 4 infoproviders.
then in Listcube T-Code, select your MP,display the records based on selection inputs and see if location is populated.
If the data is not coming in listcube, then it will not come in the Query too.
Reg,
Dhanya -
Not getting values in the variable
Hi experts,
in this program
i want VBPA-vbeln = xblnr....but there is a data length error. so I ahve declare one variavble of length 10. & i am moving this xblnr to this variable but not getting value in that variable that i am moving..& give me the possible solutions...
when '0FI_AR_4'.
data: t_DTFIAR_3 like DTFIAR_3 occurs 0 WITH HEADER LINE.
data: BEGIN OF t_DTFIAR_3 occurs 0.
include structure DTFIAR_3.
data: xblnr1(10).
data: END OF t_DTFIAR_3.
data : BEGIN OF t_partner occurs 0,
VBELN like vbpa-VBELN,
parvw like vbpa-PARVW,
kunnr like vbpa-kunnr,
END OF t_partner.
data : xblnr1(10).
t_DTFIAR_3[] = C_T_DATA[].
move t_DTFIAR_3-xblnr to t_DTFIAR_3-xblnr.
select VBELN PARVW kunnr
into table t_patner
from vbpa
FOR ALL ENTRIES IN t_DTFIAR_3
where VBELN = t_DTFIAR_3-xblnr.
SORT t_partner BY VBELN PARVW.
loop at t_DTFIAR_3.
loop at t_partner where VBELN = t_DTFIAR_3-xblnr1.
if t_partner-PARVW = 'ZA'.
t_DTFIAR_3-YPARVW1 = t_partner-PARVW.
t_DTFIAR_3-YPART1 = t_partner-kuNNR.
elseif t_partner-PARVW = 'ZR'.
t_DTFIAR_3-YPARVW2 = t_partner-PARVW.
t_DTFIAR_3-YPART2 = t_partner-kuNNR.
ELSEif t_partner-PARVW = 'ZE'.
t_DTFIAR_3-YPARVW3 = t_partner-PARVW.
t_DTFIAR_3-YPART3 = t_partner-kuNNR.
ELSEif t_partner-PARVW = 'ZS'.
t_DTFIAR_3-YPARVW4 = t_partner-PARVW.
t_DTFIAR_3-YPART4 = t_partner-kuNNR.
ENDIF.
MODIFY t_DTFIAR_3.
endloop.
ENDLOOP.
C_T_DATA[] = t_DTFIAR_3[] .
Thanks in advanceHI,
While moving use the WRITE TO option.
WRITE VBPA-vbeln TO xblnr.
Regards
Sudheer -
Using bean.variable for inputText but not getting value
Hi I am using ADF BC JSF 10.1.3.2.
I have a search page that has : dropdown1,
based on dropdown1, I populate the dropdown 2 and with autosubmit and partialtrigger and also set either of the two search layouts true
LAyout 1 based on dropdown1 value, say x, is rendered and I have 3 inputText , each have value= #{backingbean.variable}.
Now when i am running this page, I got dropdown2 rendered with correct values and layout 2 rendered as required. Problem starts when I enter a value in the inputText1 and click on search button. In the search method, I try to get value for variable with so many ways : getVariable(), this.getInputText1.getValue()/// All these returned null.
I tried to initialize the variable. In this case, the inputText1 showed initialised value and when i change value and submit, in the search method I still get the old initialised value.
The inputText1 somehow never sets the value
Please help..
Regards
SudhaHi,
I'm not exactly sure about what your functionality is but from what I gather the problem could be that if the bean is request scope then the value of the input text is already lost when you are trying to retrieve it.
In any case I think that the best thing to do is to use the default view criteria functionality to perform the search if it is done on a view object.
Gabriel.
Maybe you are looking for
-
Can Apple tech support provide a solution fee free?
-
How can I get my Albums back at the top of the Library Panel?
I recently upgraded to 3.3.2 and among the many new and sublty annoying features, all the smart albums which I created and which used to be at the top of the Library panel now appear at the bottom below the Projects. Why someone thought this should b
-
URGENT ! Is it possible to create a xml data control description file
We are encountering serious problem when generating data control against java bean build from java classes generated with xml top link mapping. As workaround we have created a new xml schema that generate the java classes in a way data control may be
-
Hello! I have two tables, tableA and tableB, see below tableA id value A051 100 A052 101 tableB id value2 A051 1234 and I have this sql statement in my reports (reports 6i): select NVL(a.id,a.id),NVL(a.value,a.value),NVL(b.value2,'***') from tableA a
-
Sorting the members of a group
Noticed that while adding a member to a group, is there any way to sort those members? thanks