Function module to read Shopping cart
Folks,
The answer I am looking for is not BBP_PD_SC_GETDETAIL.
Here is the situation: During the approval process, the approver needs to be able to change few fields. So, i used the secur_badi to give him a "Change shopping cart" button. But, when he hits the change, all the fields on the shopping cart are available for change. So, this guy could monkey around and change some of the fields he is not suppose to change and I need to catch this in the check badi.
So, I started using the BADI "BBP_DOC_CHECK_BADI" and used FM 'BBP_PD_SC_GETDETAIL' to get the shopping cart details. But, this gives me only the PRESENT values on the screen ... and I need to compare it with the shopping cart values in the database. Is there any function module that could help me here?
The idea is to compare field by field and throw an error if he chnages the fields he is not supposed to chnage. (ugly ha!)
Thanks
Sri
Hi Sri,
You are right, calling BBP_PD_SC_GETDETAIL during the user session will retrieve the data in user session memory, and not the physical one stored in the database.
So you have 2 solutions:
- check each field value against physical value in DB: direct SQL access in SRM tables (CRMD_ORDERADM..., BBP_PD...)
- change the PBO modules "modify_screen" of each SC screen to close wanted fields if sy-tcode = SC aproval TCODE. this would be eased if a BADI was available for SC screens (like BBP_UI_CONTROL_BADI).
I prefer the 2nd one.
Rgds
Christophe
Similar Messages
-
Function Module's for Shopping Cart.
Hi all,
I want to know which is the function module to know item details and for status of shopping cart in BBP_PD. Also, can anybody please guide me how to use those in simple reports.
Thanks in advance.
Regards!
Rahulhi,
You can see the foll FM's:
BBP_PD_SC_GETDETAIL
BBP_PD_SC_GETITEMLIST
BBP_PD_SC_ITEM_GETDETAIL
BBP_PD_SC_ITEM_STATUS_CHECK
BBP_PD_SC_GETLIST
BBP_PD_SC_CHECK
In addition, you can use the tables
CRMD_ORDERADM_H,
CRMD_ORDERADM_I,
BBP_PDBEI
to get the SC details.
BR,
Disha.
Pls reward points for useful answers. -
Function modules to read ibase at runtime
Hi guru's,
Is there any function modules to read ibase at run time if yes please send those function modules its urgent please please.
regards
naveen kumaranswered
-
Any function module to read all the values in Tcode-PPQD?
Hi all
Is there any function module to read all the values in Tcode-PPQD (Display Qualifiaction Catalog).
and any idea what tables are involved to get these values like parent and child relationship?
Thanks in advance.
Murali.Murali,
you can use the following..
data: w_sobid type sobid, "Qualification ID
w_objid type objid. "Qualification Catalog
select objid into w_objid
up to 1 rows
from HRP1001
where otype = 'QK'
and plvar = '01'
and istat = 1
and risgn = 'B'
and relat = '030'
and endda ge sy-datum
and begda le sy-datum
and sclas = 'Q'
and sobid = w_sobid.
endselect.
if sy-subrc eq 0.
write: / w_objid,w_sobid.
endif.
Regards,
Suresh Datti -
Function module to read data form customer tabels
hi,
can anyone suggest function module to read data form customer tabels?
Please give me reply.
TKS,
Dharani.PHi,
this thread is hvaing your answer.
Is there a Function module to get customer hierarchy data?
Regards,
Pravin -
Function module to read 'Customer Material InfoRecords'?
Is there a function module to read customer material inforecords?
Transaction code VD53 is the display screen for Customer Material INforecords. I have a requirement to read this data in user exit.
Thanks
GovaI found one FM. RV_CUSTOMER_MATERIAL_READ
But it won't serve my purpose as I need to find customer material number for a given material number.
But, I found the table where this information is stored. KNMT. I'm going to create a custom FM to serve my purpose. -
Help required in creating function module which reads payroll clusters.
Hi ,
We have a requirement where in we need to create a function module for reading a sequence of tables from payroll clusters. This function module does two functions:
1.Read the payroll results from one system.
2.write the payroll results to other system.
please do the needful as soon as possible.
Thanks in advance.
Regards,
Durga.hi
Refer to the below thread
Programming with Clusters for HR-Payroll
Regards
Sameer -
Function module to read Comma Seperated File (CSV)
Hi,
Is there any Function module to read CSV file from presentation server or Application server?
Regards,
MadhuHi madhukeshwar,
1. Exactly for this purpose,
i have developed an independent FORM
where we give inputs
a) file name (eg. abcd.txt)
b) separator (eg , COMMA in your case)
c) internal table (eg. t001)
2. It will provide the data
in proper format
(no matter what the separator)
(it can work with any kind of separator)
3. just copy paste in new program.
REPORT abc.
change your table declaration and file name
DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
PERFORM myupload TABLES t001 USING 'd:\t001.txt' ','.
BREAK-POINT.
in debug see t001
INDEPENDENT FORM
FORM myupload TABLES orgtab
USING filename separator.
Data
DATA : BEGIN OF itab OCCURS 0,
myline(1000) TYPE c,
END OF itab.
DATA : extension(5) TYPE c.
DATA : name(100) TYPE c.
DATA : newfilename TYPE string.
Step 1
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = filename
TABLES
data_tab = itab.
Step 2
LOOP AT itab.
REPLACE ALL OCCURRENCES OF separator IN itab-myline WITH
cl_abap_char_utilities=>horizontal_tab.
MODIFY itab.
ENDLOOP.
Step 3
DATA : path LIKE pcfile-path.
path = filename.
CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
EXPORTING
complete_filename = path
CHECK_DOS_FORMAT =
IMPORTING
DRIVE =
extension = extension
name = name
NAME_WITH_EXT =
PATH =
EXCEPTIONS
invalid_drive = 1
invalid_extension = 2
invalid_name = 3
invalid_path = 4
OTHERS = 5
Step 4
newfilename = filename.
REPLACE name IN newfilename WITH 'temp'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = newfilename
TABLES
data_tab = itab
FIELDNAMES =
Step 5
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = newfilename
has_field_separator = 'X'
TABLES
data_tab = orgtab.
ENDFORM. "myupload
3.
regards,
amit m. -
Function module for reading payroll results
HI,
I need a function module for reading payroll results RT table.
Import parameters are personal number, payroll area, and payroll period.
Export should be RT table.
Regards,
Wasim AhmedHai Wasim
Check the following Code
data: payroll_cluster like t500l-relid.
call function 'PYXX_READ_PAYROLL_RESULT'
exporting
clusterid = payroll_cluster
employeenumber = pernr-pernr
sequencenumber = payroll-evp-seqnr
READ_ONLY_BUFFER = ' '
READ_ONLY_INTERNATIONAL = ' '
CHECK_READ_AUTHORITY = 'X'
IMPORTING
VERSION_NUMBER_PAYVN =
VERSION_NUMBER_PCL2 =
changing
payroll_result = payroll_us
exceptions
illegal_isocode_or_clusterid = 1
error_generating_import = 2
import_mismatch_error = 3
subpool_dir_full = 4
no_read_authority = 5
no_record_found = 6
versions_do_not_match = 7
others = 8
if sy-subrc <> 0.
if sy-subrc <> 0.
write: / 'Fehler beim Laden des US Abrechnungsergebnisses'(003).
write: /'zu Personalnummer'(008), pernr-pernr,
'bei Sequence-Number'(012),
payroll-evp-seqnr.
write: / 'Fehlercode ='(004), sy-subrc.
endif.
endif.
Thanks & regards
Sreenivasulu P -
Function module for reading service line items of a po
function module for reading service line items of a po.............I want to read data from eslh and esll tables to getthe service line details.....
My requirement is if the item category is 9 I need to print the service line items. So I wan to read the data of service line items from a function module. I am not able to find a fm which fetches both elsh and esll data...Hi oskchaitanya ,
use bapi BAPI_PO_GETDETAIL1.
Regards
REA -
Is there any RFC function module to read domain fixed value
Hi,
Is there any RFC function module to read domain fixed value from remote system in basis layer?
As we cannot simply wrap DD_DOMVALUES_GET with a new RFC module,because remote system will not install our component, our wrap function module is not there.
We may need a RFC fm from basis layer.HI,
Try using Function Module:
DD_DOMA_GET , If it is RFC enabled it can be used for reading the domain,
Kindlly go through this link below:
How to get "Fixed Domain Values" from other system by RFC-Call?
Hope it helps,
Regards
Mansi -
Function module to read the expired useful life of asset
Hi,
Is there a function module to read the expired useful life of asset. We are using the depriciation start date to calculate the expired useful life of asset, but the fiscal year shift and matching the calendar year with fiscal is causing the logic to give a month difference between the calculated value and the value in the asset.
Please let me know if there is a Function module or BAPI for getting the values. Kindly provide example for the function module call too.
Regards,
Prabaharan.GHi,
Check the following function modules.
AISC_CALC_EXPIRED_USEFUL_LIFE.
Check the following link it might be of some help to you.
Re: asset useful life
Regards,
Ram. -
Function module to read data from a SPO
Hi guys,
Inside a transformation a have a rule, ABAP routine type, in wich I need to read data from a SPO (semantically partitioned object). Is there an ABAP function module or Class that allows to read data from a SPO?
The SPO from wich I need to read the data is DSO based.
Thanks in advance.
David.Hi David,
The normal procedure is using Function Module RSDRI_INFOPROV_READ. However, according to the documentation it only works for DSOs, InfoCubes and MultiProviders.
Could you access as a work-around a MultiProvider? Or use any logic to first determine which PartProvider of the SPO-based DSO or InfoCube is required and then use the Function Module to read the data?
Best regards,
Sander -
Function Modul for read field label
hi all
i search a function modul for read the field label from data element.
Example for data element matnr, i must have field label text material.
Thx abap_beginHi,
If you give input parameters type, field and table you get data element using
RP_PRINT_GET_DATA_ELEMENT
Try also
KL_TABLE_INFO_GET
But not sure if this futfill your requirement... -
Function Module to Read data from ESLH & ESLL
Hi All,
Presently i am working on the Service Purchase Order
I have to get the data from the Service Master tax conditions which is storing in ESLH & ESLL database tables.
So is there any Function Module to get the data.
regards:
Sridhar JHi David,
The normal procedure is using Function Module RSDRI_INFOPROV_READ. However, according to the documentation it only works for DSOs, InfoCubes and MultiProviders.
Could you access as a work-around a MultiProvider? Or use any logic to first determine which PartProvider of the SPO-based DSO or InfoCube is required and then use the Function Module to read the data?
Best regards,
Sander
Maybe you are looking for
-
Changing the default file manager in XFCE
How would I go about using Nautilus as the default file manager in XFCE instead of Thunar? I know it can be started up with 'nautilus --no-desktop', but how do I make this the default when opening folders from the desktop, menus, etc..? The main reas
-
My photo stream on my iPhone 5 has 721 photos in it. But my photo stream on my macbook air has only 211 photos in it. The accounts do seem to be sync'd, because when I delete a photo from a stream in one device it gets automtaically deleted in the
-
Oracle 8.0.5 Install on Linux for Alpha
I am getting a orainst.cm not found error while trying to Install Oracle on the Alpha Server with Redhat Linux . Tried all the symbolic link tricks of /bin/bash. Nothing works for me. Help me if you have any clues! Thanks Anand null
-
PDF with imported video leaves outline on subsequent page
I have an InDesign file with an imported MOV video. When I Export an Interactive PDF and open it in Acrobat X (10.1.7), the video plays fine, but when I advance to the next page, there is a remnant ghost outline in the exact location of the video on
-
Hi guys! I've got a strong wish to use Forms6i, but... My desire is some strange. Because I want to use Oracle Forms and Reports to develop application for MSSQLServer. Please say to me it is possible. Should I tune Net8 for that purpose? If I should