Error while doing Bulk Collect to a table type
I'm using a Table type to accumulate resultset from a loop and finally return the records in the table type as a ref cursor to the front end.
But when I'm using Bult collect to insert into the table type object it keeps throwing an error
'PLS-00597: expression 'TAB_CALENDAR_AVAIL_RESULTSET' in the INTO list is of wrong type'. Can someone help me to let me know what could be the reason for this error. I'm not able to proceed further, please help.
Here is the code.
CREATE OR REPLACE PACKAGE hotel
AS
TYPE calendar_cursor IS REF CURSOR;
TYPE type_calendar_avail is RECORD(
HOTEL_ID AVAILABILITY_CALENDAR.hotel_id%TYPE,--varchar2(4), --AVAILABILITY_CALENDAR.hotel_id%TYPE,
AVAIL_DATE AVAILABILITY_CALENDAR.AVAIL_DATE%TYPE ,
TOTAL_COUNT number
TYPE type_calendar_avail_resultset IS TABLE OF type_calendar_avail;
tab_calendar_avail_resultset type_calendar_avail_resultset ; -- declare variable of type type_calendar_avail_resultset
PROCEDURE sp_get_calendar_results (
sallhotelswithavaildate VARCHAR2,
ilengthofstay NUMBER,
sorcowner VARCHAR2,
all_unittypes VARCHAR2, --DBMS_SQL.VARCHAR2S
calendar_resultset OUT calendar_cursor
-- tab_calendar_avail_resultset out type_calendar_avail_resultset
PROCEDURE sp_get_calendar_results (
sallhotelswithavaildate VARCHAR2,
ilengthofstay NUMBER,
-- ivariant NUMBER,
sorcowner VARCHAR2,
all_unittypes VARCHAR2, --DBMS_SQL.VARCHAR2S
calendar_resultset OUT calendar_cursor
AS
sbuf VARCHAR2 (200);
sepr VARCHAR2 (1);
shotelwithdate VARCHAR2 (200);
shotelid VARCHAR2 (10);
savaildate VARCHAR2 (8);
sactualavaildate VARCHAR2 (8);
pos NUMBER;
istart NUMBER;
sstartdate VARCHAR2 (8);
senddate VARCHAR2 (8);
squery VARCHAR2 (32767) := '';
sunittypecond VARCHAR2 (500) := '';
sunitdesccond VARCHAR2 (500) := '';
v_unit_cond a_unit_cond;
tempunitcond VARCHAR2 (50) := '';
BEGIN
istart := 1;
LOOP
tempunitcond := hotel.stringtokenizer (all_unittypes, istart, '|');
IF tempunitcond IS NOT NULL
THEN
v_unit_cond (istart) := tempunitcond;
istart := istart + 1;
END IF;
EXIT WHEN tempunitcond IS NULL;
END LOOP;
sunitdesccond := hotel.get_unit_description_cond (v_unit_cond);
DBMS_OUTPUT.put_line ('unit description : ' || sunitdesccond);
sbuf := sallhotelswithavaildate;
sepr := '|';
istart := 1;
LOOP
shotelwithdate := hotel.stringtokenizer (sbuf, istart, sepr);
EXIT WHEN shotelwithdate IS NULL;
shotelid :=
SUBSTR (shotelwithdate, 1, INSTR (shotelwithdate, ',') - 1);
savaildate :=
SUBSTR (shotelwithdate, INSTR (shotelwithdate, ',') + 1);
squery :=
' SELECT MIN (ad.avail_date) '
|| ' FROM wvo_fonres.fpavail_daily ad'
|| ' WHERE ad.hotel_id = '
|| shotelid
|| ' AND ad.days_left >= '
|| ilengthofstay
|| ' AND ad.avail_date >= '
|| savaildate;
IF UPPER (sorcowner) = 'N'
THEN
squery :=
squery
|| ' AND ad.ORC_TYPE != ''R'' and ad.ORC_TYPE != ''P'' and ad.ORC_TYPE != ''E'' ';
END IF;
squery := squery || ' AND ( ' || sunitdesccond || ') ';
EXECUTE IMMEDIATE squery
INTO sactualavaildate;
DBMS_OUTPUT.put_line ('Actual available Date: ' || sactualavaildate);
hotel.sp_get_startdate_enddate (sactualavaildate,
--ivariant,
sstartdate,
senddate
sunittypecond := hotel.get_unittype_cond (v_unit_cond, sorcowner);
-- execute immediate
squery :=
'select HOTEL_ID, AVAIL_DATE, ' || sunittypecond || ' AS TOTAL_COUNT '
|| ' FROM AVAILABILITY_CALENDAR A '
|| 'WHERE '
|| 'AVAIL_DATE >= '''
|| sstartdate
|| ''' '
|| 'AND '
|| 'AVAIL_DATE <= '''
|| senddate
|| ''' '
||'AND '
|| 'A.HOTEL_ID IN ('
|| shotelid
|| ') '
|| 'AND ('
|| sunittypecond
|| '> 0) '
|| -- where total available count of unit type is greater than 0
' ORDER BY AVAIL_DATE'; --order clause
open calendar_resultset for squery;
fetch calendar_resultset BULK COLLECT INTO tab_calendar_avail_resultset;
istart := istart + 1;
END LOOP;
COMMIT;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line
(SQLERRM (SQLCODE));
RAISE;
END sp_get_calendar_results;
END hotel;
/
1. put tags [co[/b][b]de] and [co[/b][b]de] around your code, so it's readable
B. what does "hotel.get_unittype_cond (v_unit_cond, sorcowner)" actually retun?
and third, try this for the array declaration:
tab_calendar_avail_resultset type_calendar_avail_resultset := type_calendar_avail_resultset ; () ;
Similar Messages
-
Error while doing bulk collect
Dear forum,
I am getting following error while i try to use the bulk collect
ERROR at line 1:
ORA-06500: PL/SQL: storage error
ORA-04030: out of process memory when trying to allocate 16408 bytes (koh-kghu
call ,pmuccst: adt/record)
ORA-06512: at "XLAPP14.TEST_LOAD", line 30
ORA-06512: at line 2
Pls assist
ThanksThis is a duplicate post.
Please never post more than once.
Everyone should ignore this. -
Error while using bulk collect
Hi
I tried with the following code,
DECLARE
TYPE EmpRec IS RECORD (last_name EMP.ename%TYPE,
salary emp.sal%TYPE);
emp_info EmpRec;
TYPE empnest IS TABLE OF EMP.empno%TYPE;
empnestvar empnest;
BEGIN
empnestvar := empnest(7566,7788);
FOR i in empnestvar.first..empnestvar.last LOOP
UPDATE emp SET sal = sal * 1.1 WHERE empno = empnestvar(i)
RETURNING ename, sal BULK COLLECT INTO emp_info;
DBMS_OUTPUT.PUT_LINE('Just gave a raise to ' || emp_info.last_name ||
', who now makes ' || emp_info.salary);
ROLLBACK;
END LOOP;
END;getting this following err
RETURNING ename, sal BULK COLLECT INTO emp_info;
ERROR at line 11:
ORA-03113: end-of-file on communication channelCould you please advice me in this
ThanksThe main problem i you are bulk collecting into a "record" type variable.
SQL>
SQL> SHOW user
USER is "SCOTT"
SQL> SELECT * FROM v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
PL/SQL Release 10.2.0.2.0 - Production
CORE 10.2.0.2.0 Production
TNS for Solaris: Version 10.2.0.2.0 - Production
NLSRTL Version 10.2.0.2.0 - Production
SQL> SET SERVEROUT on
SQL> DECLARE
TYPE EmpRec IS RECORD(
last_name EMP.ename%TYPE,
salary emp.sal%TYPE);
TYPE emp_bl IS TABLE OF EmpRec; --Added.
emp_info emp_bl; --Changed.
TYPE empnest IS TABLE OF EMP.empno%TYPE;
empnestvar empnest;
BEGIN
empnestvar := empnest(7566, 7788);
FOR i in empnestvar.first .. empnestvar.last LOOP
UPDATE emp
SET sal = sal * 1.1
WHERE empno = empnestvar(i) RETURNING ename, sal BULK COLLECT INTO
emp_info;
DBMS_OUTPUT.PUT_LINE('Just gave a raise to ' || emp_info(1)
.last_name || ', who now makes ' || emp_info(1)
.salary);
ROLLBACK;
END LOOP;
END; 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
22 /
Just gave a raise to JONES, who now makes 3272.5
Just gave a raise to SCOTT, who now makes 3300
PL/SQL procedure successfully completed.
SQL>Although, I must say that, as because empno is the primary key, here RETURNING INT with BULK COLLECT doesn't make any sense. -
Error while doing MIRO-Overflow for arithmetical operation (type P) in prog
Hi ,
I am getting the error while doing the MIRO as below-
Runtime Errors COMPUTE_BCD_OVERFLOW
Exception CX_SY_ARITHMETIC_OVERFLOW
Date and Time 20.05.2009 10:07:03
Short text
Overflow during the arithmetical operation (type P) in program "SAPLMRMC".
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLMRMC" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_ARITHMETIC_OVERFLOW', was not
caught in
procedure "MRM_AMOUNT_QUANTITY_PROPOSE" "(FUNCTION)", nor was it propagated by
a RAISING clause.
Since the caller of the procedure could not have anticipated that the
Please let me know how can this be removed.Hi,
There can be some problem with tolerances set in the customizing.
In my case, I was getting this error because of delivery date variance. The difference between delivery date maintained in PO and invoice date was huge and hence the multiplication of price of PO and difference of delivery date was huge and that was the reason for error.
Similarly in your case also, there will be some tolerance limit problem.
Please check your tolerance limits set in customizing.
Regards,
Mihir Popat -
Error while doing the collection agent install
Hello everyone, I was going through the installation guide for agent collection agents and got to the point where I had to
but I am getting this error: Exception in thread "main" java.lang.NoClassDefFoundError: oracle/av/avca/Avca
when running this command: ./avca -s initialize_agent -agentname agentname -agentusr username/password -agentport 7000 -av server:port:db_name:domain -rmiport 3101 -jms port 3201
Does anyone have any thoughts?
Greatly appreciated!Hi:
Can you specify which platform (OS) you are on, what version of the agent you are installing, what the contents of $ORACLE_HOME/av/log have to say about the error? -
Error in bulk collect into nested table
I keep getting an error while trying to compile this line:
fetch c_juros bulk collect into wrk_juros_plano(p_ind_segreg);
LINE/COL ERROR
0/0 PLS-00801: internal error [74306]When i put that single line into comments it goes fine. Sure it doesn't do what I want.
The data structure i use is as follows:
cursor c_juros(p_ind_segreg in varchar2) is
select (((power(1 + (i.prc_juros_atuari_ano / 100), 1 / 12) - 1) * 100) / 100) prc_juros_efetiv_mes,
i.dat_inic_vigenc,
(nvl(i.dat_fim_vigenc, sysdate) + 1) dat_fim_vigenc,
i.ind_segreg
from v_indexador_taxa_atuarial i
where i.ind_segreg = p_ind_segreg
order by i.dat_inic_vigenc;
type t_juros_plano is table of c_juros%rowtype;
type t_tab_juros_plano is table of t_juros_plano index by binary_integer;
wrk_juros_plano t_tab_juros_plano;the code goes like this:
begin
if not(wrk_juros_plano.exists(p_ind_segreg))
then
if c_juros%isopen
then
close c_juros;
end if;
open c_juros(p_ind_segreg);
wrk_juros_plano(p_ind_segreg) := t_juros_plano();
fetch c_juros bulk collect into wrk_juros_plano(p_ind_segreg);
end if;
...p_ind_segreg is my input parameter, that should be the index of the array.
The purpose is to create the parameter indexed element if it doesn't already exist, fetching it
from the cursor, that defines a nested table.
I tried removing the initialization line to no effect, among other things.Ok, I just found out a way around it. It works, but that error is probably a bug, cause workarounds are not really cute.
I declared a nested table compatible with the element from the associative array:
wrk_juros t_juros_plano;and chaged that line that was causing the error
fetch c_juros bulk collect into wrk_juros_plano(p_ind_segreg);for
fetch c_juros bulk collect into wrk_juros;
wrk_juros_plano(p_ind_segreg) := wrk_juros;Awesome =\ -
Error While Doing GR "Check table YMSEG:"
I am getting following error while doing GR for sales set article 303387.
Check table YMSEG: entry 303384 0001 does not exist
Sales set header 303387
sales set Component 303384 & 303386.
can't find any issue with the article (material) setupYMSEG is a standard internal table used in import and export of function modules.
if you search SAP notes on YMSEG then you get about 230 hits.
Unfortunately the info given is by far not enough to tell you the reason for this error.
The number from the error explains just that it is one of the sales set Components
But you need to describe the process and what changes you eventually did compared to standard process. Only then we might be able to help you further. -
Error while doing outbound delivery against Purchase Order
hello
i m getting error while doing Outbound delivery for purchase order as follows
EKPO-SOBKZ=E; EKPO-UMSOK=_; EKPO-KZBWS<>_ EKPO-KZVBR<>E (Note 305582) not supported (check your entry)
Message no. M7146, i m not getting wht will be the reason,
Regards
NISHJPlease go through the note - 305582. It is clearly given the direction.
Symptom
You try to post a goods movement for a stock transport order from the unrestricted-use stock into the sales order stock or project stock.
During the goods issue, the system displays error message M7146 with a text along the lines of "EKPO-SOBKZ=E; EKPO-KZVBR<>E; ... not supported".
Cause and prerequisites
In the goods issue for the stock transport order, the system may have to create a stock in transit which is deconstructed during the goods receipt. If the withdrawal takes place from the special stock, it is clear which is the receiving stock.
However, if the withdrawal is carried out from the unrestricted-use stock ("Collective requirements", controlled by the dependent requirements indicator MARC-SBDKZ in the material master of the issuing plant), this results in the design problem that the control tables of the goods movement do not have any key field for the receiving stock. Therefore, the control for the receiving stock is controlled via the consumption indicator in the account assignment category of the purchase order. The consumption indicator therefore requires a specific default setting (you may have assumed you could change the design of these control tables, however this is not possible).
Using an inappropriate consumption indicator then causes for the goods issue an incorrect or no stock in transit to be created so that the goods receipt fails.
Solution
Implement the program change in accordance with the correction instructions.
Afterwards implement Note 413908 immediately if this is relevant for your release. -
Error while doing "Visulaize Plan"
Hi,
Before i did Visualize plan many times without any problem.Now I am getting error while doing so.
I was able to run "Explain Plan" successfully.
I am on HANA revision 60.
I saved above error log and the log information is given below:
I can identify invalid XML tag <TablesInvolved><![CDATA[raj/AN_VIZ]]></TablesInvolved> but how to fix this issue?
I gone through various blogs related to Visulaization Plan but not found related to this issue.
<Plan xmlns="http://www.sap.com/ndb/planviz" ID="ID_0" Type="Estimated">
<SQL><![CDATA[SELECT KOKRS, BELNR, PERIO, SUM(MEGBTR)
FROM "_SYS_BIC"."raj/AN_VIZ"
GROUP BY KOKRS, BELNR, PERIO]]></SQL>
<CompileTime>
<Start Unit="us">1401281467643661</Start>
<End Unit="us">1401281467658329</End>
</CompileTime>
<RootRelation ID="ID_0" TypeName="PROJECT" Status="Finished">
<Name>Project</Name>
<ExecutionType>Row Search</ExecutionType>
<Summary><![CDATA[raj/AN_VIZ.KOKRS, raj/AN_VIZ.BELNR, raj/AN_VIZ.PERIO, SUM(raj/AN_VIZ.MEGBTR)]]></Summary>
<Location>hanasp7:30003</Location>
<EstimatedCost>
<Exclusive Unit="us">2.12902e+06</Exclusive>
<Inclusive Unit="us">2.64021e+06</Inclusive>
</EstimatedCost>
<EstimatedOutputCardinality>648284</EstimatedOutputCardinality>
<Details><![CDATA[{"Projected Cols":"raj/AN_VIZ.KOKRS, raj/AN_VIZ.BELNR, raj/AN_VIZ.PERIO, SUM(raj/AN_VIZ.MEGBTR)","Project column0":"NString(4, 0) __trex_field_NVarchar3__() ....... [3]:040:<5/7 (16B)>:
/1/ void* \"__rids__\" ....... [0]:NOP:<0/1 (8B)>:
/2/ int32_t(10, 0) const := 0 ....... [1]:LOAD:<3/4 (4B)>:
/3/ int32_t(10, 0) const := 0 ....... [2]:LOAD:<4/5 (4B)>:","Project column1":"NString(10, 0) __trex_field_NVarchar3__() ....... [8]:040:<5/7 (16B)>:
/1/ void* \"__rids__\" ....... [5]:NOP:<0/1 (8B)>:
/2/ int32_t(10, 0) const := 0 ....... [6]:LOAD:<3/4 (4B)>:
/3/ int32_t(10, 0) const := 1 ....... [7]:LOAD:<4/5 (4B)>:","Project column2":"NString(3, 0) __trex_field_NVarchar3__() ....... [13]:040:<5/7 (16B)>:
/1/ void* \"__rids__\" ....... [10]:NOP:<0/1 (8B)>:
/2/ int32_t(10, 0) const := 0 ....... [11]:LOAD:<3/4 (4B)>:
/3/ int32_t(10, 0) const := 2 ....... [12]:LOAD:<4/5 (4B)>:","Project column3":"Decimal(18, 3) __typecast__() ....... [23]:076:<10/12 (16B)>:
/1/ Fixed16(18, 3) __trex_field_Fixed16__() ....... [19]:043:<6/8 (16B)>:
/1/ void* \"__rids__\" ....... [15]:NOP:<0/1 (8B)>:
/2/ int32_t(10, 0) const := 0 ....... [16]:LOAD:<3/4 (4B)>:
/3/ int32_t(10, 0) const := 3 ....... [17]:LOAD:<4/5 (4B)>:
/4/ int32_t(10, 0) const := 3 ....... [18]:LOAD:<5/6 (4B)>:
/2/ int32_t(10, 0) const := 18 ....... [21]:LOAD:<8/9 (4B)>:
/3/ int32_t(10, 0) const := 3 ....... [22]:LOAD:<9/10 (4B)>:"}]]></Details>
<Child ID="ID_8" >
</Child>
</RootRelation>
<Relation ID="ID_8" TypeName="TREX_SEARCH" Status="Finished">
<Name>Column Search</Name>
<ExecutionType>Column Search</ExecutionType>
<Summary><![CDATA[Aggregation on a single table]]></Summary>
<Location>hanasp7:30003</Location>
<EstimatedCost>
<Exclusive Unit="us">511194</Exclusive>
<Inclusive Unit="us">511194</Inclusive>
</EstimatedCost>
<EstimatedOutputCardinality>648284</EstimatedOutputCardinality>
<TablesInvolved><![CDATA[raj/AN_VIZ]]></TablesInvolved>
<LogicalPlan ID="ID_11" Type="Estimated">
<RootRelation ID="ID_11" TypeName="PROJECT" Status="Finished">
<Name>Project</Name>
<EstimatedCost>
<Exclusive Unit="us">0</Exclusive>
<Inclusive Unit="us">0</Inclusive>
</EstimatedCost>
<EstimatedOutputCardinality>648284</EstimatedOutputCardinality>
<Child ID="ID_12" >
</Child>
</RootRelation>
<Relation ID="ID_12" TypeName="GROUP_BY" Status="Finished">
<Name>Aggregation</Name>
<Summary><![CDATA[raj/AN_VIZ.KOKRS, raj/AN_VIZ.BELNR, raj/AN_VIZ.PERIO\nSUM(raj/AN_VIZ.MEGBTR)]]></Summary>
<EstimatedCost>
<Exclusive Unit="us">0</Exclusive>
<Inclusive Unit="us">0</Inclusive>
</EstimatedCost>
<EstimatedOutputCardinality>648284</EstimatedOutputCardinality>
<Details><![CDATA[{"Grouping Cols":"raj/AN_VIZ.KOKRS, raj/AN_VIZ.BELNR, raj/AN_VIZ.PERIO","Aggregation Cols":"SUM(raj/AN_VIZ.MEGBTR)"}]]></Details>
<Child ID="ID_13" >
</Child>
</Relation>
<Relation ID="ID_13" TypeName="TABLE" Status="Finished">
<Name>Column View</Name>
<Schema><![CDATA[_SYS_BIC]]></Schema>
<ObjectName><![CDATA[raj/AN_VIZ]]></ObjectName>
<Location>hanasp7:30003</Location>
<EstimatedCost>
<Exclusive Unit="us">0</Exclusive>
<Inclusive Unit="us">0</Inclusive>
</EstimatedCost>
<EstimatedOutputCardinality>682404</EstimatedOutputCardinality>
</Relation>
</LogicalPlan>
</Relation>
</Plan>
Regards
RajHi,
To solve this you must update your studio. In lower studio versions (PlanViz) does not allow "unknown" XML tags sent by higher version servers. A fix for this issue was made so that PlanViz parser can simply skip unknown tags.
Please go to version 74, if possible.
Regards,
Michael -
Error while doing F-90 Asset Acquisation
Hi,
I am getting the below error while doing F-90 Asset Acquisation scenario. Please help me to fix this issue.
Tax code V1 country IN does not exist in procedure TAXINN
Message no. FF713
Diagnosis
You entered a tax code which is not defined for the country of the company code to be posted to in the tax calculation procedure.
System Response
Procedure
Check and, if necessary, correct the entry.
Procedure for System Administration
If it is not an input error, check and possibly change the system settings.
To do this, choose Maintain entries (F5).
Check whether the company code is assigned to the correct country and whether the correct tax calculation procedure has been entered for the company code country.
Create a new tax code if necessary.
Caution:
Since it is possible that the tables in question are being updated at a different time on another computer, it can take a certain amount of time for the tax code to be on all local machines in client server architectures after saving the new code.
Thanks
KBHi,
you need to maintain Tax Code A0 & V0 in t.code OBCL t.code.
and also ensure to check whether you have created tax code V1 or not in FTXP t.code. If not, create V1 tax code and assign GL on that in the right Transaction event keys in OB40.
Try.... if not working let me know....
Regards,
MOhan. -
Error while doing AIAB Settlement
Hi I am facing the below error while doing AIAB during AUC settlement. Please do the needful.
Data for determination of capitalization not managed in area 01
Message no. AW507
Diagnosis
You have chosen a depreciation area, which does not carry the depreciation data from table COEPBR.
Procedure
Choose a different depreciation area.
Thanks
KCHi,
This message could be helpful:
Error AW507
Please check the field T082AVIEWB-AUTHORITY. If it is not on 2 this is the reason.
In this case, you can change the value in T093-VIEW1 using the coding as per SAP note 29706 which you have already discovered. There will be no risk involved in changing this value.
regards Bernhard -
Hi every one'
i got an error while doing billing
Error :sub transactions in schema Z step 0001 inconsistent,
this error is comming while using transaction eamabi,
the schema is worked properly since i updated a line item for additional TAX,
and we created new sub transactins for additional vat,AND for the sub transactions i have added a new GL account,
and i have added those Sub transactions in the respective field of the rate,
I have maintained properly all the fica setting for the sub trasactions...like ek01 and ek02 and table te305 & tfktvo as well. Dont understand where the setting have been missed..Please let me kow if you come acrosee this kind of situation.
later i have deleted all the line items in tha same schema,and i have given only quanti01 variant
and does not have any vat related line item maintained at schema even though the same error proposed.
regards
BekMsI think you need to ask FICA person to fix the subs, This is not billing or rate error. There must be some config missing in sub's and main. If you give another try with any other subs it should work. This will help you to double check too.
GG -
Error while doing Challan updation
Dear all,
Iam getting error while doing Challan updation, system shows an error saying "No line Item exist for Challan updation" whereas iam having all the data but the system is not picking.
pls help on this
will get a good points for solving thisI understood ur problem, u r running the J1INCHLN when u r running this program . Program chks both the Table BSEG & WITH_ITEM they 2 field from BSEG-BUZEI & WITH_ITEM -J_1IBUZEI . if this 2 line item is not matching then system will show the same error which u have mentioned.
Whether this has occured first time or rarely it occurs, if first then just update the table WITH_ITEM for the field J_1IBUZEI with respect to BSEG-BUZEI for the TDS line item only. Make the changes with help of ur Internal consultant. write an update program. -
Error while doing PGI for Outbound delivery using BAPI BAPI_GOODSMVT_CREATE
Hi All,
I am getting an below error while doing PGI for outbound delivery using the BAPI BAPI BAPI_GOODSMVT_CREATE:
Goods movement not possible with mvmt type 601
Can anyone suggest me what will be the solution for it?
Regards,
Raghuraman.kI tried with the above BAPI but it is not working.
In my case a delivery has one line item with batch split and other line item without batch split.
Below is my code :
DATA : gwa_header_data TYPE bapiobdlvhdrcon,
gwa_header_ctrl TYPE bapiobdlvhdrctrlcon,
lv_delivery TYPE bapiobdlvhdrcon-deliv_numb,
git_item_data TYPE STANDARD TABLE OF bapiobdlvitemcon,
gwa_item_data TYPE bapiobdlvitemcon,
git_item_ctrl TYPE STANDARD TABLE OF bapiobdlvitemctrlcon,
gwa_item_ctrl TYPE bapiobdlvitemctrlcon,
git_return TYPE STANDARD TABLE OF bapiret2,
gwa_return TYPE bapiret2.
*Header data
gwa_header_data-deliv_numb = '0808000002'.
*Header Control data
gwa_header_ctrl-deliv_numb = '0808000002'.
gwa_header_ctrl-post_gi_flg = 'X'.
*Delivery Number
lv_delivery = '0808000002'.
*Item data and its corresponding control data
gwa_item_data-deliv_numb = '0808000002'.
gwa_item_data-deliv_item = '900002'.
gwa_item_data-dlv_qty = 4.
gwa_item_data-dlv_qty_imunit = 4.
gwa_item_data-fact_unit_nom = 1.
gwa_item_data-fact_unit_denom = 1.
APPEND gwa_item_data TO git_item_data.
gwa_item_ctrl-deliv_numb = '0808000002'.
gwa_item_ctrl-deliv_item = '900002'.
gwa_item_ctrl-chg_delqty = 'X'.
APPEND gwa_item_ctrl TO git_item_ctrl.
gwa_item_data-deliv_numb = '0808000002'.
gwa_item_data-deliv_item = '900003'.
gwa_item_data-dlv_qty = 6.
gwa_item_data-dlv_qty_imunit = 6.
gwa_item_data-fact_unit_nom = 1.
gwa_item_data-fact_unit_denom = 1.
APPEND gwa_item_data TO git_item_data.
gwa_item_ctrl-deliv_numb = '0808000002'.
gwa_item_ctrl-deliv_item = '900003'.
gwa_item_ctrl-chg_delqty = 'X'.
APPEND gwa_item_ctrl TO git_item_ctrl.
gwa_item_data-deliv_numb = '0808000002'.
gwa_item_data-deliv_item = '000020'.
gwa_item_data-dlv_qty = 10.
gwa_item_data-dlv_qty_imunit = 10.
gwa_item_data-fact_unit_nom = 1.
gwa_item_data-fact_unit_denom = 1.
APPEND gwa_item_data TO git_item_data.
gwa_item_ctrl-deliv_numb = '0808000002'.
gwa_item_ctrl-deliv_item = '000020'.
gwa_item_ctrl-chg_delqty = 'X'.
APPEND gwa_item_ctrl TO git_item_ctrl.
BREAK-POINT.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
EXPORTING
header_data = gwa_header_data
header_control = gwa_header_ctrl
delivery = lv_delivery
TABLES
item_data = git_item_data
item_control = git_item_ctrl
return = git_return.
BREAK-POINT.
IF git_return IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF. -
Error while doing confirmation with cor6
Dear PP gurus,
I am getting following error while doing confirmation. please suggest.
"Error while importing from memory QAPO SAPLQEEV
0400000363"
Thanks in advance
Kailash T.Hi,
The structure QAPO relates to Inspection operation records & the program - SAPLQEEV relates to Spec. tables for results recording. Hence would suggest to discuss this with your QM personnel.
Also was able to find a link which had a same issue, but no solution posted, have a look if it helps in anyway
http://www.sapfans.com/forums/viewtopic.php?f=27&t=173200
Also refer to OSS note - 334400. If all the above does not resolve the issue, raise an OSS message with SAP.
Regards,
Vivek
Maybe you are looking for
-
How to resize image in JSP using JAI ??!!
Please help me how to resize an JPEG image from my JSP, could I use JAI lib ? how ?
-
64 bit vs 32 bit Labview on an AMD Opteron 6380
When running my code on an AMD Opteron 6380 processor, Labview 2014 64bit runs 4 times slower than when running with Labview 2014 32bit. However the same code running on and INTEL Core i7 ran twice as fast with Labview 64bit vs 32bit. Does anyone k
-
Hi is there a way that I can send a user an access code for a particular document - like a contract to be completed.
-
I want to try Oracle 8i software on my PC. Is there anyway that I could get a trial CD. I dont want to download a 195 meg through a phone line. Thanks
-
How do I remove phone number from iMessage on one device only
Hi there, I recently upgraded my iphone 4 for an iphone 6 and we decide to let my niece have the old iphone 4 with our account set up so that she can have the apps that we have as well. Now, I am able to deactivate iMessage but I don't want her to "