Problem with a bapi fm...
hi all,
i have a problem with Bapi_goodmvt_create.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gt_header
goodsmvt_code = gt_bapigm_code
testrun = 'X'
IMPORTING
goodsmvt_headret = gs_headret
TABLES
goodsmvt_item = gt_item
return = gt_return.
IF gt_return-type <> 'E'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ENDIF.
in the error table gt_return iam getting,
while running in the test run mode no errors are comming. but while running test run mode immediately iam getting the below error, but i havent opened the plant or material anywhere,
"The plant data of the material 801187 is locked by the user PREM."
help me in this issue,
Thanks,
Prem.
Use WAIT for 5 seconds before COMMIT. It may work.
Regards,
Amit
Reward all helpful replies.
Similar Messages
-
Problem with a BAPI collecting dunning levels
Hello all experts,
I am having a problem with BAPI DebtorCreditAccount (called from a VB program), collecting dunning levels.
The BAPIs is called like follows (only the essential code is shown):
The first function (GetCustomerCurrentBalance) works fine but the second (GetCustomerHighestDunningLevel) doesnt work.
Public Function GetCustomerCurrentBalance(ByVal strCustomerID As String) As Decimal
Dim objARAccount, objReturn, objActualBalance As Object
Try
objARAccount = Me.p_sapBapi.GetSAPObject("ARAccount", "1000", Me.ConvertCustomerID(strCustomerID))
objARAccount.GetCurrentBalance(Return:=objReturn, ActualBalance:=objActualBalance)
Return CType(objActualBalance.Value("TOTAL_BAL"), Decimal)
Catch ex As Exception
Return 0
Finally
objARAccount = Nothing : objReturn = Nothing : objActualBalance = Nothing
End Try
End Function
Public Function GetCustomerHighestDunningLevel(ByVal strCustomerID As String) As Integer
Dim objDebtorCreditAccount, objReturn, objHighestDunningLevelD As Object
Dim objTEST1 As Object
Try
objDebtorCreditAccount = Me.p_sapBapi.GetSAPObject("DebtorCreditAccount", Me.ConvertCustomerID(strCustomerID), "0001")
objDebtorCreditAccount.GetHighestDunningLevel(Return:=objReturn, HighestDunningLevelD:=objHighestDunningLevelD)
Return CType(objHighestDunningLevelD.Value("DUNN_LEVEL"), Integer)
Catch ex As Exception
Return 0
Finally
objDebtorCreditAccount = Nothing : objReturn = Nothing : objHighestDunningLevelD = Nothing
End Try
End Function
The error message I get is:
Message: The runtime object of type DebtorCreditAccount with the persistent key 00000480060001 could not be created in the Business Object Repository.
Message-Nr: 826
Workarea: OL
R/3 error message: Object does not exist
Please give me some input on how to proceed!
Best Regards,
NiklasThanks Vijaya for your fast reply. The parameters that I am giving as input are however correct.
I have investigated the problem a bit further and tried some other calls.
If I just chose to create an object of the type DebtorCreditAccount (without submitting any parameters) and then use the same method call as before (se code in topic above) I get the following error: Mandatory parameter HIGHESTDUNNINGLEVELA missing. This must mean that it knows that something is missing.
objDebtorCreditAccount = Me.p_sapBapi.GetSAPObject("DebtorCreditAccount")
objDebtorCreditAccount.GetHighestDunningLevel(Return:=objReturn, HighestDunningLevelD:=objHighestDunningLevelD)
If if add the mandatory parameter HIGHESTDUNNINGLEVELA I get the error message "The persistent key for an business object instance of type DebtorCreditAccount has not been set. Cannot invoke method GETHIGHESTDUNNINGLEVEL. This I interpret as the object has not been right instantiated. This brings me back to square one.
objDebtorCreditAccount = Me.p_sapBapi.GetSAPObject("DebtorCreditAccount")
objDebtorCreditAccount.GetHighestDunningLevel(HIGHESTDUNNINGLEVELA:="0", Return:=objReturn, HighestDunningLevelD:=objHighestDunningLevelD)
Grateful for a response!
Regards,
Niklas -
Problem with mutiple BAPI calls during the commit
Hi all,
I am trying to create accounts for a given partner i the transaction F9K1 using the BAPI BAPI_BKK_ACCNT_CREATE. After calling the BAPI I am committing it too.
The problem is if I try to create multiple accounts like RCA, ACA, MCA, IOE and so on, the first time the BAPI is called to create RCA account it is successful an it is even committing. When I call the BAPI to create the the ACA account the return table from the BAPI shows success message but the commit fails. If I restart the program and try creation of accounts now the RCA will throw a error msg saying account already exist, ACA account will be created and then the MCA account creation fails in the same manner explained above.
I see the issue is with multiple BAPI calls and I tried using all sort of methods like clearing buffers, start new task in local and wait command and all. But none of them seems to be working for me.
Can anyone please guide me on how I can overcome this problem.
Thanks.BAPI :
BAPI BAPI_BKK_ACCNT_CREATE
Functionality
Use this method to create an account in Bank Customer Accounts. This method returns the following values:
Identification details for the newly created account such as the internal and the external account number, and the bank area details
A table containing error messages
To create an account by using this method, you must specify values for the import parameters Bank Area (BANKAREA) and Product (PRODUCTNAME).
Note: You must also specify a value in the External Account Number (EXTERNALACCOUNTNR) parameter if you have defined an external number range for the bank .
REgards,
Jayan. -
hi ,
i transfered legacy data to sap system using bapi.
for that i used salesorder creation bapi.
'BAPI_SALESORDER_CREATEFROMDAT2'.
it is uploading my header data and item data .
even it set the values correctly.
but the above rfc not creating saledocument.
where i did mistake pls rectify my problem.hi michel i agree with u. i called 'bapi_transction_commit' first
after than i called bapi_saleorder_createformdat2.
i checked in debugging modein that function module.
it gives sy-subrc 4 for the below statement
fbgenmac 'BAPI_SALESORDER_CREATEFROMDAT2'.
how i will rectify this problem.
do u want the code.
i will send my code.
Edited by: kartik p on Sep 22, 2008 5:00 PM -
Problems with running BAPI BAPI_SALESORDER_CREATEFROMDAT2
Hi all,
I’ve got a problem running BAPIs in SD invironment.
I’m creating contract releases in SD via BAPI.
First I run BAPI BAPISORDER_GETDETAILEDLIST in my program to get detaildata of the contract.
Then I run the BAPI BAPI_SALESORDER_CREATEFROMDAT2 filled with contract reference data and in addition with order data to create the contract release.This works properly so far. On both sides in the contract and in he contract release I find the correct document flow. Means: in document flow of the contract I find all the releases created . Also I find the contract in the documentflow of the releases.
But…something does not work: In the contract the released values are not updated. When I create a release manually, the release values are accumulated in the contract in field ‘value released’ under flag ‘item detail’. But this does not work, when the leases are created via BAPI. However I checked several parameters in the BAPIS but I cannot find something that leads to an update .
Can somebody help me and can tell me what is to be done to get this field updated? Thanks in advance.
same in German...
Ich habe ein Problem mit BAPIs im SD.
Ich erzeuge Abrufe zum Kontrakt im SD mittels BAPIs.
Zuerst lasse ich den BAPI BAPISORDER_GETDETAILEDLIST laufen, um mittels Kontraktnummer alle Daten zum Kontrakt zu bekommen. Dann lasse ich den BAPI BAPI_SALESORDER_CREATEFROMDAT2 gefüllt mit SD-Abrufdaten und den Referenzdaten des Kontraktes laufen Dies funktioniert soweit sehr gut. Sowohl im Kontrakt als auch im Abruf sind jeweils die übergeordneten bzw. untergeordneten Vertiebsbelege zu sehen. Die Referenz wird also hergestellt. Jedoch wird im Kontrakt nicht die Abrufwerte aufsummiert. Normalerweise wird bei manueller Erstellung der Abrufe im Kontrakt die jeweilgen abgerufenen Werte gegen den Kontraktwert aufsummiert (Feld abgerufene Werte im Kontrakt unter Reiter ‚Positionsdetail‘. Ich habe alle möglichen Parameter im BAPI geprüft und getestet aber nichts gefunden, was mir die abgerufenen Werten aufsummiert.
Kann mir dazu einen Tip geben, was ich tun kann, damit auch die Werte richtig referenzieren ? Danke im Voraus.the usage of exactly this BAPIs in the way I described is in according to SAP note 370988.
BAPI_SALES_DEL_SCHEDULE_CREATE ist for SD schedule agreements and not for SD contracts and does not offer Input parameters for e.g. adding price conditions what is needed for my task.
The field in contract I mentioned e.g. in Transaction VA42 VA43 is filled / gets its Information out of Infostructure/table S135. The BAPI seems not be able to fill this structure while creating the contract release.
I'm looking for example an input parameter I did not found already or any other option that leads to an update of infostructure S135 while creating/posting a release via BAPI. -
Moderator message: please choose more descriptive subject lines for your posts.
Hi,
i face with a problem while using the bapi bapi_document_create2.
it adds the file path like '
Dogan\Main\Standards\0010415--P.pdf'
but i cannot open the file in cv02n.
And also it adds the material master elements but the description is not seen and when looked at with cv02n for material master, it asks me to 'Do you want to delete the object links? ', why i get this error?
The file is not on desktop, it is in another server and its path like that:
Dogan\Main\Standards\0010415--P.pdf'
Here is my sample code(i am trying to make it run):
(itabb is the internal table that i upload the file, tab-delimeted txt file.)
data:
lt_drad like standard table of BAPI_DOC_DRAD with header line,
data like BAPI_DOC_DRAW2,
dd like standard table of BAPI_DOC_DRAT with header line,
dfiles like standard table of BAPI_DOC_FILES2 with header line,
return like BAPIRET2.
clear:lt_drad,lt_drad],data,dd,dfiles,dfiles[.
LOOP AT itabb.
CLEAR lt_drad.
lt_drad-objecttype = 'MARA'.
lt_drad-objectkey = itabb-matnr.
APPEND lt_drad.
data-DOCUMENTTYPE = itabb-dokar.
data-DOCUMENTNUMBER = itabb-doknr.
data-DOCUMENTVERSION = itabb-dokvr.
data-DOCUMENTPART = itabb-doktl.
data-DESCRIPTION = itabb-dktxt.
data-WSAPPLICATION1 = itabb-dappl.
data-DOCFILE2 = itabb-filep.
data-DATACARRIER2 = itabb-dttrg.
data-username = itabb-dwnam.
data-LABORATORY = itabb-labor.
dfiles-storagecategory = 'SAP-SYSTEM'.
dfiles-docfile = itabb-filep.
dfiles-wsapplication = itabb-dappl.
APPEND dfiles.
ENDLOOP.
sort:dfiles.
delete adjacent duplicates from dfiles.
data: dtype like BAPI_DOC_AUX-DOCTYPE,
dnumber like BAPI_DOC_AUX-DOCNUMBER.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
DOCUMENTDATA = data
** HOSTNAME =
** DOCBOMCHANGENUMBER =
** DOCBOMVALIDFROM =
** DOCBOMREVISIONLEVEL =
** CAD_MODE = ' '
** PF_FTP_DEST = ' '
** PF_HTTP_DEST = ' '
** DEFAULTCLASS = 'X'
IMPORTING
DOCUMENTTYPE = dtype
DOCUMENTNUMBER = dnumber
** DOCUMENTPART =
** DOCUMENTVERSION =
RETURN = return
TABLES
** CHARACTERISTICVALUES =
** CLASSALLOCATIONS =
DOCUMENTDESCRIPTIONS = dd
OBJECTLINKS = lt_drad
** DOCUMENTSTRUCTURE =
DOCUMENTFILES = dfiles
** LONGTEXTS =
** COMPONENTS =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
endform.
Edited by: Thomas Zloch on Jun 9, 2011 4:05 PMThanks
however i can refer to the other server's files manually, through cv01n.
please write me about how to use this bapi?
thanks. -
How to create a document with SRM BAPIS
Dear colleagues,
I have a problem with SRM BAPIs. I need to insert a pdf document into a record using SAP BAPIs, This document is already in a table in a binary format
I am trying with these BAPIs:
1.
CALL FUNCTION 'BAPI_SRM_DOC_CREATE'
EXPORTING
rms_id = rms_id
sps_id = sps_id
documentid = documentid
description = 'DESCRIPTION'
do_commit = 'X'
documentid_check_unique = 'X'
IMPORTING
return = return
objectid = objectid
documentclass = documentclass
TABLES
required_properties = required_properties.
This BAPI is working as expected. It returns objectid for the new document.
2. Now I'm using BAPI_RECORD_ADDELEMENT:
ls_doc_id-objectid = objectid.
CLEAR: ls_sp_poid. " clear weg und ls_sp_poid clearen
ls_sp_poid-name = 'DOC_ID'.
ls_sp_poid-value = ls_doc_id.
APPEND ls_sp_poid TO lt_sp_poid.
CLEAR: ls_doc_id.
ls_sp_poid-name = 'VARIANT'.
ls_sp_poid-value = '0'.
APPEND ls_sp_poid TO lt_sp_poid.
CLEAR: ls_doc_id.
ls_sp_poid-name = 'VERSION'.
ls_sp_poid-value = '0'.
APPEND ls_sp_poid TO lt_sp_poid.
ls_insertion_by_anchor-anchor = 'DECRET'.
ls_insertion_by_anchor-parent_node_id = '5'.
ls_insertion_by_anchor-parent_node_attr_name = 'DECRETAT'.
ls_insertion_by_anchor-parent_node_attr_value = '40'.
CALL FUNCTION 'BAPI_RECORD_ADDELEMENT'
EXPORTING
objectid = zrm_attcab_scr-phio_id
documentclass = documentclass
sps_id = 'ZRM_SPS_DOCVAR'
anchor = 'DECRETS'
description = 'Descripcion'
store_as_new_version = 'X' "Si X se crea vacio
* STACKED = ''
* DOC_CONTEXT =
element_type = 'I'
* insertion_by_anchor = ls_insertion_by_anchor
* insertion_by_modelid = insertion_by_modelid
* INSERTION_BY_REFERENCE_NODE =
* ALL_SAME_NAME_ANCHOR = 'X'
* SET_ELEM_DESCR_HARD = ' '
* omit_authority_check = 'X'
IMPORTING
return = ls_return
TABLES
element_sp_poid = lt_sp_poid.
* ELEMENT_PROPERTIES =
* ELEMENT_VISIBILITY =
This BAPI returns an internal error
Am I following the correct steps or am I skipping anything?
Could anyone help me?
Thanks in advance!!I have the same problem!!!
Anyone knows?
Thanks! -
Problem with BAPI BAPI_REQUISITION_CREATE
Hello,
I have problems with BAPI BAPI_REQUISITION_CREATE. I need to create Purchase requisition for services. If I use BAPI BAPI_REQUISITION_CREATE, Purchasing requisition is created, but field NETWR in table EBNK is 0. If I create purchasing requisition manualy using transaction ME51N, field NETWR in table EBNK is filled with correct price.
Can you pls. help me, what do I wrong in calling BAPI_REQUISITION_CREATE?
Thanks®ards,
JirkaNot sure if you got your answer or went to OSS for a resolution. But, as I was searching OSS for my issue, I came across the following note:
Note 1498435 - BAPI_REQUISITION_CREATE: EBKN-NETWR is not updated -
Hi,
We are using the BAPI BAPI_ALM_NOTIF_CREATE to create a plant maintenance notification. I have populated it with the following data :
maintenance notification type
equipment number in header
functional location in header
coding group in header
coding in header
I am using a wrapper bapi to house this one and am also calling a BAPI_TRANSACTION_COMMIT after this bapi is called .
However my problem is when the BAPI runs. The result has notification number which starts with a '%'. When i go into IW23 to check if a notification was created , none exists !
I used the same data and ran transaction IW21 directly, and the notification was successfully created. That means the data im using is correct and sufficient.
So why is it not being created properly with the BAPI ?
Any and all help will be greatly appreciated.
Thanks,
AmitHi Amit,
This doesn't sound like a workflow problem. I think you will have more luck when posting in the appropriate ABAP forum.
Which I see you have done. But next time mention that you cross post in different forums.
Regards,
Martin -
Problem with BOM Quant while creating Sales order with reference using BAPI
Dear All,
I am facing problem with creating a slaes order with reference to other sales order by using BAPI_SALESORDER_CREATEFROMDAT2 .
Sales order is getting created but
1. It exploding the BOM means the line items which are not there in the reference SO also coming in the new SO ( all BOM items are coming )
2. Schedule line for BOM header item is getting copied to all sub items of BOM.
Can any one help me out to prevent the above deviations in creating Sales order with reference by using BAPI_SALESORDER_CREATEFROMDAT2.
Note: while passing the parameters to BAPI_SALESORDER_CREATEFROMDAT2
all the data related to items is exactly the same as in the original Sales Order.
Thanks in advnace.
Regards,
JohnHi All,
Can any one help me !!!!!!!!!!
please -
Hi guys,
I want to use LSMW with certain BAPI that I found using transaction BAPI (object type BUS1006 for example). However I am not able to use it in LSMW - I get message "No interfaces could be found".
Do you have any ideas how to make this BAPI available for LSMW?Hi
After the step Display Converted Data the exact content of the next steps may differ, depending on the import technique that you have chosen in step 1. The steps displayed by the program for the different import techniques are
BAPI or IDoc:
Start IDoc creation
Start IDoc processing
Create IDoc overview
Start IDoc post-processing
example
Using BAPI in LSM Workbench
We now go through a step by step process of realizing LSMW through a BAPI
Details of BAPI used:
- Business Object: BUS2012
- Method: CreateFromData
Details of Message Type and Basic IDoc Type:
- Message Type: PORDCR
- Basic IDoc Type: PORDCR02
Step 1 : Go to transaction LSMW
Step 2 : Enter project, subproject and object and click on Create
Step 3: Enter the descriptions for Project, Subproject and Object as prompted
Step 4: Now select Settings IDoc Inbound Processing
Step 5 :IDoc Inbound Processing screen appears. Enter the required details as shown below:
Step 6 :Click on Activate IDoc Inbound Processing.
Step 7 : Click on Yes when prompted for Activate IDoc Inbound?
Step 8 : Hit on Back to return to the main screen
Step 9: Click on Continue (F8). Following Screen appears
Step 10: Select the Step 1 Maintain Object Attributes and select Execute
Step 11 : Select the radio button Business Object Method and enter the following details:
Business Object: BUS2012
Method: CreateFromData
Step 12: Save and click on BACK button. Following information message is displayed
Step 13: Maintain Source Structure
Step 14:Create source structure HEADERDATA and a lower level structure ITEMDATA
Save and go back to main screen
Step 15 : Maintain source fields
Enter the fields as shown below:
Step 16:Maintain Structure Relations
Maintain structure relations:
- Select E1PORDCR in previous fig. and click on CREATE Relationship. Following screen appears:
- Select HEADERDATA and hit ENTER. Do the same for other
structures
Step 17 :Maintain Field mapping and conversion rules. Maintain field mapping as shown:-
Step 18 : Specify File
Provide the link for the test file. Maintain the same structure of the test file as defined before
Step 19: Select Assign Files & execute
Step 20: Read Data
Step 21: Display read data
Step 22: Return to main screen and select Convert Data followed by Display Convert Data
Step 23: Return to main screen and select Start IDoc generation
Step 24 : Process Idoc through the step Start Idoc Processing on main screen
Step 25: Click on Create Idoc Overview on the main screen. Here the data record and status record of the Idoc can be viewed
Reward if usefull -
Problem with headerline in OO again - other thread was locked -
Problem with headerline in OO
Hello,
I've the problem that I cannot give values from an inertnal table to
an variable because the itab has no headerline, because in oo it is not possible.
Here the coding:
structure in se11 ZACTIVITYIF with components:
DESCRIPT
CATEGORY
PRIORITY
OBJECT
DATE_FRO
DATE_TO
TIME_FRO
TIME_TO
CONT_NO
LANGTEXT
STATUS
OO-Coding:
DATA: lt_itab TYPE TABLE OF zactivityif.
DATA: itab TYPE zactivityif.
Loop at dbtab
itab-status = '005'.
APPEND itab TO lt_itab
endloop.
set variable for bapi
lss_text-tdline = lt_itab-langtext. <= here I get error: no tablerwith headerline
How can I fill an internal table in OO or how can I fill this variable lss_text-tdline ?
Any ideas ?
LANGTEXT is type TLINE
I calling bapi for creating an activity
Sorry for this double thread -the other was locked however.
Thanks GThe other one was locked because handling internal tables without header lines is extremely basic .
Read the documentation, search the forum search the web.
Or if your question is not as basic as it seems, post a new one with a better explanation.
Locked again
Rob -
Hi All,
I am facing a problem with bdc on va02. After hitting enter on the first screen it pops an info message "consider subsequent douments". It doesn't get recorded in recorded. Hence I am not able to run the transaction with no screen mode. Please help me to suppress the info message
NavinHi Navin,
These kind of messages and pop ups are precisely the reason why use of BDC for updating transactions is NOT advisable.
If you were to bypass such messages, you would have to put a check to see why the message appears (in this case probably because the sales document flow for the sales order in table VBFA has some documents) and then write a logic to either handle the message or not.
Instead i would recommend you use the BAPI functions provided by SAP to change the sales order.
Have a look the BAPI for sales order change attached to the business object BUS2012. For this goto transaction SWO1 and enter the BUS2012 business object. Then goto methods and look for the "change" method. Double click on the method and look at the BAPI used to implement the method. Go ahead and use this method in your program as against a BDC.
I am sure it will be a much better option.
Otherwise if you still want to proceed with a BDC, please debug at the point where the message/pop up appears to ascertain reason for the same and then incorporate the same check in your program to handle the pop up.
Regards,
Aditya -
Problem with MultiLeadSelection in a table
Hi All,
I am still having the problem with the multilead selection in a table.
I am setting the table properties to multi and I have an event handler for the onaction property, named as leadselection.
I am writing the code below for the event handler.
public void onActionLeadSelect(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
int selectedRow = firstNode.nodeOPENITEMS_open().getLeadSelection();
int sizeOfOpen = wdContext.nodeOPENITEMS_open().size();
IOPENITEMS_openElement element = (IOPENITEMS_openElement)firstNode.nodeOPENITEMS_open().getElementAt(selectedRow);
for(int i=0;i<wdContext.nodeOPENITEMS_open().size();i++){
if(wdContext.nodeOPENITEMS_open().isMultiSelected(i)||selectedRow == i){
wdContext.currentContextElement().setMultiDocNumber(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(selectedRow).getDOC_NO());
wdContext.currentContextElement().setMultiItemno(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(selectedRow).getITEM());
wdContext.currentContextElement().setMultiRepItem(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(selectedRow).getREP_ITEM());
wdContext.currentContextElement().setMultiSubitem(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(selectedRow).getSUB_ITEM());
What i am trying to do is..On multiselection or on single leaad selection, I should pass the whole amount to the BAPI or the amount related to only the leadselection.
But when I am trying to run..this code..I am nt able to select in a multiple way..and more over if I press ctrl then I am able to make the other rows highlighted with orange color..but not normally and after making them highlighted also i am not able to pass the amount for all the selected rows..together..
Kindly suggest me..something..
Regards
DKHi,
Try this ,
for(int i=0;i<wdContext.nodeOPENITEMS_open().size();i++){
if(wdContext.nodeOPENITEMS_open().isMultiSelected(i)){
wdContext.currentContextElement().setMultiDocNumber(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(i).getDOC_NO());
wdContext.currentContextElement().setMultiItemno(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(i).getITEM());
wdContext.currentContextElement().setMultiRepItem(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(i).getREP_ITEM());
wdContext.currentContextElement().setMultiSubitem(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(i).getSUB_ITEM());
If you use the selectedRow variable in if condition, it will fetch only one row from table. Because the getLeadSelection() method gives the number of row which got selection on first click before pressing Ctrl key. So you can get only one value for leadselect. that's why the if loop failure for other selected rows.
regards
karthik -
Problem with searching for 'empty' emails with BAPI_BUPA_SEARCH
Dear ABAP'ers.
I have got a small problem with BAPI_BUPA_SEARCH.
I Use this BAPI to search for Business Partners with the Email condition.
I put rhe Email to lv_email variable, it works ok.
lv_email = ' '
CALL FUNCTION 'BAPI_BUPA_SEARCH'
EXPORTING
email = lv_email
TABLES
searchresult = lt_searchresult <= returns no BuPas
return = ls_bapiret2 .
But I need to have a possibility to search for such Business Partners who have got no email address. Unfortunatellu when I pass an empty lv_email to BAPI, it returns no Business Partners whilst such BuPas exist in database.
Is there some possibility to search for those BuPas who have got no email address assigned?
I will be thankful for help.
Regards,
P.Can you query ADR6 table where SMTP_ADDR = space.
and pick the PERSNUMBER or ADDRNUMBER and pick the Patners related to that ..
Maybe you are looking for
-
No longer outputs video down FW, when using FW external HD?
In a recent upgrade (I think it was actually when I went to OSX 10.4.6 - although it might have been QT 7.1.1 or even FCS 5.1.1) I have noticed that: - when using an external FW800 HD drive for captured footage, and trying to play out DV to my ADVC-1
-
IPod frozen/not read by computer
I turned my computer on today only to see that iTunes was not recognizing my iPod. Later, in the spot on iTunes where the device usually showed up, it said "IPOD" but nothing else. I hit eject and removed the iPod but it seems to be frozen on the "Co
-
How to avoid multiple call to function:
In our datawarehouse we have a huge receipt row table where all metrics ar stored in the local currency. On top over that we have views which calculate metrics to the desired currency. So basically all views looks like this select geo_region, product
-
Oracle RAC listener password protection
Dear Gurus, We have 2 node RAC setup 11gR2 and as a part of hardening we wish to set password for listener. Can some one please guide how can we set password on listener that registered with CRS. What would be the impact if any? Also, there are two t
-
Publish site to .mac using dreamweaver
Hey guys! Can anyone give me a detailed description of how to post a site made in Dreamweaver to my .mac? I understand I need to save the site locally, to my desktop for instance, and then deposit those files to my .mac. But where exactly do they go?