Function module message for variant configuration
looking for some tips and examples for creating one variant function module (CU65) that could be used with all KMATs
module simply needs to say "selections not consistent with chosen model"
so the end result is that any procedure could reference this pop up message function.
POPUP_TO_DISPLAY_TEXT
Similar Messages
-
Function Module/BAPI For Variand Configuration
Hi Experts,
can any one resolve my Doubt iam working for Variant configuration i create a class,characteristic,depencies while executiing the CU50 it shows the correct output what i want to get
but i write a function module in that it is not giving the correct values which i get in CU50 is there any function module for directly geting the Cu50 functionality can any one help me in thatHi,
I am also looking for FM which gives direct output like cu50 tcode will get.
Can you tell me if you get that FM for output result.
Regards,
Ankit Rai -
Function Module for Variant Configuration
Is there any Function Modules available for getting the Characteristics and values of configured material. Input will be a material number.
Points assured for any helpful answersHello,
I don't think FM is available for getting the Characteristics values of the Material . Better use this code.
* Selection for class
IF NOT S_KLART[] IS INITIAL.
PERFORM F_GET_OBJECTNUMBER.
ENDIF.
IF G_CLASS_NE IS INITIAL.
* Fill Selection table fields
PERFORM F_FILL_FIELDS.
* Selection for materials
PERFORM F_GET_MATERIAL.
SORT G_T_MAT BY MATNR.
* Read if necessary classification
IF G_T_MATNR[] IS INITIAL AND ( NOT G_T_MAT[] IS INITIAL ).
PERFORM F_GET_MAT_KLASS.
ENDIF.
* Select the basic data text and fill final table
PERFORM F_GET_BASIC_TEXT.
ENDIF.
FORM F_GET_OBJECTNUMBER.
DATA: L_R_OBJECTS TYPE TY_OBJECTS.
DATA: L_OBJECTS TYPE TY_OBJECTS.
CLEAR: G_T_OBJECTS.
REFRESH: G_T_OBJECTS.
SELECT A~CUOBJ A~OBJEK A~KLART B~ATINN B~ATZHL B~ATWRT B~ATFLV
B~ATAWE B~ATFLB B~ATAW1 C~CLINT D~CLASS
INTO CORRESPONDING FIELDS OF TABLE G_T_OBJECTS
FROM INOB AS A INNER JOIN AUSP AS B
ON A~CUOBJ = B~OBJEK AND
A~KLART = B~KLART
INNER JOIN KSSK AS C
ON B~OBJEK = C~OBJEK AND
B~KLART = C~KLART
INNER JOIN KLAH AS D
ON C~CLINT = D~CLINT
WHERE A~OBJEK IN S_MATNR AND
A~OBTAB EQ 'MARA' AND
A~KLART IN S_KLART AND
B~ADZHL EQ '0000' AND
C~LKENZ EQ ' ' AND
D~CLASS IN S_CLASS.
CLEAR : G_T_KSML.
REFRESH: G_T_KSML.
SELECT CLINT IMERK KLART
FROM KSML
INTO CORRESPONDING FIELDS OF TABLE G_T_KSML
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE CLINT EQ G_T_OBJECTS-CLINT.
IF NOT G_T_KSML[] IS INITIAL.
SORT G_T_KSML BY CLINT.
SORT G_T_OBJECTS BY CUOBJ OBJEK CLASS ATINN.
LOOP AT G_T_KSML.
READ TABLE G_T_OBJECTS WITH KEY ATINN = G_T_KSML-IMERK
CLINT = G_T_KSML-CLINT
BINARY SEARCH.
IF SY-SUBRC NE 0.
CLEAR: L_OBJECTS.
READ TABLE G_T_OBJECTS WITH KEY KLART = G_T_KSML-KLART
CLINT = G_T_KSML-CLINT
BINARY SEARCH.
IF SY-SUBRC = 0.
MOVE-CORRESPONDING G_T_OBJECTS TO L_OBJECTS.
CLEAR G_T_OBJECTS.
G_T_OBJECTS-ATINN = G_T_KSML-IMERK.
G_T_OBJECTS-KLART = G_T_KSML-KLART.
G_T_OBJECTS-CLINT = G_T_KSML-CLINT.
G_T_OBJECTS-CUOBJ = L_OBJECTS-CUOBJ.
G_T_OBJECTS-OBJEK = L_OBJECTS-OBJEK.
G_T_OBJECTS-CLASS = L_OBJECTS-CLASS.
APPEND G_T_OBJECTS.
CLEAR G_T_OBJECTS.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
DELETE ADJACENT DUPLICATES FROM G_T_OBJECTS
COMPARING OBJEK KLART CLASS ATINN ATAWE.
IF NOT G_T_OBJECTS[] IS INITIAL.
SORT G_T_OBJECTS BY CUOBJ OBJEK CLASS ATINN.
CLEAR: G_T_MATNR,G_R_MATNR,G_T_CLASSDESC,G_T_CHARDESC,G_T_CABN,
G_T_CAWNT.
REFRESH: G_T_MATNR,G_T_CLASSDESC,G_T_CHARDESC,G_T_CABN,G_T_CAWNT..
SELECT CLINT KSCHL
FROM SWOR
INTO CORRESPONDING FIELDS OF TABLE G_T_CLASSDESC
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE CLINT EQ G_T_OBJECTS-CLINT AND
KLPOS EQ '01' AND
SPRAS EQ SY-LANGU.
IF NOT G_T_CLASSDESC[] IS INITIAL.
SORT G_T_CLASSDESC BY CLINT.
ENDIF.
SELECT ATINN ATBEZ
FROM CABNT
INTO CORRESPONDING FIELDS OF TABLE G_T_CHARDESC
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE ATINN EQ G_T_OBJECTS-ATINN AND
SPRAS EQ SY-LANGU.
IF NOT G_T_CHARDESC[] IS INITIAL.
SORT G_T_CHARDESC BY ATINN.
ENDIF.
SELECT ATINN MSEHI
FROM CABN
INTO CORRESPONDING FIELDS OF TABLE G_T_CABN
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE ATINN EQ G_T_OBJECTS-ATINN.
SELECT ATINN ATWTB
FROM CAWNT
INTO CORRESPONDING FIELDS OF TABLE G_T_CAWNT
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE ATINN EQ G_T_OBJECTS-ATINN AND
ADZHL EQ '0000' AND
SPRAS EQ SY-LANGU.
LOOP AT G_T_OBJECTS.
AT NEW OBJEK.
G_R_MATNR-MATNR = G_T_OBJECTS-OBJEK.
APPEND G_R_MATNR TO G_T_MATNR.
ENDAT.
ENDLOOP.
ENDIF.
IF G_T_MATNR[] IS INITIAL.
G_CLASS_NE = 'X'.
ENDIF.
ENDFORM. " f_get_objectnumber
FORM F_GET_MAT_KLASS.
DATA: BEGIN OF L_T_OBJECT OCCURS 0,
OBJEK TYPE OBJNUM,
MATNR TYPE MATNR,
END OF L_T_OBJECT.
DATA: L_OBJECTS TYPE TY_OBJECTS.
CLEAR: L_T_OBJECT.
REFRESH: L_T_OBJECT.
* Fill the object number
LOOP AT G_T_MAT INTO G_R_MAT.
AT NEW MATNR.
L_T_OBJECT-OBJEK = G_R_MAT-MATNR.
L_T_OBJECT-MATNR = G_R_MAT-MATNR.
APPEND L_T_OBJECT.
ENDAT.
ENDLOOP.
CLEAR:G_T_OBJECTS,G_T_CLASSDESC,G_T_CHARDESC,G_T_CABN,G_T_KSML,
G_T_CAWNT.
REFRESH: G_T_OBJECTS,G_T_CLASSDESC,G_T_CHARDESC,G_T_CABN,G_T_KSML,
G_T_CAWNT.
* Get the material classification details
SELECT A~CUOBJ A~OBJEK A~KLART B~ATINN B~ATZHL B~ATWRT B~ATFLV
B~ATAWE B~ATFLB B~ATAW1 C~CLINT D~CLASS
INTO CORRESPONDING FIELDS OF TABLE G_T_OBJECTS
FROM INOB AS A INNER JOIN AUSP AS B
ON A~CUOBJ = B~OBJEK AND
A~KLART = B~KLART
INNER JOIN KSSK AS C
ON B~OBJEK = C~OBJEK AND
B~KLART = C~KLART
INNER JOIN KLAH AS D
ON C~CLINT = D~CLINT
FOR ALL ENTRIES IN L_T_OBJECT
WHERE A~OBJEK EQ L_T_OBJECT-OBJEK AND
A~OBTAB EQ 'MARA' AND
A~KLART IN S_KLART AND
B~ADZHL EQ '0000' AND
C~LKENZ EQ ' ' AND
D~CLASS IN S_CLASS.
IF NOT G_T_OBJECTS[] IS INITIAL.
SELECT CLINT IMERK KLART
FROM KSML
INTO CORRESPONDING FIELDS OF TABLE G_T_KSML
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE CLINT EQ G_T_OBJECTS-CLINT.
ENDIF.
IF NOT G_T_KSML[] IS INITIAL.
SORT G_T_KSML BY CLINT.
SORT G_T_OBJECTS BY ATINN KLART.
LOOP AT G_T_KSML.
READ TABLE G_T_OBJECTS WITH KEY ATINN = G_T_KSML-IMERK.
IF SY-SUBRC NE 0.
CLEAR: L_OBJECTS.
READ TABLE G_T_OBJECTS WITH KEY KLART = G_T_KSML-KLART.
IF SY-SUBRC = 0.
MOVE-CORRESPONDING G_T_OBJECTS TO L_OBJECTS.
CLEAR G_T_OBJECTS.
G_T_OBJECTS-ATINN = G_T_KSML-IMERK.
G_T_OBJECTS-KLART = G_T_KSML-KLART.
G_T_OBJECTS-CLINT = G_T_KSML-CLINT.
G_T_OBJECTS-CUOBJ = L_OBJECTS-CUOBJ.
G_T_OBJECTS-OBJEK = L_OBJECTS-OBJEK.
G_T_OBJECTS-CLASS = L_OBJECTS-CLASS.
APPEND G_T_OBJECTS.
CLEAR G_T_OBJECTS.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
IF NOT G_T_OBJECTS[] IS INITIAL.
SELECT CLINT KSCHL
FROM SWOR
INTO CORRESPONDING FIELDS OF TABLE G_T_CLASSDESC
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE CLINT EQ G_T_OBJECTS-CLINT AND
KLPOS EQ '01' AND
SPRAS EQ SY-LANGU.
IF NOT G_T_CLASSDESC[] IS INITIAL.
SORT G_T_CLASSDESC BY CLINT.
ENDIF.
SELECT ATINN ATBEZ
FROM CABNT
INTO CORRESPONDING FIELDS OF TABLE G_T_CHARDESC
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE ATINN EQ G_T_OBJECTS-ATINN AND
SPRAS EQ SY-LANGU.
IF NOT G_T_CHARDESC[] IS INITIAL.
SORT G_T_CHARDESC BY ATINN.
ENDIF.
SELECT ATINN MSEHI
FROM CABN
INTO CORRESPONDING FIELDS OF TABLE G_T_CABN
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE ATINN EQ G_T_OBJECTS-ATINN.
SELECT ATINN ATWTB
FROM CAWNT
INTO CORRESPONDING FIELDS OF TABLE G_T_CAWNT
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE ATINN EQ G_T_OBJECTS-ATINN AND
ADZHL EQ '0000' AND
SPRAS EQ SY-LANGU.
ENDIF.
ENDFORM. " f_get_mat_klass
If useful reward.
Vasanth -
Any function module available for updation of Configuration data
Hi experts,
i want to know the function module which updates the configuration data.Please help me regarding this,its very urgent..I have some configuration data which needs to be updated .This data is present in the item level configuration data..
Please help me ...
Regards,
NagarajHi Nagaraj
I assume that one of the Sales document(SO/DO/Billing/Shipping,etc) has this custom field YF_ZZZ_STATUS.
If so, this custom field would be available in any one of sales tables (VBAK/VBAP/VBRk/VBRP/LIKP/LIPS, etc)
You have to find out where exactly this field is existing.
If this field is avilable in sales document screen, simply you can write one BDC code to update this field at any one sales userexit.
For example if you want to update this field at the time of saving sales order, then use MV45AFZZ include..there you will find userexit_save_document (FM). There you can write simple BDC code OR direct update query to update particular table.
NOTE: YOU CAN NOT FIND OUT ANY FM TO UPDATE CUSTOM FIELDS (IN CONFIGURATION AND DEVELOPMENT)
Thanks
Bala -
Function module need for 0fiscvarnt
Hi i have 0comp_code,budat and 0fiscper as a source fields,now i want to get 0fiscvarnt...please give me any logic or function module available for that
thanksHi,
Usually fiscal year variant is constant if not getting populated from source system.
Check with function team member what Fiscal year variant they using.
Regards,
Akshay -
Replacement function modules/method for obsolete Funtion Modules in ECC 6.0
We are working on Upgrade Project and need your help in finding the replacement Function module/ Methods for following obsolete Function Modules:
1. GET_FIELDTAB
2. WS_EXCEL
3. HR_DISPLAY_BASIC_LIST
4. LOG_SYSTEM_GET_RFC_DESTINATION
5. HELPSCREEN_NA_CREATE
6. TR_RELEASE_COMM
Thank in Advance.
Sarita.
Edited by: Sarita Yalamati on Mar 28, 2008 1:23 PMHi sarita,
for GET_FIELDTAB use 'DDIF_NAMETAB_GET'..here is sample code
CALL FUNCTION 'GET_FIELDTAB'
EXPORTING
LANGU = SY-LANGU
TABNAME = C_STRUCTURE_NAME
WITHTEXT = ' '
TABLES
FIELDTAB = IDFIES
EXCEPTIONS
INTERNAL_ERROR = 01
NO_TEXTS_FOUND = 02
TABLE_HAS_NO_FIELDS = 03
TABLE_NOT_ACTIV = 04.
Replacement :
CALL FUNCTION 'DDIF_NAMETAB_GET'
EXPORTING
TABNAME = C_STRUCTURE_NAME
ALL_TYPES = ' '
LFIELDNAME = ' '
GROUP_NAMES = ' '
UCLEN =
IMPORTING
X030L_WA =
DTELINFO_WA =
TTYPINFO_WA =
DDOBJTYPE =
DFIES_WA =
LINES_DESCR =
TABLES
X031L_TAB =
DFIES_TAB = IDFIES
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
For WS_EXCEL use GUI_DOWNLOAD.. here is sample code
CALL FUNCTION 'WS_EXCEL'
EXPORTING
FILENAME = 'D:\FILE1.xls'
SYNCHRON = ' '
TABLES
DATA = itab
EXCEPTIONS
UNKNOWN_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.
Repalcement :
data : l_filename type string.
l_filename = 'D:\FILE1.xls'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = l_filename
FILETYPE = 'ASC'
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = itab
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
EXPORTING
DOCUMENT = 'D:\FILE1.xls'
APPLICATION =
PARAMETER =
DEFAULT_DIRECTORY =
MAXIMIZED =
MINIMIZED =
SYNCHRONOUS =
OPERATION = 'OPEN'
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
BAD_PARAMETER = 3
FILE_NOT_FOUND = 4
PATH_NOT_FOUND = 5
FILE_EXTENSION_UNKNOWN = 6
ERROR_EXECUTE_FAILED = 7
SYNCHRONOUS_FAILED = 8
NOT_SUPPORTED_BY_GUI = 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. -
To know thelist of bapi's and function modules used for transaction IH10
I need to know thelist of bapi's and function modules used for transaction in order to use these FM or BAPI in reading some fields of equipment master and functional loocation.Can any one suggest me some methods...or do i need to write a report for the same.
hi,
provide report name (here: RIEQUI20)
goto se38 - utilities - cross reference - function modules
or use report RPR_ABAP_SOURCE_SCAN
with search string call function
A.
Message was edited by:
Andreas Mann -
Function module exits for Tcode MD11.
Please tell me, Function module exits for Tcode MD11.
Reg .
PrajuHi
LMDR2001
LMDZU001
Try out these exits.
Check the folloing BADI's
MD_PLDORD_SCHEDULING
MD_PIR_FLEX_CONS
MD_PLDORD_SCHEDULING
Regards
Divya -
Function module name for routing fom production orders
Function module name for routing fom production orders
Hi
There are lot of fun modules related to routing
like
BAPI_ROUTING_CREATE
BAPI_ROUTING_EXISTENCE_CHECK
goto SE37 Tcode
enter routing press F4
you will get a lot out of that use the required one
Reward points for useful Answers
Regards
Anji -
Function Module (BAPI) for Delivery Change
Dear All,
We have a Function Module "BAPI_SALESORDER_CHANGE" for changes in sales order, wherein we also can enter Texts in sales order.
Please tell me similar such function module for Outbound Delivery, wherein I can enter / insert / change the Texts (both Header & Item) in a deivery document.
Regards,
DhananjayThanks
Where in this Function Module do I find the table / parameter for adding text at item & header level.
Regards
Dhananjay -
Function module used for ENQUEUE_EIQMEL & DEQUEUE_EIQMEL function
Hi All,
It should be highly appreciable if any one could please help.
I need the name of the function module used for ENQUEUE_EIQMEL & DEQUEUE_EIQMEL function.
waiting for help.
Thanks
ShawHi,
The names 'ENQUEUE_EIQMEL' and 'DEQUEUE_EIQMEL ' you have mentioned are itself the function modules. Which other FM's you need i didnt understand.
These are FM to ahndle lock objects 'QMEL'.
please reframe your question in case of further issues.
Regards,
Mansi. -
Function module(s) for Cube Collapsing/Compression
Hi Experts,
can anybody tell me if there's a SAP Function module availbale for Collapsing/Compressing requests of a cube ?
Background is we want to automate collapsing of cubes by an APAB report instead of using a process chain or RSA1.
Any suggestions? Any pitfalls for such an implementation ? Any expieriences ?
We're on SAP BI 7.00 19, Oracle 10.2.0.4
Best regards,
ykHi Srinivas,
thanks for the quick answer, I will check the FM you mentioned.
We think of a cube exceptions list wich should NOT be condensed, and all OTHER cubes should be condensed.
With a process chain we have to maintain these OTHER list manually. In an ABAP report we could exclude the exceptions and condense the rest.
Developers tend to "forget" to add the CONDENSE step. So with time more and more cubes store only in F-tables and nothing in the E-tables (producing more workload as query runtime, DB maintanence like index creation runtime , statistic runs ...) and last but not least occupy disk space wich is expensive if you have a mirrored high performance disk system .
Best regards,
yk -
Function module/BAPI for executing VD51/VD52 transactions
Hi
Warm greetings to all,
I require a function module/BAPI for executing VD51/VD52 transactions. Can anyone help on this
SreekanthHi Sreekanth,
Use this.
There is an FM which is used by standard transaction
'RV_CUSTOMER_MATERIAL_UPDATE' .
Ex Code -
CALL FUNCTION 'RV_CUSTOMER_MATERIAL_UPDATE'
IN UPDATE TASK
TABLES
XKNMT_TAB = XKNMT
YKNMT_TAB = YKNMT
TCATALOG_TAB = LT_CATALOG.
commit work.
Regards,
Vijay -
Function Module / BAPI for Creating Material freight Group
Hi All,
Can anyone tell me the Function Module / Bapi for creating material freight group.
Regards,
Raj.Bapi for creating material freight group. :: You actually use mm01 or mm02 to change data for material flight.
So you can use BAPI for mm02 and mm01
For Ex:
BAPI_MATERIAL_SAVEDATA
Hope this helps -
Function Module Name for Graph
HI,
Can any body tell me Function Module name for creating graph with horizontal scrollable.I dont want standard graph button.
Thanks,
RakeshHello,
Check this standard programs they are using the same FM
RFDOPR20 Customer Payment History
RFVD_COMPRESSION_01_I01
RPRSTA01 Travel Expense Reporting by Period
RPSTA100 Time-Related Statistical Reporting
RPSTA200 Time-Related Statistical Reporting
RPSTA2GR
RQALVF16
RQETBI10 Inspection lot selection
RSDB4007 iSeries: Display Wait Statistics by SAP Instance
RSHOST10 Monitor for OS Collector (ST06)
RSORA003 Statistics of Physical Accesses to Oracle Data Base
RSORA007 Statistics of Data Base Wait Situations
RSORA138 IO Stat for Each User Session (ORA7 V$SESS_10)
Check this 3 FM
GRAPH_2D Calling up the 2D business graphics
GRAPH_2D_MENUE DO NOT USE (use 'GRAPH_2D' and 'GRAPH_BUSG_MENU_SET')
GRAPH_MATRIX_2D Calling up the 2D graphics (user-friendly version)
Maybe you are looking for
-
Currently, the default zoom level when viewing a page of a PDF file is automatically calculated based on the width of the "widest" page of the document. This means that, if the document contains one page that is wider than the others or is in landsca
-
How many songs in my itunes library
how can i find out how many songs are in my itunes library?
-
Installing GarageBand from scratch
Sorry to be so basic, but I'm sure GarageBand was installed when I first set up this PC about 2 years ago, but after a couple of crashes and surgery no longer! I downloaded V2 and tried to install, but told that "An eligible GarageBand application wa
-
Gentlefolk; I have some very large screenshots (1600 pixels by 900 pixels) that I am using in a training application. As the movie plays, I want the option of being able to have the entire screen within a browser window (shrink to around 1000 pixels
-
How to create outbound IDOC for Accounting document type RV
Hello All, We have a requirement to create a downpayment request for a customer. We have copied the FAZ billing type and created a ZFAZ. For this the accounting document type generated is RV. This RV is a statistical document and does not contain any