I need a sample coding fun. module ' MRM_INVHEAD_MANY_READ'
i am able to get the output from the function module, but i need to have RG_RBSTAT, which is an input paramenter for EXPORTING paramater T_RBSTAT.
Status range RG_RBSTAT needs to contain the following status '2'.
I promise to award points.
Regards,
anitha
Hi,
REPORT ZSRITEST.
TYPE-POOLS: MRM.
DATA: lt_ivtyp TYPE MRM_TAB_IVTYP,
lt_rbstat TYPE MRM_TAB_SORBSTAT,
lt_rbkpv TYPE MRM_TAB_RBKPV,
lwa_ivtyp LIKE LINE OF lt_ivtyp,
lwa_rbstat LIKE LINE OF lt_rbstat,
lwa_rbkpv LIKE LINE OF lt_rbkpv.
****Option if you want to fill some thing in T_IVTYP just uncomment the ****following code normally it is SPACE so no need to fill
*lwa_ivtyp = ''. "<your value here>.
*APPEND lwa_ivtyp TO lt_ivtyp.
lwa_rbstat-sign = 'I'.
lwa_rbstat-option = 'EQ'.
lwa_rbstat-low = '2'.
APPEND lwa_rbstat TO lt_rbstat.
CALL FUNCTION 'MRM_INVHEAD_MANY_READ'
EXPORTING
t_ivtyp = lt_ivtyp
tables
* T_BLART =
* T_XBLNR =
* T_BKTXT =
* T_USNAM =
* T_ERFNAM =
* T_GJAHR =
* T_LIFNR =
* T_BUKRS =
* T_BELNR =
* T_BLDAT =
* T_BUDAT =
* T_REPART =
T_RBSTAT = lt_rbstat
t_rbkpv = lt_rbkpv
EXCEPTIONS
ENTRY_NOT_FOUND = 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.
ELSE.
LOOP AT lt_rbkpv INTO lwa_rbkpv.
****Do your processing here if that is your requirement
ENDLOOP.
ENDIF.
Hope this helps..
Sri
Similar Messages
-
Need a sample coding for function module MRM_DBTAG_RSEG_READ
hi,
I am working on reports. I was asked to use the function module MRM_DBTAG_RSEG_READ for retrieving the line item information. I tried using the fucntion module, the problem i am facing in the declaration of the internal table I_TE_RSEG for the parameter TE_RSEG.
It would be better if u provide a sample coding that uses this function module.
Promise to award points.
Regards,
anithaHi,
you need to declare type-pools mrm. and declare the work area of type mrm_tab_rseg
check out the code-
REPORT zzswap .
TYPE-POOLS mrm.
DATA: is_te_rseg TYPE mrm_tab_rseg.
DATA: w_belnr type RSEG-BELNR,
w_gjahr type RSEG-GJAHR.
w_belnr = '1000000004'.
w_gjahr = '2005'.
CALL FUNCTION 'MRM_DBTAB_RSEG_READ'
EXPORTING
i_belnr = w_belnr
i_gjahr = w_gjahr
i_buffer_on = 'x'
IMPORTING
te_rseg = is_te_rseg
EXCEPTIONS
entry_not_found = 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.
hope it works.
Regards,
Swapnil. -
A sample coding for 'MRM_DBTAB_RBKPV_READ'
i need the sample coding for 'MRM_DBTAB_RBKPV_READ'. i need the coding through which i can reterieve the value.
Promise to award points.
Regards,
Anithareport zrich_0003 .
type-pools: mrm.
data: xrbkpv type mrm_rbkpv.
parameters: p_belnr type rbkp-belnr.
parameters: p_gjahr type rbkp-gjahr.
start-of-selection.
call function 'MRM_DBTAB_RBKPV_READ'
exporting
i_belnr = p_belnr
i_gjahr = p_gjahr
* I_BUFFER_ON = 'X'
importing
e_rbkpv = xrbkpv
exceptions
entry_not_found = 1
others = 2.
write:/ xrbkpv-belnr, xrbkpv-gjahr, xrbkpv-blart,
xrbkpv-bldat, xrbkpv-budat.
Starting to see a pattern?
Regards,
Rich Heilman -
Sample coding for multiple table join
Hi,
i need a sample coding for multiple table join. can anyone help me out.
regards
GokulSELECT AVBELN AFKDAT AVTWEG ASPART AWAERK AKURRF AKUNAG AKNUMV
BPOSNR BFKIMG BNETWR BMATNR
DBEGRU ELABOR E~MATKL
INTO CORRESPONDING FIELDS OF TABLE ITAB
FROM VBRK AS A INNER JOIN VBRP AS B
ON AVBELN EQ BVBELN
INNER JOIN J_1IEXCHDR AS C
ON AVBELN EQ CRDOC
INNER JOIN KNVV AS D
ON DKUNNR EQ AKUNAG AND
DVKORG EQ AVKORG AND
DSPART EQ ASPART AND
D~BEGRU NE SPACE
INNER JOIN MARA AS E
ON EMATNR EQ BMATNR
WHERE A~FKDAT IN S_FKDAT AND
A~FKART EQ 'F2' AND
A~VTWEG IN S_VTWEG AND
A~SPART IN S_SPART AND
A~KUNAG IN S_KUNAG AND
A~FKSTO NE 'X' AND
B~WERKS IN S_WERKS AND
C~TRNTYP = 'DLFC' AND
E~LABOR IN S_LABOR AND
C~SRGRP IN ('01','02','03','31','32','33','41','42','43',
'81','82','83','95','55','45', '48') AND
B~MATNR IN S_MATNR AND
D~BEGRU IN S_BEGRU AND
E~MATKL IN S_MATKL.
but my suggestion not to use more than 2 table in inner join it will affect in performance use for all entries instead of join.
regards
shiba dutta -
A sample coding for fun. module ' MRM_DBTAB_RSEG_READ' using subroutine
i need to have this function module within the subroutine. something like this
perform item_detail using p_belnr p_gjahr changing i_irseg
loop at i_irseg.
write:/ i_irseg-belnr.
endloop.
form item_detail using p_belnr p_gjahr changing i_irseg
CALL FUNCTION 'MRM_DBTAB_RSEG_READ'
EXPORTING
I_BELNR = P_BELNR
I_GJAHR = P_GJAHR
I_BUFFER_ON = X
IMPORTING
TE_RSEG = I_IRSEG
EXCEPTIONS
ENTRY_NOT_FOUND = 1
OTHERS = 2.
this is not correct. Pls do provide the exact coding.
promise to reward points.Sample code.
report zrich_0004 .
type-pools: mrm.
data: i_irseg type mrm_tab_rseg.
data: x_irseg like line of i_irseg.
parameters: p_belnr type rseg-belnr,
p_gjahr type rseg-gjahr.
start-of-selection.
perform item_detail using p_belnr p_gjahr changing i_irseg.
<b> loop at i_irseg into x_irseg.
write:/ x_irseg-belnr.
endloop.</b>
* FORM item_detail *
form item_detail using p_belnr p_gjahr changing i_irseg.
call function 'MRM_DBTAB_RSEG_READ'
exporting
i_belnr = p_belnr
i_gjahr = p_gjahr
* I_BUFFER_ON = X
importing
te_rseg = i_irseg
exceptions
entry_not_found = 1
others = 2.
endform.
Regards,
Rich Heilman -
A sample prg for fun module Z_GET_N_APPROVER
hi,
i need a sample prog for the fun module GET_N_APPROVER.Is it a standard one? the same suggests that its a custom built one? if you need help with this you may have to post the code of this FM
Regards
Raja -
Sample coding for creating a function moudle to post the Idoc
hi,
I am working on Inbound idoc,
Aim : to update the Ztable
I have created the message type , idoc type and the segment type.
For creating an idoc i have used the Function module IDOC_INBOUND_WRITE_TO_DB.
Now for posting the idoc, i need to create the function module, the main aim is to insert record to the Ztable, what should be my input and the output parameters,
Can u provide the sample coding for itAs you are dealing with a IDOC, the parameters will have to be standard as any other IDOC processing function module. For example take a look at IDOC_INPUT_BANK_CREATE.
You will have to read the data exactly the way the standard code does and the only change will be once you read the data how do you want to handle the data.
Regards,
Ravi
Note : Please mark all the helpful answers -
Very urgent help needed in activating a function module
Hello experts.
I had a standard report and i copied into an z report. i need to change some field output , and that field is there in a standard function module.so i copied that fun module into z fun module and stored in a new fun group. Now it is showing the error in the z fun module. include in the fun module is giving the error stating that it is not existing. please help me in coping the standard fun module correctly . please its very urgent.Hi,
You should not copy a Function module alone, as it will have some dependant INLCUDES and global data in TOP include of the function group.
SO if you want the function module copy the entire Function Group into Z function group.
Regards,
Sesh -
Fun module to change the ' sales area field(AUFSD) ' in BP transaction
Hi all,
this is anil reg fun module to change BP.
I need to change the value for a field AUFSD in BP transaction.
Could anyone please list the function module that can be used?
Regards,
Anil.Dear Rhesa,
I said you also have to add the division, distribution channle and the tupples (combination of div and dis. channel) under the particular sales org.
T code: ppoma_crm
Double click on your sales org...you can see 4 tabs are there...click on attribute tab....choose the relevant attribute maintainance scenario (sales/service/marketting)..then add the division, distribution channle and the tupples (combination of div and dis. channel)..save it...
If still you face the problem, please send me the screen print at [email protected]..
Thanks,
Atin -
Hi Experts,
I called the fun. module CS_BOM_EXPL_MAT_V2 in SE38.
While executing the function module, it is giving output for some types of material like (TP0331-).
But it is raising the exception ALT NOT FOUND for some types of material like 'TB1000-'
But for all types of material, it is giving correct output in SE37.
I gave the input parameter's,
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
DATUV = sy-datum
EMENG = '1'
MKTLS = 'X'
MEHRS = 'X'
MTNRV = 'TB1000-'
STLAL = '1'
STLAN = '1'
SVWVO = 'X'
WERKS = '0010'
VRSVO = 'X'
TABLES
stb = it_stpox
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9
Can you please suggest me, why for the particular types of material, these function module is executing correctly in SE37 not in SE38.
Whether i need to give some more inputs in SE38.
Please guide me,
Thanks in advance,
Vijay.Rhi,
i have done the code like this,
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
DATUV = sy-datum
EMENG = '1'
MKTLS = 'X'
MEHRS = 'X'
MTNRV = 'TB1000-'
STLAL = '01' """" i have changed the value as 01 instead of 1.
STLAN = '1'
SVWVO = 'X'
WERKS = '0010'
VRSVO = 'X'
TABLES
stb = it_stpox
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9
it is a small problem..
whether u need any more information..
please let me know.. still it is not working means,
paste your code.. i will check
regards
vijay -
Please, Help me. I need to do Pluse Width Modulation using LabVIEW 7.1
I need to do Pluse Width Modulation (PWM) using LabVIEW 7.1. I have some analog signal e.g. sine-wave, then I want to transform this signal to be PWM signal.
See in Figure,
Now I already make by myself, but it 's not good. Because the frequency of sawtooth is very low, so the PWM signal is not smooth. Please , help me or give me for example.
I will try its.
Attachments:
fig4.gif 5 KBHello,
I think the problem you're having comes down to how you're using the function. Basically, the frequency input to the sawtooth function is defined poorly in units of cycles/sample. Of course, we're used to seeing frequency defined in terms of samples/second. But remember, all we have in any programming language is data - in this case we have an array of data. The timing information is to be interpreted, and has nothing to do with the data that defines the waveform. What I mean here is, the time per sample in the sawtooth waveform is completely arbitrary and has nothing to do with the sawtooth itself. It will be defined if you physically output that waveform, because you will be writing some number or samples per second - that will define the frequency of the waveform. Thus, when you are working entirely in software, what you fundamentally care about are the number of samples, or perhaps a bit more specifically, the number of samples/cycle (for periodic functions) and also the number of cycles you'd like to define (together these two tell you the total number of samples). Of course, if you know the rate at which your samples will be output, and you know the samples/cycle that you've defined, those to pieces of information tell you the actual frequency that the signal you output will have.
The moral of the story is, when you wired 100 to the f input of the sawtooth function, it was interpreted as 100 cycles/sample, which clearly doesn't make sense because a single sample cannot represent 100 cycles, let alone even a single cycle. Take a look at the attached VI, where all I have done is used the reciprical function to make the front panel input be in units of samples/cycle instead of cycles/sample. This way you can specify the total number of samples and the samples/cycle, and you should have a pretty good feel for how to use the function in the slightly modified form.
I think that clears things up!
Best Regards,
JLS
Best,
JLS
Sixclear
Attachments:
Sawtooth.vi 24 KB -
To get fun module for Creating prebooking
Hi friends,
Here is my query,
My requirement is a person will prebook the employees for the events from portal
& i need to provide the RFC for that.
I got 2 fun modules for creating prebookings
1) RH_PARTICIPATION_PREBOOK
2) HRIQ_PARTICIPATION_PREBOOK
but these fun modules POPS UP a window after providing the i/p's to it to select the button of prebooking.......
But these is not possible as the SAP screen can't be popped up in portal....
So how do i proceed with this problem??Hi,
See the source code of FMs. Inside somewhre it must be calling other FM which collects actual data. Use that FM.
Reward if useful! -
Heading during downloading into local file using GUI_DOWNLOAD fun.module
Hi Guru's
we have a requirement that we want the plant description as a heading (first line of the file) in the local file. iam using "GUI_DOWNLOAD" function module for downloading data for which iam passing the charecter type internal table. before downloading iam passing all the filed headings to that table and then appending the internal table data into it. now iam getting data properly with field headings . but before that heading i want one more description for a plant field which iam using in my selection screen
in the fun.module "GUI_DOWNLAOD"
we have HEADER file but it is of XSTRING type so it is taking only 2 char.
so how to use this . Plz help me.
thanks well in advance.
UR's
GSANAHi,
Please check the below link,
header in 'gui_download'
Also check Manoj kumar's reply in the link,
header information to gui_download
Hope this helps.
Best Regards. -
Need name of a function module or BAPI to update the Tax Classification val
Hi Guru's
Need name of a function module or BAPI to update the Tax Classification value for Material master.
Thanks in advance.Hi
U can try to use BAPI_MATERIAL_SAVEREPLICA
Max -
Need a sample program for hierarchial oops ALV report
Hello experts,
I Need a sample program for hierarchial oops ALV report.Hi,
Check the following sample code...
T A B L E S
tables : ekko.
data definition
types : begin of ty_ekko,
ebeln type ekko-ebeln,
lifnr type ekko-lifnr,
bsart type ekko-bsart,
aedat type ekko-aedat,
ernam type ekko-ernam,
end of ty_ekko.
types : begin of ty_eket,
ebeln type ekpo-ebeln,
ebelp type ekpo-ebelp,
werks type ekpo-werks,
matnr type ekpo-matnr,
menge type eket-menge,
wamng type eket-wamng,
netpr type ekpo-netpr,
end of ty_eket.
data : it_ekko type table of ty_ekko,
it_eket type table of ty_eket.
data: ob_hieralv type ref to cl_salv_hierseq_table.
data: it_binding type salv_t_hierseq_binding,
is_binding type salv_s_hierseq_binding.
S E L C T O P T I O N S
select-options : s_ebeln for ekko-ebeln.
S T A R T O F S E L E C T I O N
start-of-selection.
select ebeln
lifnr
bsart
aedat
ernam from ekko
into corresponding fields of table it_ekko
where ebeln in s_ebeln.
if sy-subrc eq 0.
select aebeln aebelp
awerks amatnr
bmenge bwamng
a~netpr from ekpo as a join eket as b
on amandt = bmandt
and aebeln = bebeln
and aebelp = bebelp
into corresponding fields of table it_eket
where a~ebeln in s_ebeln.
endif.
is_binding-master = 'EBELN'.
is_binding-slave = 'EBELN'.
append is_binding to it_binding.
*TRY.
call method cl_salv_hierseq_table=>factory
exporting
t_binding_level1_level2 = it_binding
importing
r_hierseq = ob_hieralv
changing
t_table_level1 = it_ekko
t_table_level2 = it_eket .
*CATCH cx_salv_data_error .
*CATCH cx_salv_not_found .
*ENDTRY.
call method ob_hieralv->display( ).
Cheers,
Ram
Maybe you are looking for
-
Question about the dimensions of a multiprovider
Hi all, I need to create a multiprovider based on 2 infocubes. They have 22 dimensions altogether, without taking the default ones in account. I'm able to group 6 dimensions into 2 because they have characteristics in common, but after this action th
-
No quicklook/preview for documents created with Pages 5.5!
Before opening files and find you can hit the spacebar and have a preview of most of the file types. This always worked well with Pages until the newest version 5.5. Now I can only preview the files created with older versions of Pages. Every file cr
-
Standby Database Switchover Question
I have a Primary and a physical standby database. I have tested switchover and failover to a point. I can't get my client applications to navigate to the "new" primary DB after switchover or failover. I assume it may be something to do with my tnsnam
-
I am building a web-site with intit. Today I found out their SiteBuilder software is not Mac compatable. They suggest downloading FireFox. I am running Mac OS X 10.4.11. Is there an older version of FireFox that I can download in order to build my si
-
I brought my Macbook to work today and later on that morning I was notified by IT that my mac was causing a Max Attack of some sort which was crashing the network. I also have had this problem at home where I plug my Macbook into the network and it c