Problem in Conditions while using BAPI_PO_CREATE1
Hi All
I am using BAPI_PO_CREATE1 to create purchase Order. When I am changing calculation type for condition type's system not picking the correct amount through BAPI.
For e.g. for condition type 'FRB1' (Freight Value) I have maintain the amount 10.00 in condition value for calculation type 'B' (fixed amount). But when I pass calculation type 'A' i.e. Percentage, BAPI overwrites the amount to 1.00%.
I Want to pass the amount 10.00 as it is with calculation type '%'. Kindly suggest how to do it.
Regards,
Pradip
Hi All
I am using BAPI_PO_CREATE1 to create purchase Order. When I am changing calculation type for condition type's system not picking the correct amount through BAPI.
For e.g. for condition type 'FRB1' (Freight Value) I have maintain the amount 10.00 in condition value for calculation type 'B' (fixed amount). But when I pass calculation type 'A' i.e. Percentage, BAPI overwrites the amount to 1.00%.
I Want to pass the amount 10.00 as it is with calculation type '%'. Kindly suggest how to do it.
Regards,
Pradip
Similar Messages
-
Compilation problem with templates while using option -m64
Hi,
I have compilation problem with template while using option -m64.
No problem while using option -m32.
@ uname -a
SunOS snt5010 5.10 Generic_127111-11 sun4v sparc SUNW,SPARC-Enterprise-T5220
$ CC -V
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
Here is some C++ program
############# foo5.cpp #############
template <typename T, T N, unsigned long S = sizeof(T) * 8>
struct static_number_of_ones
static const T m_value = static_number_of_ones<T, N, S - 1>::m_value >> 1;
static const unsigned long m_count = static_number_of_ones<T, N, S - 1>::m_count + (static_number_of_ones<T, N, S - 1>::m_value & 0x1);
template <typename T, T N>
struct static_number_of_ones<T, N, 0>
static const T m_value = N;
static const unsigned long m_count = 0;
template <typename T, T N>
struct static_is_power_of_2
static const bool m_result = (static_number_of_ones<T,N>::m_count == 1);
template <unsigned long N>
struct static_number_is_power_of_2
static const bool m_result = (static_number_of_ones<unsigned long, N>::m_count == 1);
int main(int argc)
int ret = 0;
if (argc > 1)
ret += static_is_power_of_2<unsigned short, 16>::m_result;
ret += static_is_power_of_2<unsigned int, 16>::m_result;
ret += static_is_power_of_2<unsigned long, 16>::m_result;
ret += static_number_is_power_of_2<16>::m_result;
else
ret += static_is_power_of_2<unsigned short, 17>::m_result;
ret += static_is_power_of_2<unsigned int, 17>::m_result;
ret += static_is_power_of_2<unsigned long, 17>::m_result;
ret += static_number_is_power_of_2<17>::m_result;
return ret;
Compiation:
@ CC -m32 foo5.cpp
// No problem
@ CC -m64 foo5.cpp
"foo5.cpp", line 20: Error: An integer constant expression is required here.
"foo5.cpp", line 36: Where: While specializing "static_is_power_of_2<unsigned long, 16>".
"foo5.cpp", line 36: Where: Specialized in non-template code.
"foo5.cpp", line 26: Error: An integer constant expression is required here.
"foo5.cpp", line 37: Where: While specializing "static_number_is_power_of_2<16>".
"foo5.cpp", line 37: Where: Specialized in non-template code.
"foo5.cpp", line 20: Error: An integer constant expression is required here.
"foo5.cpp", line 43: Where: While specializing "static_is_power_of_2<unsigned long, 17>".
"foo5.cpp", line 43: Where: Specialized in non-template code.
"foo5.cpp", line 26: Error: An integer constant expression is required here.
"foo5.cpp", line 44: Where: While specializing "static_number_is_power_of_2<17>".
"foo5.cpp", line 44: Where: Specialized in non-template code.
4 Error(s) detected.
Predefined macro:
@ CC -m32 -xdumpmacros=defs foo5.cpp | & tee log32
@ CC -m64 -xdumpmacros=defs foo5.cpp | & tee log64
@ diff log32 log64
7c7
< #define __TIME__ "09:24:58"
#define __TIME__ "09:25:38"20c20
< #define __sparcv8plus 1
#define __sparcv9 1[snipped]
=========================
What is wrong?
Thanks,
Alex VinokurBug 6749491 has been filed for this problem. It will be visible at [http://bugs.sun.com] in a day or two.
If you have a service contract with Sun, you can ask to have this bug's priority raised, and get a pre-release version of a compiler patch that fixes the problem.
Otherwise, you can check for new patches from time to time at
[http://developers.sun.com/sunstudio/downloads/patches/]
and see whether this bug is listed as fixed. -
Short dump while using BAPI_PO_CREATE1
Hi all,
I am facing this short dump while executing my program that uses BAPI_PO_CREATE1.
The error is 'Exception condition "failure" raised'.
The trigger location of runtime error is
Program : CL_HANDLE_MANAGER_MM====================CP
Include: CL_HANDLE_MANAGER_MM=====================CM005
Module name: GET
Source code:
Method GET.
If my_manager is initial.
Call method get_manager.
endif.
call method my_manager-> search EXporting im_id = im_id
Importing ex_handle = ex_handle
Exceptions failure = 01.
If sy-subrc <>0.
raise failure.
endif.
I am a beginner in ABAP. Plz help.Hi ,
I faced the similar situation once , in my case when i passed the Delivery indicator value in the Item Table as well as Itemx Table , i was facing this error .
what i suggest you is to pass it at the Item table only , not at the itemx Table.
it worked for me .
try this and reply for the same. -
Net Price showing zero while using BAPI_PO_CREATE1 for me21n
Dear All,
I am using BAPI_PO_CREATE1 for ME21N. The problem is, after execution of the program the error msg it shows-
No instance of object type PurchaseOrder has been created. External reference:
Purchase order still contains faulty items
Net price must be greater than 0
The values are coming from excel file.
Please tell me where I am doing wrong.
With regards,
Rosaline.Hi,
Symptom
You create a purchase order with BAPI_PO_CREATE1 or you add an item to an existing purchase order with BAPI_PO_CHANGE. You assign a value in field POITEM-NET_PRICE. However, this value is not transferred. If it was not possible for you to determine any conditions, the system generated the error message 06218 'Net price must be greater than 0'.
Other terms
BAPI_PO_CREATE1, BAPI_PO_CHANGE, price, net price, gross price, conditions, price determination, condition type, 06218, EKPO-NETPR, NETPR, POITEM-NET_PRICE, NET_PRICE, PO_PRICE, BAPI_PO_PRICE, BUS2012, PurchaseOrder.CreateFromData1, CreateFromData1, PurchaeOrder.Change
Reason and Prerequisites
This function has not been available up to now. You could also assign conditions via the condition tables.
Read also Notes 399791, 428621, 529287, 578253 and 539950 for this.
Solution
The present note adds field PO_PRICE to table POITEM. PO_PRICE can have the values ' ', '1' or '2' with the following meaning:
PO_PRICE = ' ': The price determination is carried out as before.
PO_PRICE = '1': The value assigned in field NET_PRICE is transferred as a gross price, that is it is set in the condition type that is defined as a base price in the calculation schema. All other condition types remain unchanged. No conditions are copied from the last document.
PO_PRICE = '2': The value assigned in field NET_PRICE is transferred as a net price, that is it is set in the condition type that is defined as base price in the calculation scheme. All other condition types are deleted.
Note the following
The following restrictions apply to field PO_PRICE:
If you assign conditions via the BAPI interface, these are always transferred. This is carried out independently of the value that you assign in field PO_PRICE.
If you add a new item to a purchase order with BAPI_PO_CHANGE, it does not suffice to fill field POITEM-NET_PRICE on item level. The corresponding currency must be specified explicitly on header level.
You can only use field PO_PRICE during the creation of a purchase order item. If you want to change the price of an already existing item, you can only do this via the conditions.
If you fill field POITEM-PO_PRICE, you must enter an 'X' in POITEMX-PO_PRICE so that the value is transferred.
Correction
The correction is made available via R/3 support package. If you want to implement the note manually, proceed as follows:
1. Make sure that your system contains Notes 494759, 552189 and 578253.
2. Create data type BAPI_PO_PRICE with the following attributes:
Short text:
Price transfer indicator: 1 = gross, 2 = net
Package: ME
Domain: BPUEB
3. Extend structure BAPIMEPOITEM (directly after NO_ROUNDING):
Component: PO_PRICE
Component type: BAPI_PO_PRICE
4. Extend structure BAPIMEPOITEMX (directly after NO_ROUNDING):
Component: PO_PRICE
Component type: BAPIUPDATE
5. Extend structure MEPOITEM_DATA (directly after NO_ROUNDING):
Component: PO_PRICE
Component type: BAPI_PO_PRICE
6. Extend structure MEPOITEM_DATAX (directly after NO_ROUNDING):
Component: PO_PRICE
Component type: BAPIUPDATE
7. Implement the correction instructions in your system.
regards,
Ravi
Edited by: Parupelly on Dec 14, 2011 1:30 PM -
I am getting redirected to unknown sites whenever I open any site while using mozilla. Initially I thought that there is a problem with my device, but then I realized that this happens only when using mozilla, not with other browsers like chrome, IE, or opera.
These sites are mainly having the message 'Ad by ShopDrop'..
I am pasting below links to few sites to which I get redirected to
http://offers.bycontext<i></i>.com/scjs/tb/ctxjs/index<i></i>.php?kw2=www.espncricinfo<i></i>.com&affid=1151&subaff_id=725_724&intformat=roll&nextpage=http%3A%2F%2Fwww.espncricinfo<i></i>.com%2F&ch=421&sbrand=ShopDrop&folder=v4.19&typrd=ctx&cu=32929&country=IN&original_country=IN
http://add0n<i></i>.com/fastest-gmail.html?v=0.1.6&p=0.1.5&type=upgradehello, you have various malicious addons present. please perform all these steps:
# [[Reset Firefox – easily fix most problems|reset firefox]] (this will keep your bookmarks and passwords)
# afterwards go to the firefox menu ≡ > addons > extensions and in case there are still extensions listed there, disable them.
# finally run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] and [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] to make sure that adware isn't present in other places of your system as well.
[[Troubleshoot Firefox issues caused by malware]] -
Problem in printing while using printer OKI MICROLINE 721
Dear gurus,
i am working with printing of labels of user defined page format with pre-printed.i have assigned that format to printer.
my problem is that , while printing lablels of dimension 50 mm x 210 mm or 75 mm x 220 mm, my print out is not coming properly. the printout shifted to left or right and skip A4 page and then print next page.
we are using printer OKI MICROLINE 721.
DRIVERS tried: EPESCP9 :EPSON ESC/9-PIN
and SAPSWIN and SNI4011:SNI4011 24-PIN.
please tell me any solution to correct the print out.it is a critical issue. is it a problem of BASIS or ABAP .
regards
Banajahi,
check the styles.. and also the left margin right margin indent(try to use scale and use page format as inch4) if you created any. bacause i too had same problem while creating labels.
reward points if useful.
thanks,
anupama.
Edited by: deep kammula on Sep 30, 2008 3:11 PM
Edited by: deep kammula on Sep 30, 2008 3:11 PM -
Error: Internal Prising Error while using BAPI_PO_CREATE1
Hi Experts,
I am creating PO from Contract (VA41/VA42) using BAPI_PO_CREATE1 in user exit MV45AFZZ - USEREXIT_SAVE_DOCUMENT_PREPARE.
BAPI is returning the PO number and after coming out from BAPI. I am getting an popup message STOP - Internal Prising Error.
Even though bapi returned the PO number there is no PO exists with that number.
Please provide you valuable inputs.
Thanks & RegardsHi Experts,
I am creating PO from Contract (VA41/VA42) using BAPI_PO_CREATE1 in user exit MV45AFZZ - USEREXIT_SAVE_DOCUMENT_PREPARE.
BAPI is returning the PO number and after coming out from BAPI. I am getting an popup message STOP - Internal Prising Error.
Even though bapi returned the PO number there is no PO exists with that number.
Please provide you valuable inputs.
Thanks & Regards -
Strange Behavior of program while using BAPI_PO_CREATE1
Hello SAP GURUs,
I've created an Upload Program using BAPI_PO_CREATE1 for Mass Service PO Creation.
When I execute the program and Specify the File for uploading, It Gives me errors as
E BAPI 1 No instance of object type PurchaseOrder has been created. External reference:
E MEPO 0 Purchase order still contains faulty items
E 6 436 In case of account assignment, please enter acc. assignment data for item
But when I come back to Selection Screen of the Program and specify the SAME FILE AGAIN and Execute,
The Program runs successfully and generates the PO number.
I have never seen such strange behavior in any BAPIs before.
Pls help..PERFORM refresh_tables.
PERFORM fill_tables.
END-OF-SELECTION.
Display the Summary as an ALV Grid Display
IF NOT ig_mymssg[] IS INITIAL.
PERFORM display_basic_list . "Grid Display
ELSE.
MESSAGE s000 WITH 'No data exists'(051).
STOP.
ENDIF.
*& Form refresh_tables
text
--> p1 text
<-- p2 text
FORM refresh_tables .
REFRESH: ig_fieldcat,
ig_mymssg,
poitem,
poitemx,
poaccount,
poaccountx,
poservices,
ig_return.
wt_itab, record, record2 .
ENDFORM. " refresh_tables
*& Form fill_tables
text
--> p1 text
<-- p2 text
FORM fill_tables .
record2[] = record[].
record3[] = record[].
DELETE ADJACENT DUPLICATES FROM record COMPARING id_no.
DELETE ADJACENT DUPLICATES FROM record2 COMPARING id_no po_item.
SELECT MAX( packno ) FROM esll INTO wrk_packno.
LOOP AT record.
CLEAR : poheader, poheaderx, wa_poitem, wa_poitemx, wa_poservices, wa_poaccount, wa_poaccountx, wa_poschedulex, wa_poschedule.
REFRESH: poitem, poitemx, poaccount, poaccountx, poservices, ig_return, posrvaccessvalues, poschedule, poschedulex.
PERFORM po_header.
LOOP AT record2 WHERE id_no = record-id_no.
wrk_packno = wrk_packno + 1.
PERFORM po_item.
PERFORM po_scheudle.
PERFORM acc_assignment.
PERFORM po_services.
ENDLOOP.
PERFORM create_po.
ENDLOOP.
ENDFORM. " fill_tables
*& Form display_basic_list
text
--> p1 text
<-- p2 text
FORM display_basic_list .
g_repid = sy-repid.
PERFORM f2000_fieldcat_init .
PERFORM display_alv_grid_1.
ENDFORM. " display_basic_list
*& Form f2000_fieldcat_init
text
--> p1 text
<-- p2 text
FORM f2000_fieldcat_init .
REFRESH ig_fieldcat.
PERFORM fill_fields_of_fieldcatalog USING 'IG_MYMSSG'
'STATUS'
c_x
'Status'
'10'.
PERFORM fill_fields_of_fieldcatalog USING 'IG_MYMSSG'
'RECORD'
c_x
'Record'
'20'.
PERFORM fill_fields_of_fieldcatalog USING 'IG_MYMSSG'
'ERRMSG'
'Message'
'100'.
ENDFORM. " f2000_fieldcat_init
*& Form display_alv_grid_1
text
--> p1 text
<-- p2 text
FORM display_alv_grid_1 .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_structure_name = 'IG_MYMSSG'
i_grid_title = 'LOG'
is_layout = wg_layout
it_fieldcat = ig_fieldcat[]
i_save = c_save
TABLES
t_outtab = ig_mymssg
EXCEPTIONS
program_error = 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.
ENDFORM. " display_alv_grid_1
*& Form fill_fields_of_fieldcatalog
text
-->P_0626 text
-->P_0627 text
-->P_C_X text
-->P_0629 text
-->P_0630 text
FORM fill_fields_of_fieldcatalog USING p_tabname TYPE slis_tabname
p_field TYPE slis_fieldname
p_key TYPE c
p_name
len.
To fill in the fields of the table fieldcatalog depending on the field
CLEAR wg_fieldcat.
wg_fieldcat-fieldname = p_field. " The field name and the table
wg_fieldcat-tabname = p_tabname.. " name are the two minimum req
wg_fieldcat-key = p_key. " Specifies the column as a key
wg_fieldcat-seltext_l = p_name. " Column Header
wg_fieldcat-outputlen = len.
APPEND wg_fieldcat TO ig_fieldcat.
ENDFORM. " fill_fields_of_fieldcatalog
*& Form create_po
text
--> p1 text
<-- p2 text
FORM create_po .
CLEAR : wg_return.
REFRESH : ig_return.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = poheader
poheaderx = poheaderx
IMPORTING
exppurchaseorder = po_no
TABLES
return = ig_return
poitem = poitem
poitemx = poitemx
poschedule = poschedule
poschedulex = poschedulex
poaccount = poaccount
poaccountx = poaccountx
poservices = poservices
posrvaccessvalues = posrvaccessvalues.
SORT ig_return BY type.
READ TABLE ig_return INTO wg_return WITH KEY type = 'S'.
IF sy-subrc EQ 0.
CLEAR : wg_return.
REFRESH : ig_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
CLEAR wg_errmsg.
WRITE icon_green_light AS ICON TO wg_errmsg-status.
CONCATENATE record-id_no po_no INTO wg_errmsg-record SEPARATED BY '/'.
wg_errmsg-record = po_no.
wg_errmsg-errmsg = 'PO created'.
APPEND wg_errmsg TO ig_mymssg.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
READ TABLE ig_return INTO wg_return WITH KEY type = 'E' TRANSPORTING message.
CLEAR wg_errmsg.
WRITE icon_red_light AS ICON TO wg_errmsg-status.
wg_errmsg-record = record-id_no.
wg_errmsg-errmsg = wg_return-message.
APPEND wg_errmsg TO ig_mymssg.
ENDIF.
ENDFORM. " create_po
*& Form po_header
text
--> p1 text
<-- p2 text
FORM po_header .
poheader-comp_code = record-comp_code.
poheader-doc_type = record-doc_type.
poheader-vendor = record-vendor.
poheader-purch_org = 'SERV'.
poheader-pur_group = record-pur_group.
poheader-currency = 'INR'.
poheaderx-comp_code = 'X'.
poheaderx-doc_type = 'X'.
poheaderx-vendor = 'X'.
poheaderx-purch_org = 'X'.
poheaderx-pur_group = 'X'.
poheaderx-currency = 'X'.
ENDFORM. " po_header
*& Form po_item
text
--> p1 text
<-- p2 text
FORM po_item .
DATA : days TYPE num2.
DATA : final_dt TYPE datum.
DATA : is_ok TYPE boole_d.
DATA : msg_hndlr TYPE REF TO if_hrpa_message_handler.
days = 20.
CALL FUNCTION 'HR_ECM_ADD_PERIOD_TO_DATE'
EXPORTING
orig_date = sy-datum
num_days = days
signum = '+'
message_handler = msg_hndlr
IMPORTING
result_date = final_dt
is_ok = is_ok.
CLEAR: wa_poitem,wa_poitemx.
wa_poitem-po_item = record2-po_item.
wa_poitem-short_text = record2-short_text.
wa_poitem-plant = record2-plant.
wa_poitem-matl_group = 'S001'.
wa_poitem-tax_code = 'LA'.
wa_poitem-item_cat = item_cat.
wa_poitem-pckg_no = wrk_packno.
wa_poitem-acctasscat = acctasscat.
wa_poitem-gr_to_date = final_dt.
APPEND wa_poitem TO poitem.
wa_poitemx-po_item = record2-po_item.
wa_poitemx-po_itemx = 'X'.
wa_poitemx-short_text = 'X'.
wa_poitemx-plant = 'X'.
wa_poitemx-tax_code = 'X'.
wa_poitemx-item_cat = 'X'.
wa_poitemx-acctasscat = 'X'.
wa_poitemx-pckg_no = 'X'.
wa_poitemx-matl_group = 'X'.
wa_poitem-gr_to_date = 'X'.
APPEND wa_poitemx TO poitemx.
ENDFORM. " po_item
*& Form PO_SERVICES
text
--> p1 text
<-- p2 text
FORM po_services .
CLEAR: wa_poservices, wa_posrvaccessvalues.
wa_poservices-pckg_no = wrk_packno.
wa_poservices-line_no = '0000000001'.
wa_poservices-outl_ind = 'X'.
wa_poservices-subpckg_no = wa_poservices-pckg_no + 1.
wa_poservices-from_line = '000001'.
APPEND wa_poservices TO poservices.
CLEAR wa_poservices.
wrk_packno = wrk_packno + 1.
wa_poservices-pckg_no = wrk_packno.
wa_poservices-line_no = '0000000002'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = record2-service
IMPORTING
output = record2-service.
wa_poservices-ext_line = '0000000010'.
wa_poservices-service = record2-service.
wa_poservices-quantity = record2-quantity.
wa_poservices-gr_price = record2-gr_price.
wa_posrvaccessvalues-pckg_no = wrk_packno.
wa_posrvaccessvalues-line_no = '0000000002'.
wa_posrvaccessvalues-serial_no = '01'.
wa_posrvaccessvalues-serno_line = '01'.
wa_posrvaccessvalues-quantity = record2-quantity.
wa_posrvaccessvalues-net_value = record2-gr_price.
APPEND wa_poservices TO poservices.
APPEND wa_posrvaccessvalues TO posrvaccessvalues.
ENDFORM. " PO_SERVICES
*& Form ACC_ASSIGNMENT
text
--> p1 text
<-- p2 text
FORM acc_assignment .
DATA : tmp_gl LIKE bapimepoaccount-gl_account.
tmp_gl = '400265'.
CLEAR : wa_poaccount, wa_poaccountx.
wa_poaccount-po_item = record2-po_item.
wa_poaccount-serial_no = '01'.
wa_poaccount-co_area = '1000'.
wa_poaccount-quantity = record2-quantity.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = tmp_gl
IMPORTING
output = wa_poaccount-gl_account.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = record2-orderid
IMPORTING
output = wa_poaccount-orderid.
APPEND wa_poaccount TO poaccount.
wa_poaccountx-po_item = record2-po_item.
wa_poaccountx-serial_no = '01'.
wa_poaccountx-co_area = 'X'.
wa_poaccountx-quantity = 'X'.
wa_poaccountx-gl_account = 'X'.
wa_poaccountx-orderid = 'X'.
APPEND wa_poaccountx TO poaccountx.
ENDFORM. " ACC_ASSIGNMENT
*& Form PO_SCHEUDLE
text
--> p1 text
<-- p2 text
FORM po_scheudle .
CLEAR : wa_poschedule, wa_poschedulex.
wa_poschedule-po_item = record2-po_item.
wa_poschedule-sched_line = '0001'.
wa_poschedule-del_datcat_ext = 'D'.
wa_poschedule-delivery_date = sy-datum.
wa_poschedule-quantity = record2-quantity.
APPEND wa_poschedule TO poschedule.
wa_poschedulex-po_item = record2-po_item.
wa_poschedulex-sched_line = '0001'.
wa_poschedulex-po_itemx = 'X'.
wa_poschedulex-sched_linex = 'X'.
wa_poschedulex-del_datcat_ext = 'X'
wa_poschedulex-delivery_date = 'X'.
wa_poschedulex-quantity = 'X'.
APPEND wa_poschedulex TO poschedulex.
ENDFORM. " PO_SCHEUDLE -
Problem on date while using gui_upload
Hi,
I'm not getting date properly while using GUI_UPLOAD.
I see the parameter DAT_MODE in the exporting parameters.
But I'm unable to give the exact value for that parameter.
Can anyone let me know how to upload the date exactly?
Thanks in advance.Do you really need to use this parameter? You can just coment this line and it will work properly.
Regards,
Felipe -
Problem in PO creation using BAPI_PO_CREATE1
Hi Experts,
I am creating the PO by using the BAPI_PO_CREATE1.
I am giving the net price for the material in POITEM-NET_PRICE and also 'X' in POITEMX-NET_PRICE.
For some material, BAPI is working fine and for some material BAPI is giving the error like 'Net price must be greater than zero'.
When i tried to create the PO manually for material for which the BAPI is giving the error, the PO was created successfully.
I am working on R/3 Release 4.6C.
Anybody have the suggestion how to resolve this problem?
Thanks in Advance,
Abhishek IngoleAbhishek,
It's not your BAPI. That is how your customizing settings are deffined for the PO creation.
"If you want to create a purchase order without a value, you must set the
IR indicator to " ". "
contact your functional person to check the settings and find out if you need to skip the records with 0 net price.......
Also you should get this error when you create a PO online. Please try it again with 0 net price.
Thanks,
Alchemist. -
Problem in mapping while using Do not Use SOAP Envelope
Hi All,
This is wrt my thread 'Removing and adding SOAP Envelope'
I am currently working on SOAP-XI-Proxy Scenario.
For some un avoiadable reason, I had to use the option 'DO not use SOAP Envelope' .So the SOAP Envelope came withen the payload and in the pipeline, I can see the payload prefixed by '<?xml version="1.0" ?>' .
Now my payload looks like
<?xml version="1.0" ?> ( no more the encoding="utf-8" notation is there)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<Complaint_Request xmlns="urn:******createserviceticket">
<CaseNo>12345</CaseNo>
<CustomerNo>12345</CustomerNo>
</Complaint_Request>
</soapenv:Body>
</soapenv:Envelope>
To accomodate the change, I also changed my request structure as
<Complaint_Request> (My new message Type)
<Envelope>
<Body>
<Complaint_Request> (My previous message Type)
<caseNo>
<CustomerNo>
But I am facing problem in mapping the values to the target structure (which is a flat structure),
as the payload doesnot start with ' ns1: ' notation any more . Even XSLT mapping is not working.
When I am pasting the payload in the Testing Mapping Editor, the Source Node are correctly
formed, but all come in RED . But as the root node , ie 'ns0' is not there, the value
from child nodes are not getting mapped to the target fields.
Regards,
SubhenduHi Joel,
SAP says, when we use the option 'DO Not Use SOAP Envelope', the payload also contains the SOAP
Envelope. So it is obvious that the payload wont start with 'ns0' notation.
So I am searching for a solution, when we use that option.
Regards,
Subhendu -
Hello,
I'm using my Macbook connected to external LCD while the screen of the Macbook is closed. So I can use the full screen resoluiton of my LCD. When not closed but connected the mirroring reduces the resolution and not useful.
But recently I recognized that when the Macbook screen is closed my fiber internet speed is down almost %50. When I test my fiber speed, when the macbook screen is open it's around 20mb/s, when the screen is closed and connected to LCD it's around 10 mb/s. I guess the wifi antenna is located at the screen I don't know. Is there any way to solve this probem? I want to use the lid closed without any sacrifice from my internet speed.
Thanks for any answers in advanceI have this same issue but what's strange is that it's only recently occurred since upgrading to FiOS's 50MB/s service. I was seeing 20MB/s WiFi speeds with my previous 25MB/s service. Frustrating!!
-
Problem in Reports While Using Netscape
Hi Guys,
I am able to run my reports successfully in the web mode
using Internet Explorer 5.0, but when i run the same application
using a Netscape Navigator, instead of opening a new window and
showing the report it prompts me to save the file (Save As
Dialog Box ) is shown. If the file is save and later opened ,
iam able to see my output perfectly. How is that IE and Netscape
Navigator is not behaving the same way. Is there any special
setting to be done.
My Environment is
Window NT 4.0 SP3
Oralce 8.0.5 Database
Forms 5.0 (Release 2.1)
Oralce Jinitiator 1.7.11.1
Reports 2.5
Regards
Veera
nullHi Thomson,
Thanks for your suggestion, It really worked out. But i also
came to know about better suggestion from oracle support. You
can still retain your HTML in registry , all you have to do is
to add HTML In the MIME type entry of Application Server. Just
put entries like HTML HTM . Delimeter here is a space. This
worked out for me.
Regards
Veera
Thomson Attasseril (guest) wrote:
: Hi Veera,
: I ran into the same problem with my application server running
on
: Sun Solaris. I changed the value of the FORMS60_REPFORMAT
: environment variable from HTML to html, and I did not get the
: 'Save As' dialog box after this fix.
: Regards,
: Thomson
: Vishnu Valda (guest) wrote:
: : Veera,
: : check the filename extension of your report html file. it
: should
: : be compatable with the file access extension of the browser(
: : netscape in your case)
: : vishnu V.
null -
Issue with join condition while using in the corelated sub query
Bees,
I am not able to use the below query since i have used a join condition in the corelated sub qery inline view.But i have a requirement like this . Please help me on this
select * from dept d
where exists (select 1 from (
select deptno
from emp where deptno= d.deptno)
Thank you
BooooHi,
I've never seen a general solution for how to reference columns from main query a from sub-query c, where c is is sub-query of b, which is a sub-query of a.
Whenever I've wanted to, I've been able to get the desired results with a different approach.
In this case, you seem to want
SELECT *
FROM dept d
WHERE EXISTS (
SELECT 1
FROM emp
WHERE deptno = d.deptno
);I'm guessing at your data and desired output. -
Problem with condition type in BAPI_PO_CREATE1
Hi All,
I am uploading the data for txn ME21N through BAPI_PO_CREATE1.
Whenever i m testing this bapi it is giving PO no. but Codition types are not getting update neither on header level nor on item level.
Header Condition type and Condition value ,I am giving in Structures POCONDHEADER, POCONDHEADERX and Item Condition type and Condition value , i am giving in structures POCOND,POCONDX.
Thanx in Advance.
Regards,
Shiv KantTake a look in this example:
ADD 10 TO v_item.
e_poheader-comp_code = t_cabec-bukrs.
e_poheader-doc_type = 'EC'.
e_poheader-vendor = t_cabec-lifnr.
e_poheader-creat_date = sy-datum.
e_poheader-created_by = sy-uname.
e_poheader-item_intvl = '0010'.
e_poheader-langu = sy-langu.
e_poheader-langu_iso = sy-langu.
e_poheader-incoterms1 = t_cabec-inco1.
e_poheader-incoterms2 = t_cabec-inco2.
e_poheader-currency = t_cabec-waers.
e_poheader-purch_org = v_ekorg.
e_poheader-pur_group = t_saida3-ekgrp.
e_poheader-pmnttrms = t_cabec-zterm.
e_poheader-telephone = t_cabec-telf1.
e_poheader-sales_pers = t_cabec-verkf.
e_poheaderx-comp_code = 'X'.
e_poheaderx-doc_type = 'X'.
e_poheaderx-vendor = 'X'.
e_poheaderx-creat_date = 'X'.
e_poheaderx-created_by = 'X'.
e_poheaderx-item_intvl = 'X'.
e_poheaderx-langu = 'X'.
e_poheaderx-langu_iso = 'X'.
e_poheaderx-incoterms1 = 'X'.
e_poheaderx-incoterms2 = 'X'.
e_poheaderx-currency = 'X'.
e_poheaderx-purch_org = 'X'.
e_poheaderx-pur_group = 'X'.
e_poheaderx-pmnttrms = 'X'.
e_poheaderx-telephone = 'X'.
e_poheaderx-sales_pers = 'X'.
IF t_saida3-elem_pep IS NOT INITIAL.
MOVE 'P' TO t_saida3-knttp.
ELSEIF t_saida3-aufnr IS NOT INITIAL.
MOVE 'F' TO t_saida3-knttp.
ELSEIF t_saida3-kostl IS NOT INITIAL.
MOVE 'K' TO t_saida3-knttp.
ENDIF.
t_poitem-po_item = v_item.
t_poitem-plant = s_werks.
t_poitem-short_text = t_saida3-txz01.
t_poitem-quantity = t_saida3-menge.
t_poitem-po_unit = t_saida3-meins.
t_poitem-acctasscat = t_saida3-knttp.
t_poitem-matl_group = t_saida3-matkl.
t_poitem-tax_code = t_saida3-mwskz.
t_poitem-order_reason = t_saida3-bsgru.
t_poitem-indus3 = t_saida3-j_1bindus3.
t_poitem-matl_usage = t_saida3-j_1bmatuse.
t_poitem-mat_origin = t_saida-j_1bmatorg.
t_poitem-item_cat = t_saida-epstp.
t_poitem-net_price = t_saida3-netpr.
t_poitem-price_unit = t_saida3-peinh.
t_poitem-bras_nbm = t_saida3-j_1bnbmco1.
t_poitem-PREQ_NAME = t_saida3-requisitante.
APPEND t_poitem.
t_poitemx-po_item = v_item.
t_poitemx-plant = 'X'.
t_poitemx-short_text = 'X'.
t_poitemx-quantity = 'X'.
t_poitemx-po_unit = 'X'.
t_poitemx-acctasscat = 'X'.
t_poitemx-matl_group = 'X'.
t_poitemx-tax_code = 'X'.
t_poitemx-order_reason = 'X'.
t_poitemx-indus3 = 'X'.
t_poitemx-matl_usage = 'X'.
t_poitemx-mat_origin = 'X'.
t_poitemx-item_cat = 'X'.
t_poitemx-net_price = 'X'.
t_poitemx-price_unit = 'X'.
t_poitemx-bras_nbm = 'X'.
t_poitemx-preq_name = 'X'.
APPEND t_poitemx.
t_schedule-po_item = v_item.
t_schedule-del_datcat_ext = '1'.
t_schedule-delivery_date = v_data.
t_schedule-del_datcat_ext = 'D'.
t_schedule-quantity = t_saida3-menge.
APPEND t_schedule.
t_schedulx-po_item = v_item.
t_schedulx-del_datcat_ext = 'X'.
t_schedulx-delivery_date = 'X'.
t_schedulx-del_datcat_ext = 'X'.
t_schedulx-quantity = 'X'.
APPEND t_schedulx.
t_account-po_item = v_item.
t_account-gl_account = t_saida3-saknr.
t_account-wbs_element = t_saida3-elem_pep.
t_account-costcenter = t_saida3-kostl.
t_account-orderid = t_saida3-aufnr.
t_account-gr_rcpt = t_saida3-recebedor.
t_account-unload_pt = t_saida3-pdescarga.
APPEND t_account.
t_accountx-po_item = v_item.
t_accountx-gl_account = 'X'.
t_accountx-wbs_element = 'X'.
t_accountx-costcenter = 'X'.
t_accountx-orderid = 'X'.
t_accountx-gr_rcpt = 'X'.
t_accountx-unload_pt = 'X'.
APPEND t_accountx.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = e_poheader
poheaderx = e_poheaderx
testrun = ' '
IMPORTING
exppurchaseorder = v_pedido
TABLES
return = t_bapiret2
poitem = t_poitem
poitemx = t_poitemx
poschedule = t_schedule
poschedulex = t_schedulx
poaccount = t_account
poaccountx = t_accountx
potextitem = t_textitem
potextheader = t_textheader.
Maybe you are looking for
-
I am getting an error message every 15 seconds that tells me: A USB device is currently drawing too much power. The hub to which it is attached will be deactivated. It gives me the option to say OK, and I say OK, but the message keeps popping up. If
-
SO MANT ITUNES ERRORS!!!!
I have already recieved one iTunes error and found the solution and fixed. That I have another one, (-1202), that I can't find the solution too and no one else has seemed to have recieved that error. If anyone knows a soltuion, please help. Thank you
-
Hi Gurus, Please could you help me answer if the following is possible? A report to find out when a Bill To or Ship To was last used A report to identify all accounts that have been marked with u201CDo not useu201D A report to identify any duplicate
-
Which partition format to choose to make second internal drive read/write for Windows 7
Hi, I have a new Mac Mini Server 2011 and I would like to split partition my second internal hard drive to use in Bootcamp Windows 7. I would like to split this drive so that I can have one partition in NTFS and other half in standard MAC OS format.
-
I am a new iPad user (IOS 7.0.2) but have used iTunes for many years on both an iPod and a PC. My iTunes library is in iCloud and I have also been using AirPlay to play music from my PC through my HiFi system with no problems. Now I have the iPad I c