Issue on condition value after creating PO using bapi_po_create1
Hi ,
I am passing condition value as 45.55 to Create PO using bapi_po_create1,
but after Creating PO, But Condition Value reflecting ME23N as 4,555.00.
Kindly Provide any solution if you have
Hi ,
I am passing condition value as 45.55 to Create PO using bapi_po_create1,
but after Creating PO, But Condition Value reflecting ME23N as 4,555.00.
Kindly Provide any solution if you have
Similar Messages
-
How to get the value of bill doc after creating it using tc VF01.
hi,
i want to get the bill doc no after creating it using BDC tc VF01.
with that no i have to update the ztable.hi,
i tried with the above mentioned method to get the created delivery no.but i am unable to get the created billing doc no using bdc tc VF01.any idea about this...
REFRESH tt_bdcdata.
PERFORM bdc_dynpro USING text-005 text-006.
PERFORM bdc_field USING text-008
text-017.
PERFORM bdc_field USING text-009
text-011.
PERFORM bdc_field USING text-017
wa_worklist-del_no . "wa_created-document_numb.
PERFORM bdc_dynpro USING text-006 text-007.
PERFORM bdc_field USING text-008
text-018.
PERFORM bdc_field USING text-009
text-019.
CALL TRANSACTION c_t_bill USING tt_bdcdata
MODE c_m
UPDATE c_u
MESSAGES INTO tt_bdcmsgcoll .
SORT tt_bdcmsgcoll BY msgtyp.
READ TABLE tt_bdcmsgcoll INTO wa_bdcmsgcoll WITH KEY msgtyp = c_e.
IF sy-subrc EQ 0.
LOOP AT tt_bdcmsgcoll INTO wa_bdcmsgcoll WHERE msgtyp = c_e.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = wa_bdcmsgcoll-msgid
lang = text-010
no = wa_bdcmsgcoll-msgnr
v1 = wa_bdcmsgcoll-msgv1
v2 = wa_bdcmsgcoll-msgv2
v3 = wa_bdcmsgcoll-msgv3
v4 = wa_bdcmsgcoll-msgv4
IMPORTING
msg = v_msg
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
WRITE :/ v_msg.
ENDLOOP.
ELSE.
READ TABLE tt_bdcmsgcoll INTO wa_bdcmsgcoll WITH KEY msgtyp = c_s.
IF sy-subrc EQ 0.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = wa_bdcmsgcoll-msgid
lang = sy-langu
no = wa_bdcmsgcoll-msgnr
v1 = wa_bdcmsgcoll-msgv1
v2 = wa_bdcmsgcoll-msgv2
v3 = wa_bdcmsgcoll-msgv3
v4 = wa_bdcmsgcoll-msgv4
IMPORTING
msg = v_msg
EXCEPTIONS
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.
MOVE wa_bdcmsgcoll-msgv1 TO v_billno.
wa_epit-bill_no = v_billno .
MODIFY TABLE tt_epit FROM wa_epit TRANSPORTING bill_no.
UPDATE zsd_dt_epit SET bill_no = v_billno where del_no = wa_created-document_numb .
IF sy-subrc EQ 0.
ENDIF.
MOVE: v_billno TO wa_worklist-bill_no .
READ TABLE tt_epit INTO wa_epit WITH KEY epi_id = wa_worklist-epi_id epi_sr = wa_worklist-epi_sr.
IF sy-subrc EQ 0.
MODIFY tt_epit FROM wa_worklist TRANSPORTING bill_no WHERE epi_id = wa_worklist-epi_id AND epi_sr = wa_worklist-epi_sr.
ELSE.
APPEND wa_worklist TO tt_epit.
ENDIF.
ENDIF.
ENDIF.
please suggest me..its urgent -
How to save report in PersonalCategory after creating it using java panel?
Hi,
Anybody knows How to save report in PersonalCategory after creating it using java panel?
I dont want to save it in public folder. I want to save report (webi) in user's personal category.
can anybody send me source code?
It will help me a lot.
Thanks in advance
Amol MaliHi teda,
i'm assuming that you have seen my post that i did successfuly save report in user's personal category.
Actually the report is created in webi java panel using RE SDK and is saved in Report Sample Folder then i'm saving it in user's personal category by following code
string query = "Select SI_PERSONAL_CATEGORIES From CI_INFOOBJECTS Where "
+ "SI_INSTANCE=0 And SI_ID=" + reportID;
InfoObjects infoObjects = infoStore.Query(query);
InfoObject infoObject = infoObjects[1];
Webi wreport = (Webi)infoObject;
ObjectRelativeIDs personalIDs = wreport.PersonalCategories;
/personalIDs.Add(Convert.ToInt32(categoryID));
infoStore.Commit(infoObjects);
But the report is presents in the Folder also and in user's personal category also.
I dont want the report to be in the folder (Report Sample) if i saved it in user's personal category.
How can i do that?
any idea.
Please help me.
Thanks in advance
Amol Mali
Edited by: amol mali on Jan 9, 2009 7:55 PM -
Manipulating condition value after being returned from IPC
Hi all,
How can we manipulate the condition rate data after the value is returned from IPC?
We tried using CRM_PRICING_I_BADI calling the method CRM_PRICING_I_MERGE. But it did not solve the issue.
Requirement is to read the data of a particular condition type from a preceedign document and then overwirte the conditon value of condition type in the current transaction with that old value from previous document.
Can this be achieved without using Java coding and manipulate the value after IPC has returned the conditon value and before it is being presented on GUI?
Please help me with your suggestions.
Regards,
David.Hello david,
You might ned to use the user Exit provided by the Pricing Engine to work this out. this will require Java coding.
Regards,
Tanu -
How to manual maintain TAX condition value while creating sales order
Hi
I am creating one Tax condition suppose JLST without access sequence .
while creating sales order I am manually maintain the % value of TAX. suppose it is 1%
then I see It show some value in TAX .
save that sales order & creating delivery document for that but when I create Invoice its show error.
" Tax code in procedure CMTAXP is invalid ".
I know the configuration only for Tax condition with vk11 condition record .
BUT now I want to maintain TAX condition at the time of creating sales order.
so I remove the access sequence of that condition .
but It shows tax code error while billing.
My main question is that If i maintain condition record while creating sales order then how i can assign Tax code .
Can it is possible ?
if yes then How?
please help me.
thank youHi,
The "straight-forward" answer for Tax Code creation is contact the FI consultant. He shall help you, by creating Tax codes.
I have tested, with creating a tax cond type (copy of MWST) & manually entering values. I can create Sorder, Dlv and Bill but I cannot create an Accounting document. That is because of every line (amount) a Tax code is necessary.
I THINK, you can NOT have manually filled tax codes; access sequence is needed to get the tax value (%) and the Tax code from the condition record.
There is lot of material on the web to understand Tax classification, code etc. etc. See a useful link below -
http://www.sapgeek.net/2010/04/sd-determines-tax-code/
In short Tax code is a must and take the help of your FI consultant for the configuration of the same.
BTW - Tax code is already made created for MWST, therefore I suggested that you can use MWST. Furthermore, you can change the values corresponding to Tax codes in FTXP.
But if you are a beginner in these things, better take help. -
Referencing condition values when creating return order is wrong...
Hello Experts,
Lets say I have a billing document that has 3 line items namely material A, B and C.
Now, I created a return order for material A with 2 separate line items because of different
storage locations. Now, is there a user-exit that lets my 2nd line item copy the condition values of the
1st line item of the reference billing document? because they are of the same material(A).
Currently, we are having problems when creating a return order having multiple line items of the same material
because the succeeding line items copies the wrong condition values of the referenced billing doc.
For example:
Original billing document:
Material Discount
A 100
B 200
C 300
Return Order:
Material Discount
A 100
A 200
A 300
The succeeding line items of my return order must point to the first line item since they are of the
same material. Hope you can help me guys. Thank you and take care!You may need to explore in the copy control definition, especially the pricing type defined. Check if any customized requirements exists for condition which checks w.r.t to the document number instead of reference document number item.
-
Problem while creating PO using BAPI_PO_CREATE1
HAI TO ALL
I AM TRYING TO CREATE PO USING BAPI
ORDER IS SUCCESFULLY GENERATED, BUT THE CONDITIONS WHATEVER I PASS IS ARE REPEATING ,
EVEN WE CONFIGURED DEFAULT VALUES MAINTAINED IN TRANSCTION 'OMFI" AND MAINTAINED Default Values for Purchasing FOR PARAMETER IN PARAMETER TAB IN USER PROFILE,
HELP ME...
REGARDS,
SNHi Sid.
I'm having this same problems on creating PO Service. Did you solve it? How did you do that?
I'm using a PR and the Category is 'Y', and I cant find where is the problem.
The tables that I'm passing to the BAPI_PO_CREATE1 are:
POITEM/ POITEMX
POACCOUNT/ POACCOUNTX
POSERVICES
POSRVACCESSVALUES
Please, if you have any idea, let me know!
Tks a lot!
Renata -
Creating po using bapi_po_create1
i am using bapi_po_create1 to create po's..po number and item(posnr) numbers are external numbers..so we have External order no range configured based on order type...
Do i need create external number ranges for posnr too..?
For some reason even if pass posnr = '9999', it's creating po's with '10','20'..etc.. is there a flag i need to set in BAPIMEPOITEM???
Thanks
Siva.Hi,
Check the sample code, and Observe the Bold Code. may be you missed that.
REPORT zpo_test .
*DATA DECLARATION
CONSTANTS : c_x VALUE 'X'.
*Structures to hold PO header data
DATA : header LIKE bapimepoheader ,
headerx LIKE bapimepoheaderx .
*Structures to hold PO account data
DATA : account LIKE bapimepoaccount OCCURS 0 WITH HEADER LINE ,
accountx LIKE bapimepoaccountx OCCURS 0 WITH HEADER LINE .
*Internal Tables to hold PO ITEM DATA
DATA : item LIKE bapimepoitem OCCURS 0 WITH HEADER LINE,
itemx LIKE bapimepoitemx OCCURS 0 WITH HEADER LINE,
*Internal table to hold messages from BAPI call
return LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
*Internal table to hold messages from BAPI call
pocontractlimits LIKE bapiesucc OCCURS 0 WITH HEADER LINE.
DATA : w_header(40) VALUE 'PO Header',
purchaseorder LIKE bapimepoheader-po_number,
delivery_date LIKE bapimeposchedule-delivery_date.
DATA : ws_langu LIKE sy-langu.
*text-001 = 'PO Header' - define as text element
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : company LIKE header-comp_code DEFAULT '122' ,
doctyp LIKE header-doc_type DEFAULT 'NB' ,
cdate LIKE header-creat_date DEFAULT sy-datum ,
vendor LIKE header-vendor DEFAULT '2000000012' ,
pur_org LIKE header-purch_org DEFAULT 'PU01' ,
pur_grp LIKE header-pur_group DEFAULT '005' .
*sociedad like HEADER-COMP_CODE default '122' ,
*vendedor like HEADER-SALES_PERS default 'sale person'.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS : item_num LIKE item-po_item DEFAULT '00010',
material LIKE item-material DEFAULT '12000000' ,
tipo_imp LIKE item-acctasscat DEFAULT 'K' ,
* pos_doc like ITEM-ITEM_CAT default 'F' ,
shorttxt LIKE item-short_text DEFAULT 'PRUEBA BAPI' ,
grup_art LIKE item-matl_group DEFAULT '817230000' ,
plant LIKE item-plant DEFAULT '3001' ,
mpe LIKE item-trackingno DEFAULT '9999' ,
*contrato like ITEM-AGREEMENT default '4904000003' ,
*quantity like ITEM-QUANTITY default 1 .
po_unit LIKE item-po_unit DEFAULT 'EA'.
SELECTION-SCREEN END OF BLOCK b2.
* Par?mnetros de imputaci?n
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-004.
PARAMETERS : centro LIKE account-costcenter DEFAULT '1220813150',
cuenta LIKE account-gl_account DEFAULT '6631400' ,
num_pos LIKE account-po_item DEFAULT '10' ,
serial LIKE account-serial_no DEFAULT '01' ,
ind_imp LIKE account-tax_code DEFAULT 'I2' .
SELECTION-SCREEN END OF BLOCK b3.
START-OF-SELECTION.
*DATA POPULATION
ws_langu = sy-langu. "Language variable
*POPULATE HEADER DATA FOR PO
*HEADER-COMP_CODE = sociedad .
header-doc_type = doctyp .
header-vendor = vendor .
header-creat_date = cdate .
header-created_by = 'TD17191' .
header-purch_org = pur_org .
header-pur_group = pur_grp .
header-comp_code = company .
header-langu = ws_langu .
*HEADER-SALES_PERS = vendedor .
*HEADER-CURRENCY = 'DOP' .
*HEADER-ITEM_INTVL = 10 .
*HEADER-PMNTTRMS = 'N30' .
*HEADER-EXCH_RATE = 1 .
*POPULATE HEADER FLAG.
headerx-comp_code = c_x.
headerx-doc_type = c_x.
headerx-vendor = c_x.
headerx-creat_date = c_x.
headerx-created_by = c_x.
headerx-purch_org = c_x.
headerx-pur_group = c_x.
headerx-langu = c_x.
*HEADERX-sales_pers = c_x.
*HEADERX-CURRENCY = c_x.
*HEADER-ITEM_INTVL = c_x.
*HEADER-PMNTTRMS = c_x.
*HEADER-EXCH_RATE = c_x.
*HEADER-EXCH_RATE = c_x.
*POPULATE ITEM DATA.
<b>item-po_item = item_num.</b>
item-quantity = '1'.
*ITEM-MATERIAL = material .
item-short_text = 'prueba bapi_po_create1'.
*ITEM-TAX_CODE = ''.
item-acctasscat = 'K' .
*ITEM-ITEM_CAT = 'D' .
item-matl_group = '817230000' .
item-plant = '3001' .
item-trackingno = '99999'.
item-preq_name = 'test'.
*ITEM-AGREEMENT = '' .
*ITEM-AGMT_ITEM = ''.
item-quantity = '1' .
item-po_unit = 'EA'.
*ITEM-ORDERPR_UN = 'EA'.
item-conv_num1 = '1'.
item-conv_den1 = '1'.
item-net_price = '1000000' .
item-price_unit = '1'.
item-gr_pr_time = '0'.
item-prnt_price = 'X'.
item-unlimited_dlv = 'X'.
item-gr_ind = 'X' .
item-ir_ind = 'X' .
item-gr_basediv = 'X'.
*ITEM-PCKG_NO = '' .
APPEND item.
CLEAR item.
*POPULATE ITEM FLAG TABLE
<b> itemx-po_item = item_num.
itemx-po_itemx = c_x.</b>
*ITEMX-MATERIAL = C_X.
itemx-short_text = c_x.
itemx-quantity = c_x.
*ITEMX-TAX_CODE = C_X.
itemx-acctasscat = c_x.
*ITEMX-ITEM_CAT = c_x.
itemx-matl_group = c_x.
itemx-plant = c_x.
itemx-trackingno = c_x.
itemx-preq_name = c_x.
*ITEMX-AGREEMENT = C_X.
*ITEMX-AGMT_ITEM = c_x.
itemx-stge_loc = c_x.
itemx-quantity = c_x.
itemx-po_unit = c_x.
*ITEMX-ORDERPR_UN = C_X.
itemx-conv_num1 = c_x.
itemx-conv_den1 = c_x.
itemx-net_price = c_x.
itemx-price_unit = c_x.
itemx-gr_pr_time = c_x.
itemx-prnt_price = c_x.
itemx-unlimited_dlv = c_x.
itemx-gr_ind = c_x .
itemx-ir_ind = c_x .
itemx-gr_basediv = c_x .
APPEND itemx. CLEAR itemx.
*POPULATE ACCOUNT DATA.
account-po_item = item_num.
account-serial_no = serial .
account-creat_date = sy-datum .
account-costcenter = centro .
account-gl_account = cuenta .
account-gr_rcpt = 'tester'.
APPEND account. CLEAR account.
*POPULATE ACCOUNT FLAG TABLE.
accountx-po_item = item_num .
accountx-po_itemx = c_x .
accountx-serial_no = serial .
accountx-serial_nox = c_x .
accountx-creat_date = c_x .
accountx-costcenter = c_x .
accountx-gl_account = c_x .
account-gr_rcpt = c_x.
APPEND accountx. CLEAR accountx.
*BAPI CALL
CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = header
poheaderx = headerx
IMPORTING
exppurchaseorder = purchaseorder
TABLES
return = return
poitem = item
poitemx = itemx
poaccount = account
poaccountx = accountx.
*Confirm the document creation by calling database COMMIT
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
* IMPORTING
* RETURN =
END-OF-SELECTION.
*Output the messages returned from BAPI call
LOOP AT return.
WRITE / return-message.
ENDLOOP.
Check the Bold code.
Regards
vijay -
Question: How do I retrieve values after creating an autofilter.
So the question is sort of simple but my code is below, this is my first time really running in VBA but it isn't so far all to dissimilar to LotusScript which I am a bit more knowledgeable in. What I am trying to do is retrieve values from the filtered information,
or more simply, I am trying to retrieve values from two cells in the spreadsheet that I want move together.
As noted below one of them is a countries field which simply concatenates the country string with the duplicates with the same first column (A#) fields.
Example 123 .. UK
123 .. US
123 .. CA
The output stored in countries would be UK,US,CA and posted to sheet3.
Sub proFirst()
Dim wSheet As Worksheet
Dim columnCount As Integer
Dim rowCount As Long
Dim testVar As Long
Dim coll As New Collection, a
Dim Assignee() As String
Dim tmpList() As String
Dim newVar As Variant
Dim dict As Object
Const rowDataBegin = 2
Dim count As Long
rowCount = Sheets("Sheet1").UsedRange.Rows.count
columnCount = Sheets("Sheet1").UsedRange.Columns.count
'** This Cleans up the filtering to ensure all data is viewable before we begin **
Sheets("Sheet1").Activate
If (ActiveSheet.AutoFilterMode And ActiveSheet.FilterMode) Or ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
Sheets("Sheet3").Activate
If (ActiveSheet.AutoFilterMode And ActiveSheet.FilterMode) Or ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
'** This sets a filter to filter by column O which is designated as Submitted Date **
Sheets("Sheet1").Columns("A:S").AutoFilter Field:=15, Criteria1:="<>"
'** This block copuies and pastes the values we need for the final report however **
'** this is not a permenent viewable format for the report, a recut may be required **
Application.CutCopyMode = False
rowCount = Sheets("Sheet1").UsedRange.Rows.count
Sheets("Sheet1").Range("A1:D" & rowCount).Copy Sheets("Sheet3").Range("A1:D" & rowCount)
Application.CutCopyMode = False
Sheets("Sheet1").Range("J1:J" & rowCount).Copy Sheets("Sheet3").Range("H1:H" & rowCount)
Application.CutCopyMode = False
Sheets("Sheet1").Range("O1:O" & rowCount).Copy Sheets("Sheet3").Range("I1:I" & rowCount)
Application.CutCopyMode = False
'loops through the first column and acquires all of the data and generates as string array
rowCount = Sheets("Sheet3").UsedRange.Rows.count
columnCount = Sheets("Sheet3").UsedRange.Columns.count
ReDim Assignee(rowCount)
ReDim tmpList(rowCount) 'helper variant to make it smoother for recall of lines
For i = rowDataBegin To rowCount
Assignee(i - rowDataBegin) = CStr(Sheets("Sheet3").Cells(i, 1).Value)
tmpList(i - rowDataBegin) = rowCount
Next i
Set dict = CreateObject("Scripting.Dictionary")
For i = LBound(Assignee) To UBound(Assignee)
If dict.exists(Assignee(i)) Then
dict.Item(Assignee(i)) = dict.Item(Assignee(i)) + 1
Else
dict.Add Assignee(i), 1
End If
Next i
Sheets("Sheet3").Range("$A$1:$I$" + CStr(rowCount)).RemoveDuplicates Columns:=1, Header:=xlYes
rowCount = 2
Application.Workbooks(1).Worksheets("Sheet3").Activate
'** Header values Change as needed
Sheets("Sheet3").Cells(1, 5).Value = "Completed Global Questionnaire? (Yes or No)"
Sheets("Sheet3").Cells(1, 6).Value = "Number of Countries"
Sheets("Sheet3").Cells(1, 7).Value = "Name of Countries Submitted"
For Each v In dict.keys
If dict.Item(v) > 0 And v <> "" Then
Sheets("Sheet3").Cells(rowCount, 6).Value = dict.Item(v)
rowCount = rowCount + 1
End If
Next v
Sheets("Sheet3").Columns("A:I").AutoFilter Field:=6, Criteria1:=">1", _
Operator:=xlAnd
'** BEGIN TESTING AREA
'** Stage 2 Test Complete - able to retrieve a list of how many rows are in use
'** Stage 3 test - retrieve countries
Sheets("Sheet1").Activate
count = 2
For Each v In dict.keys
countries = ""
rowCount = 0
If dict.Item(v) > 1 Then
With ActiveSheet
Set rnData = .UsedRange
With rnData
.AutoFilter Field:=1, Criteria1:=v
.Select
'xlCellTypeVisible = 12
For Each rngArea In .SpecialCells(xlCellTypeVisible).Areas
tmp = .SpecialCells(xlCellTypeVisible).Rows
Next
For Z = 2 To rowCount
If countries = "" Then
countries = .Range("I" & Z).Value
Else
countries = countries & ", " & .Range("I" & Z).Value
End If
Next Z
End With
End With
Sheets("Sheet3").Cells(count, 7).Value = countries
End If
count = count + 1
Next v
'** Testing block **
Sheets("Sheet3").Columns("A:I").AutoFit
MsgBox "End loop"
The code below is only semi-tested but it should give you the idea of how to loop through the visible data of an AutoFiltered Range. You can't use code like "For r = 2 to Rows.Count" because the code stops after the first non contiguous row. However,
you can use For Each loop to loop through the rows and get the row number from there.
An explanation of the code to set rngVisible. (Note that a space and underscore at the end of a line is a line break in an otherwise single line of code.)
With .AutoFilter.Range This is the entire AutoFilter Range (Includes column headers, visible and non visible rows)
.Offset(1, 0) Moves down one row off the column headers but now includes an additional row at the bottom below the data. (Still includes visible and non visible rows)
.Resize(.Rows.Count - 1, .Columns.Count) Removes the additional row due to Offset (Still includes visible and non visible rows)
.SpecialCells(xlCellTypeVisible) Only include the visible rows.
Sheets("Sheet1").Activate
For Each v In dict.keys
countries = ""
If dict.Item(v) > 1 Then
With ActiveSheet
Set rnData = .UsedRange
With rnData
.AutoFilter Field:=1, Criteria1:=v
End With
'Note that AutoFilter.Range is an inbuilt object variable _
for the entire range covered by the AutoFilter
With .AutoFilter.Range
'Following tests if any rows (other than column header) are visible _
in the AutoFilter.Range. If > 1 then more than just column headers. _
Attempting to set the rngVisible will error if not at least one row _
of visible data.
If .Columns(1).SpecialCells(xlCellTypeVisible).Cells.Count > 1 Then
'Assign the visible data to a range variable
Set rngVisible = .Offset(1, 0) _
.Resize(.Rows.Count - 1, .Columns.Count) _
.SpecialCells(xlCellTypeVisible)
Else
MsgBox "No visible data. Procesing terminated."
'Left for you to handle what you want to do if the _
filter does not exist in the data and no visible rows present
Exit Sub
End If
End With
'Loop through the rows of rngVisible
'and get the row numbers
For Each rngRow In rngVisible.Rows
Z = rngRow.Row
If countries = "" Then
countries = .Range("I" & Z).Value
Else
countries = countries & ", " & .Range("I" & Z).Value
End If
Next rngRow
End With
End If
Next v
Regards, OssieMac -
Error while saving report after creating it using webi java panel?
Hi,
Whenever i create report through java panel & RE SDK and then try to save it i got below error
Could not save the document to the repository for the following reason: [repo_proxy 30] InfoStore::ObjectExport::commit - (Helpers::InfoStore::ObjectExport::commit) Failed to commit objects to server :
Invalid parent id.(hr=#0x80041e0e)(Error #-2147213810 (WIS 30567)
Actuallly i want to save report in User's personal category.
For that i retrive the ID of that User's personal category then pass it to variable to save
Code while saving
//JavaScript
if ("<%= strSubmit.Equals("submit")%>"=="True")
var value = new Array();
value[0] = "<%= strName %>"; //Given value of Report
value[1] = "<%= strComments %>"; //Value ""
value[2] = "<%= strkeywords %>"; //Value ""
value[3] = "<%= strFolderId %>"; //Value ""
value[4] = "<%= strCategories %>"; //Value ""
value[5] = "<%= strPersonalCategories %>"; //Here i assign the ID of User's personal category
value[6] = "<%= strRefreshOnOpen %>"; //Value ""
//save the document
window.opener.saveDocumentCall(value[0],value[1],value[2],value[3],value[4],value[5],value[6]);
window.close();
any help?
Thanks in Advance
Amol MaliHi Teda,
Thanks for the reply.
Actually i'm setting User's PersonalCategory id to Parent ID not setting Folder ID to Parent ID.
How can i proceed?
Please help.
Thanks
Amol Mali -
Pirce determination when creating PO using BAPI_PO_CREATE1
Hi guys,
I am creating new POs using the BAPI 'BAPI_PO_CREATE1'.
My requirement is to use the price in importing parameter poitem-net_price, not price in condition from info record. Is there any way to do this? For example, setting any field to certain value, then bapi will ignore info record's price
Thanks is adv.hi,
I hope you need the same:
LMEKO002 - Enhance communication structure KOMP for price determination
Hope it helps..
Regards
Priyanka.P -
While creating PO using BAPI_PO_CREATE1 vendor batch number is not comming.
Hi Friends,
I am using BAPI " 'BAPI_PO_CREATE1' to create PO in my report.
The PO's are getting created but i the vendor batch number is not found in the PO.
Where as i am passing the vendor batch number.
bapimepoitem-vendrbatch = '2'.
bapimepoitemx-vendrbatch = 'X'.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = bapimepoheader
poheaderx = bapimepoheaderx
memory_uncomplete = 'X'
IMPORTING
exppurchaseorder = v_po_number
TABLES
return = bapiret2
poitem = bapimepoitem
poitemx = bapimepoitemx
poschedule = bapimeposchedule
poschedulex = bapimeposchedulx.
Commit the transaction
IF v_po_number NE space.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = bapiret2_c.
ENDIF.
Please reply urgently.
Thanks Regards,
Sandipan JenaHi
My answer is pure assumption.
Please check the following OSS notes
Note 758810 - BAPI_PO_CHANGE vendor batch and batch not visible
Note 1230268 - Field Vendor Batch never filled for PO BAPIs
Please take help from BASIS and SAP, before implementing the OSS note
Regards
Madhan D -
How to update condition value using e1edp05 segment during order creation
Hi,
I have a requirement where I need to update the item level condition value (komv-kbeter) to the condition type (komv-kschl) from the incoming idocs (orders05).
But the same is configured in such a way to populate automatically with the default condition value zero during the order creation level using VA01 at condition tab.
I am able to populate condition values from incoming idoc using segment E1EDP05 which is good, but it was getting created as new entry with the same condition type instead of updating the condition value to the existing condition type(which got populated from automatically from configuration) .
So I want to restrict to one entry instead of two with same condition type. Is there any userexit/gap to restrict automatic population of condition type thru programming or to update with idoc (orders05) value rather than inserting as new row?
My client doesnt want to restrict the pricing automation from configuration. So I have to handle through programming level.
Your inputs are appreciatedIt doesn't really matter if it's a credit/debit memo, it's the same transaction anyway and pretty much the same functionality. What is your requirement exactly? Do you always have to override the price from Siebel or, let's say, some price is automatically proposed and you might or might not need to override it?
We use a custom (Z..) condition for price override. When a material is entered in VA01, some price (condition PR00, for example) is assigned automatically. Then, let's say, a special price has been negotiated with this customer just for this purchase. So the user goes into Conditions, types in condition code Z... and types in the new price. This basically annuls the previous PR00 condition. I'm not a functional consultant and can't give you all the config details, but your SD person should be able to help.
I'm still positive that conditions cannot be removed or changed by IDoc. One thing I would suggest for your situation: do not create ZCD2 condition initially and then just add ZCD2 condition when you receive the data from Siebel. Otherwise it seems that you would have to write a user exit or a requirement to deal with the duplicate conditions. -
Change of Condition Value in PO after MIGO
Hi Gurus!
I want to change the condition value after migo. I have a scenario in which we have lots of purchase orders which are received.
Unfortunately user has mentioned a wrong value in the tax. We want to change the value of tax in the purchase order after cancelling the MIGO document. But the system is not allowing me to do the changes. I also deactivate the release as well through ME29N.
Regards
ImranHi,
For changing the tax value, you need to change the tax code to the one that has the correct tax % configured. You can use transaction FTXP to find out the tax rates assigned to tax codes. For changing tax code it it not necessary to cancel already posted GRs
Ramesh -
Problem in conditions pricing updation using BAPI_PO_CREATE1
hi,
I am creating PO using BAPI_PO_CREATE1 however when i am passing the data to the bapi for conditions at item level the price value is not changing and throwing error as ( NET PRICE FOR ITEM 00010 adopted from last document ) so for all the items its throwing the same information and when i am chekin the PO the value is not the changing. and while creating the PO manually also the net price is coming automatically and we need to backspace the value and re enter the new value. So wht should i do in order to input the data into the PO.
Thanks in advanceThanks
Maybe you are looking for
-
I am trying to download apps on my iphone 4s and it always says that i have not enough memory
why i cant download and install apps on my iphone...everytime i try it always says not enough memory..
-
I have a iphone 3G, I am trying to update my phone to the 4.2.1 update
I have an iphone 3G, and I am trying to update my phone to the 4.2.1 software, when I begin to update my phone it tells me that all the files have to be backed up on my computer first. The issue is my phone has been hooked up to my computer backing
-
Ipod Shuffle Problem [HELP]
well im not sure if this is the right place, but im having trouble with itunes, when i try to copy music to my Ipod Shufle it says "The Ipod cannot be updated. The disk could not be read from or written to." but it works on my old computer =( well he
-
Saving a fillable pdf form as a non-fillable pdf form in Acrobat
Hi all, I have created a form from Acrobat Pro 9 and I would like users to be able to fill out the fields, be able to edit, save it and email them back to me. Although, once it is sent, I would like the form to be locked and non-fillable. Is this pos
-
Display GL Description in AP Invoice
Hi Experts Within an AP Invoice (Service) the GL Account field is obviously available but the GL Description is not and I cant see it in Form Settings. Any way to have this display the GL Description when the GL Account field is completed. Thanks! L