2008 Jun 20 1:46 PM
Hi,
What is the struture of the parameter my function need to expect for this peace of code work?
Do i have to create on structure of my one?
Program
SELECTION-SCREEN BEGIN OF BLOCK b1.
PARAMETERS CHARG TYPE MCHA-CHARG OBLIGATORY.
SELECT-OPTIONS TLoteCO FOR TQ30-ART.
SELECTION-SCREEN END OF BLOCK b1.
CALL FUNCTION 'ZIMPRIME_BA_MP'
EXPORTING
LOTEENTRADA = CHARG
TIPOLOTECONTROLO = TLoteCO.
Function
FUNCTION ZIMPRIME_BA_MP.
*"----
""Interface local:
*" IMPORTING
*" REFERENCE(LOTEENTRADA) TYPE CHARG_D
*" REFERENCE(TIPOLOTECONTROLO) TYPE ???????
Thanks
Hugo
2008 Jun 20 1:53 PM
Hello,
You need to create a range type.
Do the following go to SE11 and create a structure like follows:
SIGN TYPE C LENGTH 1
OPTION TYPE C LENGTH 2
LOW TYPE TQ30-ART (the domain or data element of this field)
HIGH TYPE TQ30-ART (the domain or data element of this field)
And then create a table type of this structure and then associate it with you parameter.
Regards.
Hi,
What is the struture of the parameter my function need to expect for this peace of code work?
Do i have to create on structure of my one?
Program
SELECTION-SCREEN BEGIN OF BLOCK b1.
PARAMETERS CHARG TYPE MCHA-CHARG OBLIGATORY.
SELECT-OPTIONS TLoteCO FOR TQ30-ART.
SELECTION-SCREEN END OF BLOCK b1.
CALL FUNCTION 'ZIMPRIME_BA_MP'
EXPORTING
LOTEENTRADA = CHARG
TIPOLOTECONTROLO = TLoteCO.
Function
FUNCTION ZIMPRIME_BA_MP.
*"----
""Interface local:
*" IMPORTING
*" REFERENCE(LOTEENTRADA) TYPE CHARG_D
*" REFERENCE(TIPOLOTECONTROLO) TYPE ???????
Thanks
Hugo
2008 Jun 20 1:50 PM
You can create the tabletype with a structure selec-options
option,sign,low,high
2008 Jun 20 1:53 PM
Hello,
You need to create a range type.
Do the following go to SE11 and create a structure like follows:
SIGN TYPE C LENGTH 1
OPTION TYPE C LENGTH 2
LOW TYPE TQ30-ART (the domain or data element of this field)
HIGH TYPE TQ30-ART (the domain or data element of this field)
And then create a table type of this structure and then associate it with you parameter.
Regards.
2008 Jun 20 1:56 PM
No need to create a structure ..
U can use structure .. RANGE_MATNR
2008 Jun 20 1:57 PM
You can do this also..
with out mentioning the type, you pass the select options , then in the function module you create the range for
TQ30-ART.
then pass the values to the range and use...it in FM
2008 Jun 20 1:57 PM
use the structures like range_matnr and range_werks..or use this....COMS_ATTR_RANGE
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |