Creating a business object using bapi
can some one tell me how to create a business object using a bapi and is it possible to create bapi using business object.which is dependent on which one.
>
jayashankar wrote:
> can some one tell me how to create a business object using a bapi and is it possible to create bapi using business object.which is dependent on which one.
No....
First read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]...
Similar Messages
-
Create Employee as a Business partner using BAPI
Hi,
I created a business partner using the BAPI,
"BAPI_BUP_CREATE_FROM_DATA". I used this within a program. The business partner gets successfully created and gets reflected in the table BUT000. But I do not see it when I run the user exit "RPM_EMPDATA".Because of this I am not able to see the business partner inside cProjects. I am able to see the business partner inside the transaction BP. When I go into change mode and change the role (from Business partner role to Resource role),and when I save this business partner I am able to see the details in the user exit RPM_EMPDATA. I am also able to assign this business partner to tasks in cProjects.
Message was edited by:
Sudheendra PuthurayaHi sanjay,
Thanks for ur reply.
i just referred all the documents that you have mentioned in the previous suggestion.
[ID 1400877.1] - This one doesnt help me and i have rehired the employee and checked but still facing the same issue in the supplier interface.
[ID 433746.1] - This one refers to the creation supplier through forms and i have checked the same which has been mentioned in the document. Everything is fine which the front end creation too.
But am still facing the same issue.
Kindly suggest me the if the issue can be solved in someother ways.
Thanks in Advance.
Brgds
Max -
Create a Business Object and add to transaction MASS
Hi folks, I would like to know if it's possible to create a business object for 2 tables and use this with standard transaction MASS for mass maintenance.
I want to use transaction MASS for mass maintenance on the foreign trade data, 2 table will be available eikp and eipo. I think I will have to create a business object, first it is possible and how will I setup all this,
thanksHi,
Check this link.
http://www.erpgenie.com/abap/bapi/example.htm
aRs -
Hi ABAP experts,
I am trying to send a SAP mail with a link. When the user clicks on the link
they will jump to a transaction passing the parameters specified in the link.
I have created the business object and want to know how to pass the
parameters in the link.
I have done it in the past so I know it can be done. I just can't seem to remember how....
When I click on the link it goes the transaction but I can't pass the parameters and execute the program....
Thanks for your help in advance.
Please see below code.
ldf_facility = 'DH'.
doc_chng-obj_name = 'mail_att'.
doc_chng-obj_descr = text-024. "Validate Status
*w_objtxt = text-999.
w_objtxt = '<A HREF="sap-object://YJPV_REPT ">Document Status</a>'.
*replace '&&' with ldf_facility into w_objtxt.
*append w_objtxt to t_objtxt.
*replace 'FF' with ldf_filename into w_objtxt.
append w_objtxt to t_objtxt.
w_objtxt = text-025. "Click the link above.
append w_objtxt to t_objtxt.
*Read last line.
describe table t_objtxt lines tab_lines.
read table t_objtxt into w_objtxt index tab_lines.
*Get object document size.
doc_chng-doc_size = ( tab_lines - 1 ) * 255 + strlen( w_objtxt ).
*Document entry
clear w_objpack-transf_bin.
*header start
w_objpack-head_start = 1.
w_objpack-head_num = 0.
*number of lines.
w_objpack-body_start = 1.
w_objpack-body_num = tab_lines.
w_objpack-doc_type = 'RAW'.
append w_objpack to t_objpack.
w_objbin = 'YJPV_REPT'.
append w_objbin to t_objbin.
describe table t_objbin lines tab_lines.
*Attached document text
w_objhead = text-033. "IDoc List
append w_objhead to t_objhead.
w_reclist-receiver = sy-uname.
w_reclist-rec_type = 'B'. "'B' = R/3 user 'U' = internet mail
w_reclist-express = 'X'.
append w_reclist to t_reclist.
*Send document
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = doc_chng
put_in_outbox = 'X'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
tables
packing_list = t_objpack
object_header = t_objhead
contents_bin = t_objbin
contents_txt = t_objtxt
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
receivers = t_reclist
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.Hello,
You can have the fixed width of the colums in excel (No additional spaces in the column) is you use, the seperator between the fields.
For eg : If you are displaying 3 fields in the excel file, say MATNR, WERKS and QUANTITY.
Then you need to
Concatenate matnr
werks
quantity
into ls_contents_bin-line
separated by lc_tab.
append ls_contents_bin to lt_contents_bin.
Here lc_tab is the tab seperator to be declared as follows : -
CONSTANTS : lc_tab TYPE char01 VALUE cl_abap_char_utilities=>horizontal_tab.
The internal table lt_contents_bin is then passed to the table parameters contents_bin of the FM SO_NEW_DOCUMENT_ATT_SEND_API1.
Thanks.
Regards,
Rinkesh Doshi -
Create a business object for a Maintenance object
Hello,
I want to create a business object for a maintenance object to change all XML attributes to XML elements.
Should I have to change the whole XML Schema from attributes to elements one by one?
For example, I create the business object CM_Person_BO for the maintenance object Person, and use the business object to add user in a more standard way.
But it is a quite large job to rewrite the whole schema for the maintenance object Person, which has following elements, which are PersonIdentifiers, PersonNames, PersonPhones, PersonCharacteristics, Person and SeasAddress.
Is there any easy way to do it?
Thanks,
KerrShould I have to change the whole XML Schema from attributes to elements one by one?
Is there any easy way to do it?Unfortunately not, you will have to define the schema containing each field/element, once. The primary objective is that you should create a scaled down version of the BO having only the required fields or subset of available fields, you may not need all the fields of a MO. This increases performance as the IO is performed only for specified fields in the BO.
You can define separate Data Areas for each Person object's context, i.e. Identifiers, Names, Phones, etc. and include them (includeDA) within the Person BO (CM_Person_BO) for clarity. -
Error in Creating Custom Business Methods using ADF Business Comp. Tutorial
I've been working with Jdev 10g Preview for a while. Now that we have Jdev 10g, I have to unlearn some of the Preview methods and learn the "real" way of doing things. To that end, I went out to the "Creating Custom Business Methods using ADF Business Components" tutorial. Unfortunately, I've found what I think is a mistake in the example code.
Specifially, ADF treats the default iterator on View Objects differently than previous BC4J versions. In the older versions, the iterator was positioned before the first row when you first executed a query. In that case, the hasNext() method was used to see if you had any rows at all. In ADF, however, the default iterator is positioned at the first row. So, if your query only returns one row, then the hasNext() method returns false!
Here's the code posted in the tutorial:
public Number getDeptSalaryTotal(String dept_id)
// get a department view object
DepartmentsViewImpl dept = getDepartmentsView1();
dept.setWhereClause("DEPARTMENT_ID = " + dept_id);
dept.executeQuery();
dept.first();
EmployeesViewImpl emps = getEmployeesView3();
Number salaryTotal = new Number(0);
while (emps.hasNext() )
Row empsRow = emps.next();
salaryTotal =
salaryTotal.add((Number)(empsRow.getAttribute("Salary")));
return salaryTotal;
As you can see, this is coded using the pre-10g semantics. It checks hasNext() at the top of the while loop. If there is only one Employee in the Department, hasNext() will return false since the emps View Object will already be positioned at the first and only row. There won't be a next row. So, the salaryTotal will be zero instead of the correct value. Alternatively, if there is more than one row, then hasNext() will be true, but the routine will skip the first row and start totalling salaries from the second row on.
The routine should be recoded as follows:
public Number getDeptSalaryTotal(String dept_id)
// get a department view object
DepartmentsViewImpl dept = getDepartmentsView1();
dept.setWhereClause("DEPARTMENT_ID = " + dept_id);
dept.executeQuery();
dept.first();
EmployeesViewImpl emps = getEmployeesView3();
Number salaryTotal = new Number(0);
Row empsRow = emps.first(); // Get the first row
while (empsRow != null ) // while we have a row
salaryTotal =
salaryTotal.add((Number)(empsRow.getAttribute("Salary"))); // add in the salary
empsRow = emps.next(); // get the next row
return salaryTotal;
I haven't actually executed this code, so there may be a typo or two in there. However, the basic idea is sound -- I think!
Please update the tutorial so we don't mislead people right at the start! :-)Gary:
I have two questions for you:
1) Could you post the preferred code here?
2) Why is it the preferred method? I would think that creating and destroying another object (the temporary iterator) would be a bad thing. -
Hi,
I would like to know the Step by Step procedure for creating a business object.
My requirement is to create a new business object and use it in my Workflow.
If any material is available please forward to my Email ID.
Mail ID : [email protected]
Thank you,
Ramu N.Hi Ramu,
Why dont you refer the following link
http://help.sap.com/saphelp_nw2004s/helpdata/en/4f/5668735cf211d194a30000e82dec10/frameset.htm
Regards,
<i><b>Raja Sekhar</b></i> -
Sale Order Item Quantity Not Populating When Create A Sale Order Using BAPI
I am having a problem when creating a sale order using BAPI
BAPI_SALESORDER_CREATEFROMDAT2
Problem is that sale order item quantity field is not populating
code is as follows
ORDER_ITEMS_IN-ITM_NUMBER = '0010'.
ORDER_ITEMS_IN-MATERIAL = '000000000010000262'.
ORDER_ITEMS_IN-TARGET_QU = 'LB'.
ORDER_ITEMS_IN-TARGET_QTY = 1.Hi,
Try populating ORDER_SCHEDULES_IN table in the bapi field REQ_QTY.
Regds,
Rudra -
I have Pages 09 and I have created a business card using the template but can't figure out how to duplicate it to the other 9 spaces on the page. I am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks
I do the following: Hold down the command key and highlight all the items to be reproduced. Then hold down option and drag the items from the first to each subsequent card.
-
How to create the sales order using BAPI's ....?
Hi Guru's,
could you please provide how to create the sales order using BAPI's .....i need step by step process and please provide the details from scratch....basically i don't have basic knowledge on this....please provide required inputs ....:)
thanks in advance
Srinivas......Hi Guru's thanks for your inouts and your valuble time...
please find the program logic below...
*& Report ZAREPAS30
REPORT zarepas30.
DATA : gs_vbeln TYPE vbak-vbeln,
gs_order_header_in TYPE bapisdhd1,
gs_order_header_inx TYPE bapisdhd1x,
gt_order_items_in TYPE STANDARD TABLE OF bapisditm,
gwa_itab1 TYPE bapisditm,
gt_order_items_inx TYPE STANDARD TABLE OF bapisditmx,
gwa_itab2 TYPE bapisditmx,
gt_order_partners TYPE STANDARD TABLE OF bapiparnr,
gwa_itab3 TYPE bapiparnr,
gt_return TYPE STANDARD TABLE OF bapiret2,
gwa_itab4 TYPE bapiret2.
Sales document type
PARAMETERS: p_auart TYPE auart OBLIGATORY.
Sales organization
PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
Distribution channel
PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
Division.
PARAMETERS: p_spart TYPE spart OBLIGATORY.
Requested Delivery Date
PARAMETERS: p_edatu TYPE edatu OBLIGATORY.
Sold-to
PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
Ship-to
PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
Material
PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
Quantity.
PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
Plant
PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
Start-of-selection.
START-OF-SELECTION.
Header data
Sales document type
gs_order_header_in-doc_type = p_auart.
gs_order_header_inx-doc_type = 'X'.
Sales organization
gs_order_header_in-sales_org = p_vkorg.
gs_order_header_inx-sales_org = 'X'.
Distribution channel
gs_order_header_in-distr_chan = p_vtweg.
gs_order_header_inx-distr_chan = 'X'.
Division
gs_order_header_in-division = p_spart.
gs_order_header_inx-division = 'X'.
Reguested Delivery Date
gs_order_header_in-req_date_h = p_edatu.
gs_order_header_inx-req_date_h = 'X'.
gs_order_header_inx-updateflag = 'I'.
Partner data
Sold to
gwa_itab3-partn_role = 'AG'.
gwa_itab3-partn_numb = p_sold.
APPEND gwa_itab3 TO gt_order_partners .
ship to
gwa_itab3-partn_role = 'WE'.
gwa_itab3-partn_numb = p_ship.
APPEND gwa_itab3 TO gt_order_partners .
ITEM DATA
gwa_itab2-updateflag = 'I'.
Line item number.
gwa_itab1-itm_number = '000010'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
Line item number.
gwa_itab1-itm_number = '000020'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = gs_order_header_in
ORDER_HEADER_INX = gs_order_header_inx
IMPORTING
SALESDOCUMENT = gs_vbeln
tables
RETURN = gt_return
ORDER_ITEMS_IN = gt_order_items_in
ORDER_ITEMS_INX = gt_order_items_inx
order_partners = gt_order_partners.
Check the return table.
LOOP AT gt_return into gwa_itab4 WHERE type = 'E' OR type = 'A'.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
WRITE: / 'Error occured while creating sales order '.
ELSE.
Commit the work.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'Document ', gs_vbeln, ' created'.
ENDIF. -
Create a Puchase order using Bapi
Hi all,
I have requirent to create a PO by using Bapi based on text file sent from
interface system here with the file layout.
1.plant (ekko-werks)
2. material EKPO-MATNR
3. pur.group EKKO-EKGRP
4.vendor EKKO-LIFNR
5.shiping ins EKPO-EVERS
6.quantity EKPO-MENGE
please some one help me step setp coding using by bapi.
i know using BDC but no idea how to use BAPI.Hello,
U can make use of the
BAPI_PO_CREATE1 Create purchase order
BAPI_PO_CREATE Create purchase order
BAPI_PO_GETDETAIL Display Purchase Order Details
BAPI_PO_GETITEMS List Purchase Order Items
BAPI_PO_GETITEMSREL List Purchase Orders for Release (Approval): New as of 4.0A
BAPI_PO_GETRELINFO Display Detailed Release (Approval) Information on Purchase Order
BAPI_PO_GET_LIST List Purchase Orders - Only up to 4.0A
Regards,
Vasanth -
Create Service entry sheet using BAPI in SAP
Hi
Experts,
Scenario : SES will be created in third party system , once it created, txt file will be generated and placed in their server.We will be writing a program
to pick that file and post SES in ECC using BAPI ( Idoc is not available to create SES i believe).
I will be using BAPI_ENTRYSHEET_CREATE to create SES sheet but we dont have service masters and creating unplanned service entry sheet.
I will be checking by passing the values manually in BAPI to create SES.
I am passing PO no, line no and qty, value and other details to create SES.
It is creating SES with only header data. it is not updating line item details.
I am missing some parameters to be passed to create SES using BAPI I feel.
I need your help to create SES using BAPI.
What are the details to be passed to create SES in SAP using BAPI.
Regards,
Suresh.ADid you not search? Google has 3600 hits for BAPI_ENTRYSHEET_CREATE
the second hit is a wiki from SCN with sample coding
the third hit has a link to a OSS note with a promising title 420334 - BAPI_ENTRYSHEET_CREATE: Model for creation -
Creating a sales document using BAPI in web dynpro by uploading a file
Hi ALL,
Can some one help me how to create a sales document using BAPI by uploading a file as input...Can someone provide me a sample program....
Thanks n Regards,
Praveenn.
Edited by: praveenn on Aug 23, 2011 12:42 PMHi Sri,
Thx for the response...
Here is the code that i followed for creating a BAPI_SALESORDER_CREATE1 by uploading a text file as input.
Just create a Attribute in the VIEW CONTEXT of type String.
method ONACTIONCREATE_SO .
types : Begin of ty_data,
sales_org type vkorg,
doc_type type AUART,
DISTR_CHAN type VTWEG,
DIVISION type spart,
material type matnr,
partn_role type PARVW,
PARTN_NUMB type kunnr,
end of ty_data.
DATA :it_table TYPE TABLE OF ty_data,
i_data TYPE TABLE OF string,
l_string TYPE string,
wa_table TYPE ty_Data,
l_xstring TYPE xstring,
fields TYPE string_table,
lv_field TYPE string.
DATA: wa_order_header_in TYPE BAPISDHD1,
it_order_items_in TYPE TABLE OF BAPISDITM,
wa_order_items_in TYPE BAPISDITM,
it_order_partners TYPE TABLE OF BAPIPARNR,
wa_order_partners TYPE BAPIPARNR,
it_return TYPE TABLE OF BAPIRET2,
wa_return TYPE BAPIRET2.
DATA : sales_doc type bapivbeln-vbeln.
DATA:
node_zfinal_node TYPE REF TO if_wd_context_node,
elem_zfinal_node TYPE REF TO if_wd_context_element,
stru_zfinal_node TYPE if_main_view=>element_zfinal_node .
get single attribute
wd_context->get_attribute(
EXPORTING
name = 'DATASOURCE'
IMPORTING
value = l_xstring ).
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
in_xstring = l_xstring
IMPORTING
out_string = l_string.
SPLIT l_string AT cl_abap_char_utilities=>newline INTO TABLE i_data.
LOOP AT i_data INTO l_string.
SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
READ TABLE fields INTO lv_field INDEX 1.
wa_table-sales_org = lv_field.
READ TABLE fields INTO lv_field INDEX 2.
wa_table-doc_type = lv_field.
READ TABLE fields INTO lv_field INDEX 3.
wa_table-DISTR_CHAN = lv_field.
READ TABLE fields INTO lv_field INDEX 4.
wa_table-DIVISION = lv_field.
READ TABLE fields INTO lv_field INDEX 5.
wa_table-material = lv_field.
READ TABLE fields INTO lv_field INDEX 6.
wa_table-partn_role = lv_field.
READ TABLE fields INTO lv_field INDEX 7.
wa_table-partn_numb = lv_field.
APPEND wa_table TO it_table.
ENDLOOP.
loop at it_table into wa_table.
clear : wa_order_header_in.
wa_order_header_in-sales_org = wa_table-sales_org.
wa_order_header_in-doc_type = wa_table-doc_type.
wa_order_header_in-distr_chan = wa_table-distr_chan.
wa_order_header_in-division = wa_table-division.
clear : wa_order_items_in.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_table-material
IMPORTING
OUTPUT = wa_order_items_in-material.
*wa_order_items_in-req_qty = wa_table-req_qty.
append wa_order_items_in to it_order_items_in.
clear : wa_order_partners.
wa_order_partners-partn_role = wa_table-partn_role.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_table-partn_numb
IMPORTING
OUTPUT = wa_order_partners-partn_numb
*wa_order_partners-partn_numb = wa_table-partn_numb.
append wa_order_partners to it_order_partners.
endloop.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
SALESDOCUMENTIN =
order_header_in = wa_order_header_in
ORDER_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT = sales_doc
tables
RETURN = it_return
ORDER_ITEMS_IN = it_order_items_in
ORDER_ITEMS_INX =
order_partners = it_order_partners.
ORDER_SCHEDULES_IN =
get message manager
DATA: l_current_controller TYPE REF TO if_wd_controller,
l_message_manager TYPE REF TO if_wd_message_manager.
l_current_controller ?= wd_this->wd_get_api( ).
DATA: v_message_text TYPE string.
When Sales Order is created commit the data
IF NOT sales_doc IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING wait = 'X'.
CONCATENATE 'Sales Document' sales_doc 'has been created.' INTO v_message_text SEPARATED BY space.
Report Success message
CALL METHOD l_message_manager->report_success
EXPORTING
message_text = v_message_text.
ELSE.
v_message_text = 'Error Creating Sales Order'.
Report Error message
CALL METHOD l_message_manager->report_error_message
EXPORTING
message_text = v_message_text.
ENDIF.
endmethod.
Edited by: praveenn on Aug 30, 2011 2:41 PM -
How to create a sales order using bapi
hi
i need to create a sales order using bapi.
can any one help meDo NOT USE BAPI_SALESORDER_CREATEFROMDATA, that FM is obsolete!
Use BAPI_SALESORDER_CREATEFROMDAT1 .
To build a reference to your contract you have to supply ORDER_HEADER_IN.
Here´s a sample:
MOVE:
gs_vbak-vbeln TO ls_bapisdhd1-refobjkey,
gs_vbak-vbeln TO ls_bapisdhd1-ref_doc,
gs_vbak-vbtyp TO ls_bapisdhd1-refdoc_cat,
gs_vbak-auart TO ls_bapisdhd1-refdoctype.
also gothrouh the links
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap%2b-%2bsimple%2bprogram%2bto%2bcreate%2bsales%2border%2busing%2bbapi -
I can't see release business object in bapi explorer.
Hi,
i can't see my business object in bapi explorer which is already released.
Regards,
GurpritHello Gurprit
I am not sure whether customer BAPIs are displayed in the BAPI explorer at all. However, you could try to push the <i><b>button with the filter icon</b></i> and choose option "<b>All </b>(BAPIs)".
Regards
Uwe
Maybe you are looking for
-
i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created. As i do
-
My employer and I both have iPhone 5. We both recently updated as recommended. Now we can no longer text each other. I can text and receive from other iPhone users. Any ideas??
-
How do I transfer pictures from iPhoto to an iPhone 5 without using iTunes?
Hey there. I have version 10.5.8 on my macbook, but an iPhone 5, which basically means I can't open my iPhone in iTunes. However I would like to transfer some photos from iPhoto onto my phone. Does anyone know how this is possible? Thanks so much!
-
Object Level and Folder Level Instances Limit on R3?
Hi there, We've been thinking about setting a global limit on instances of 35, but were wondering if we can apply a limit of 50 only on certain reports? This is only for reports where the business has justified that they will need to go over that. Ba
-
Preloading multiple dynamic images
I've searched this topic for hours with no luck. Basically I have an XML file with a description and the url of multiple images. When I play the flash movie the nodes of the XML are loaded into an array and then each jpg is then loaded and attached t