Use of APO BAPIs
I am using APO V5.
I have two questions regarding the use of BAPIs:
1. For BAPI PlanningBookAPS, what is the scope of this BAPI? Is it time series key figures only, or is it also orders livecache key figures?
2. Is there a BAPI for reading/writing Notes associated with cells in planning books?
Thanks,
Bob Austin
Hi Sarah,
Hope all is well with you.
Do you have any experience of creating notes in this way? I am trying to identify how to relate the note to the planning book cell. I have been debugging the planning book transaction but it is difficult to see where the relationship is.
I can see my note text in table STXH. STXH-TDNAME seems to be used to store a key which I presume some how relates to the planning book cell?
Any info would be helpful.
Thanks
Gary
Similar Messages
-
APO Bapi - ERROR - No entry found in transportation indicator table for fol
Hi
Experts .. need help on a APO bapi
Iam being doing BAPI for transportation lane to add new material through the bapi BAPI_TRLSRVAPS_SAVEMULTI
iam passing the following to BAPI
Logical system
model
and in tables .
TRANSPORT_LANE
TRANSPORT_LANEX
PROD_PROCUREMENT
PROD_PROCUREMENTX
LOCATION_FROM = '1010'.
LOCTYPE_LOC_FROM = '1001'.
LOCATION_TO = '1101'.
LOCTYPE_LOC_TO = '1001'.
the above data is common for passing all the four bapi tables and in
addition iam passing
prod-valfr = Converted value by passing to FM - IB_CONVERT_INTO_TIMESTAMP.
prod-valto = Converted value by passing to FM - IB_CONVERT_INTO_TIMESTAMP.
prod-product = material number.
AFter excuteing bapi iam getting an error
No entry found in transportation indicator table for following objects
the above error occured when passed the given data to bapi table - PROD_PROCUREMENT
if we pass the data to PROD_PROCUREMENT and PROD_PROCUREMENTX
then there is no error in table return of bapi but the data is not uploaded in transportation lane.
I will really appreciate if some guide me where iam wrong or some other solution for this .
Regards .
Thanks .Hi,
I am writing bdc code for uploading changing inspection plan data using qp02 . I saw your post in sdn .I think you have solution .can you tell the solution .
Regards
Nandan. -
PO could not be creating using the Enjoy-BAPI
Hi expersts.
I have a problem with BAPI function module BAPI_PO_CREATE1. When program will generate orders for several suppliers for one supplier "PO could not be creating using the Enjoy-BAPI" and "Purchase order item 00010 still contains faulty schedule lines" and
"Source not included in list despite source list requirement" messages occur. Order won't be generated.
When I am generating order only for that supplier, everything is fine. They are generated and no messages are displayed.
Could anyone help me ?
Thanks, regards.
Dan.Hi expersts.
I have a problem with BAPI function module BAPI_PO_CREATE1. When program will generate orders for several suppliers for one supplier "PO could not be creating using the Enjoy-BAPI" and "Purchase order item 00010 still contains faulty schedule lines" and
"Source not included in list despite source list requirement" messages occur. Order won't be generated.
When I am generating order only for that supplier, everything is fine. They are generated and no messages are displayed.
Could anyone help me ?
Thanks, regards.
Dan. -
How to create Billing Plan in sales order using Function module /BAPI
hi,
How to create Billing Plan in sales order using Function module /BAPI
i hv check few FM such
BILLING_SCHEDULE_READ
BILLING_SCHEDULE_GET_NUMBER
BILLING_SCHEDULE_SAVE
But unable to create billing plan for a sales order.....any other method to create???Hi,
Use this link.
Create sales order with billing plan via LSMW and BAPI BUS2032
BAPI or Function to update Billing Plan in Sales Order Items
Hope this will help you.
Regards,
Vijay -
How to create purchase order using VA01 for BAPI?
how to create purchase order using VA01 for BAPI?
Hi Arun,
Please check this link
Example Program for BAPI_PO_CREATE1
Re: BAPI_PO_CREATE1
Questions in BAPI_PO_CREATE1
Problem with BAPI_PO_CREATE1
*& Report BAPI_PO_CREATE *
REPORT bapi_po_create.
Input File Declaration
TYPES: BEGIN OF ty_input_file,
column1 TYPE char50,
column2 TYPE char50,
column3 TYPE char50,
column4 TYPE char50,
column5 TYPE char50,
column6 TYPE char50,
column7 TYPE char50,
column8 TYPE char50,
column9 TYPE char50,
column10 TYPE char50,
column11 TYPE char50,
column12 TYPE char50,
column13 TYPE char50,
column14 TYPE char50,
column15 TYPE char50,
column16 TYPE char50,
column17 TYPE char50,
column18 TYPE char50,
END OF ty_input_file.
DATA: i_input_file TYPE STANDARD TABLE OF ty_input_file,
wa_input_file TYPE ty_input_file.
CONSTANTS: c_path TYPE char20 VALUE 'C:\',
c_mask TYPE char9 VALUE ',.,..',
c_mode TYPE char1 VALUE 'O',
c_filetype TYPE char10 VALUE 'ASC',
c_x TYPE char01 VALUE 'X'.
PARAMETERS : p_fname LIKE rlgrap-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
Browse Presentation Server
PERFORM f4_presentation_file.
START-OF-SELECTION..
Read presentation server file
PERFORM f1003_upload_file.
IF NOT i_input_file[] IS INITIAL.
PERFORM split_data.
ENDIF.
*& Form f4_presentation_file
*& F4 Help for presentation server
FORM f4_presentation_file .
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_path = c_path
mask = c_mask
mode = c_mode
title = text-001
IMPORTING
filename = p_fname
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
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. " f4_presentation_file
*& Form f1003_upload_file
*& Upload File
FORM f1003_upload_file .
DATA: lcl_filename TYPE string.
lcl_filename = p_fname.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lcl_filename
filetype = c_filetype
has_field_separator = c_x
TABLES
data_tab = i_input_file
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.
ENDFORM. " f1003_upload_file
*& Form split_data
Collect data for creating Purchase Order
FORM split_data .
DATA: i_poitem TYPE STANDARD TABLE OF bapimepoitem,
i_poitemx TYPE STANDARD TABLE OF bapimepoitemx,
i_poitem_sch TYPE STANDARD TABLE OF bapimeposchedule,
i_poitem_schx TYPE STANDARD TABLE OF bapimeposchedulx,
i_acct_*** TYPE STANDARD TABLE OF bapimepoaccount,
i_acct_assx TYPE STANDARD TABLE OF bapimepoaccountx,
i_services TYPE STANDARD TABLE OF bapiesllc ,
i_srvacc TYPE STANDARD TABLE OF bapiesklc,
i_return TYPE STANDARD TABLE OF bapiret2,
wa_header TYPE bapimepoheader,
wa_headerx TYPE bapimepoheaderx,
wa_poitem TYPE bapimepoitem,
wa_poitemx TYPE bapimepoitemx,
wa_poitem_sch TYPE bapimeposchedule,
wa_poitem_schx TYPE bapimeposchedulx,
wa_acct_*** TYPE bapimepoaccount,
wa_acct_assx TYPE bapimepoaccountx,
wa_services TYPE bapiesllc,
wa_srvacc TYPE bapiesklc,
wa_return TYPE bapiret2,
ws_po TYPE bapimepoheader-po_number.
break gbpra8.
wa_services-pckg_no = 10.
wa_services-line_no = 1.
wa_services-outl_no = '0'.
wa_services-outl_ind = c_x.
wa_services-subpckg_no = 20.
APPEND wa_services TO i_services.
wa_srvacc-pckg_no = 10.
wa_srvacc-line_no = 1.
wa_srvacc-serno_line = 01.
wa_srvacc-serial_no = 01.
wa_srvacc-percentage = 100.
APPEND wa_srvacc TO i_srvacc.
LOOP AT i_input_file INTO wa_input_file.
IF wa_input_file-column2 EQ 'HD'.
wa_header-doc_type = wa_input_file-column3.
wa_header-creat_date = sy-datum.
wa_header-created_by = sy-uname.
wa_header-vendor = wa_input_file-column4.
PERFORM conversion_output USING wa_header-vendor
CHANGING wa_header-vendor.
wa_header-comp_code = 'DE03'.
wa_header-purch_org = 'DE03'.
wa_header-pur_group = 'DE1'.
wa_header-vper_start = wa_input_file-column9.
wa_header-vper_end = wa_input_file-column10.
wa_headerx-comp_code = c_x.
wa_headerx-doc_type = c_x.
wa_headerx-creat_date = c_x.
wa_headerx-created_by = c_x.
wa_headerx-vendor = c_x.
wa_headerx-purch_org = c_x.
wa_headerx-pur_group = c_x.
wa_headerx-vper_start = c_x.
wa_headerx-vper_end = c_x.
ENDIF.
IF wa_input_file-column2 EQ 'IT'.
wa_poitem-po_item = wa_input_file-column3.
wa_poitem-short_text = wa_input_file-column6.
wa_poitem-plant = wa_input_file-column8.
wa_poitem-quantity = '1'.
wa_poitem-tax_code = 'V0'.
wa_poitem-item_cat = 'D'.
wa_poitem-acctasscat = 'K'.
wa_poitem-matl_group = wa_input_file-column7.
wa_poitem-pckg_no = '10'.
APPEND wa_poitem TO i_poitem .
wa_poitemx-po_item = wa_input_file-column3.
wa_poitemx-po_itemx = c_x.
wa_poitemx-short_text = c_x.
wa_poitemx-plant = c_x.
wa_poitemx-quantity = c_x.
wa_poitemx-tax_code = c_x.
wa_poitemx-item_cat = c_x.
wa_poitemx-acctasscat = c_x.
wa_poitemx-matl_group = c_x.
wa_poitemx-pckg_no = c_x.
APPEND wa_poitemx TO i_poitemx.
wa_poitem_sch-po_item = wa_input_file-column3.
wa_poitem_sch-delivery_date = sy-datum.
APPEND wa_poitem_sch TO i_poitem_sch.
wa_poitem_schx-po_item = wa_input_file-column3.
wa_poitem_schx-po_itemx = c_x.
wa_poitem_schx-delivery_date = c_x.
APPEND wa_poitem_schx TO i_poitem_schx.
wa_acct_***-po_item = 10.
wa_acct_***-serial_no = 01.
wa_acct_***-gl_account = '0006360100'.
wa_acct_***-co_area = '1000'.
wa_acct_***-costcenter = 'KC010000'.
APPEND wa_acct_*** TO i_acct_***.
wa_acct_***-po_item = 10.
wa_acct_***-serial_no = 02.
wa_acct_***-gl_account = '0006360100'.
wa_acct_***-co_area = '1000'.
wa_acct_***-costcenter = 'KC010000'.
APPEND wa_acct_*** TO i_acct_***.
wa_acct_assx-po_item = 10.
wa_acct_assx-serial_no = 01.
wa_acct_assx-po_itemx = c_x.
wa_acct_assx-serial_nox = c_x.
wa_acct_assx-gl_account = c_x.
wa_acct_assx-co_area = c_x.
wa_acct_assx-costcenter = c_x.
APPEND wa_acct_assx TO i_acct_assx.
wa_acct_assx-po_item = 10.
wa_acct_assx-serial_no = 02.
wa_acct_assx-po_itemx = c_x.
wa_acct_assx-serial_nox = c_x.
wa_acct_assx-gl_account = c_x.
wa_acct_assx-co_area = c_x.
wa_acct_assx-costcenter = c_x.
APPEND wa_acct_assx TO i_acct_assx.
wa_services-pckg_no = 20.
wa_services-line_no = 2.
wa_services-service = wa_input_file-column9.
wa_services-quantity = '100'.
wa_services-gr_price = '100'.
wa_services-userf1_txt = wa_input_file-column13.
APPEND wa_services TO i_services.
wa_srvacc-pckg_no = 20.
wa_srvacc-line_no = 1.
wa_srvacc-serno_line = 02.
wa_srvacc-serial_no = 02.
wa_srvacc-percentage = 100.
APPEND wa_srvacc TO i_srvacc.
ENDIF.
ENDLOOP.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = wa_header
poheaderx = wa_headerx
POADDRVENDOR =
TESTRUN =
MEMORY_UNCOMPLETE =
MEMORY_COMPLETE =
POEXPIMPHEADER =
POEXPIMPHEADERX =
VERSIONS =
NO_MESSAGING =
NO_MESSAGE_REQ =
NO_AUTHORITY =
NO_PRICE_FROM_PO =
IMPORTING
exppurchaseorder = ws_po
EXPHEADER =
EXPPOEXPIMPHEADER =
TABLES
return = i_return
poitem = i_poitem
poitemx = i_poitemx
POADDRDELIVERY =
poschedule = i_poitem_sch
poschedulex = i_poitem_schx
poaccount = i_acct_***
POACCOUNTPROFITSEGMENT =
poaccountx = i_acct_assx
POCONDHEADER =
POCONDHEADERX =
POCOND =
POCONDX =
POLIMITS =
POCONTRACTLIMITS =
poservices = i_services
posrvaccessvalues = i_srvacc
POSERVICESTEXT =
EXTENSIONIN =
EXTENSIONOUT =
POEXPIMPITEM =
POEXPIMPITEMX =
POTEXTHEADER =
POTEXTITEM =
ALLVERSIONS =
POPARTNER =
break gbpra8.
LOOP AT i_return INTO wa_return.
ENDLOOP.
ENDFORM. " split_data
*& Form conversion_output
Conversion exit input
FORM conversion_output USING p_ip
CHANGING p_op.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = p_ip
IMPORTING
output = p_op.
ENDFORM. " conversion_output
Best regards,
raam -
As far as I know this two bapi used to create accounting document. But how do we use them ? and what's the different between them?
The most important thing is in what condition we use which bapi to post accounting doc?
Such as there is one requirement to post accounting doc though t-code F-02 in BDC, but how do I know whether I can use this two bapi to replace the BDC?
BAPI_ACC_DOCUMENT_POST
BAPI_ACC_GL_POSTING_POSTHello,
how we use BAPI_ACC_DOCUMENT_POST:
gs_documentheader-ref_doc_no = .... your document number (from number range)
gs_documentheader-bus_act = 'RFBU'.
gs_documentheader-username = sy-uname.
gs_documentheader-header_txt = .... your header text
gs_documentheader-comp_code = '0001'.
gs_documentheader-doc_date = ..... date
gs_documentheader-pstng_date = .... date
gs_documentheader-fisc_year =.... year
gs_documentheader-fis_period = .... period
gs_documentheader-doc_type = 'BS'.
loop at ... items ... assigning <belpos_line>.
gs_accountgl-itemno_acc = <belpos_line>-posnr. "10 digits !
gs_accountgl-bus_area = ... your business area
gs_accountgl-tax_code = <belpos_line>-tax_code.
gs_accountgl-gl_account = <belpos_line>-gl_account.
gs_accountgl-comp_code = ... your company code.
gs_accountgl-alloc_nmbr = ... some identity number
gs_accountgl-item_text = .... item text
gs_accountgl-costcenter = <belpos_line>-kostl.
gs_accountgl-plant = .... werks
append gs_accountgl to gt_accountgl.
gs_currencyamount-itemno_acc = <belpos_line>-posnr.
gs_currencyamount-currency = ... waers
gs_currencyamount-amt_doccur = .... waers
append gs_currencyamount to gt_currencyamount.
endloop.
call function 'BAPI_ACC_DOCUMENT_POST'
exporting
documentheader = gs_documentheader
importing
obj_type = gd_obj_type
obj_key = gd_obj_key
obj_sys = gd_obj_sys
tables
accountgl = gt_accountgl
currencyamount = gt_currencyamount
return = gt_return.
Regards -
ABAP interfaces build using BDC and BAPIs can be used/replaced with the XI?
Hi,
We have develeloped our interfases using BDC and BAPIs. Now our client has decited to implement XI. Now could you please help in finding whether these interfaces can be used/replaced with the XI.
If yes, please let us know how?
Thanks and Regards,
ShwetaSingh,
Check this threads where they have discussed on how to use them with XI:
import BAPI into XI
Re: interface of xi with bapi
Re: BDC
Regards,
---Satish -
Simultaneous background jobs using the same BAPI issue
I scheduled 2 simultaneous background jobs on a custom program using the same BAPI (closing PM orders).
Run 1 to CLSD orders created on year 2001
Run 2 to CLSD orders created on year 2000
What happened was while run 1 was still active, run 2 encountered a dump and was cancelled.
Upon checking in ST22, dump was generated in CO_ZV_CONSISTENCY_CHECK.
Also, Run 2's dump happened when it encountered a data inconsistency for an order number being processed for Run 1.
Since the BAPI is being accessed at the same time by the two jobs, Is it possible that the commit work on run 1 could affect the processing for the Run 2, hence the data inconsistency?
Is this a buffer issue?
Additionally, no dump is encountered when Run 1 or Run 2 is run by itself.
I also encountered this issue before for creating Project and WBS using BAPI, but the solution we came up with was not to do parallel runs to avoid the error as this was a one time upload only.If the second job is dependent on the 1st job, then use following logic which will let you know the status of 1st job. Once 1st job is completed, call JOB_OPEN of 2nd job.
ENDLESS loop till 1st job is completed
DO.
CALL FUNCTION 'BP_JOB_READ'
EXPORTING
job_read_jobcount = w_jobcount
job_read_jobname = w_jobname
job_read_opcode = '20'
IMPORTING
job_read_jobhead = wa_jobhead
TABLES
job_read_steplist = i_jobsteplist
EXCEPTIONS
invalid_opcode = 1
job_doesnt_exist = 2
job_doesnt_have_steps = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
To Display the status text as per the status type
CASE wa_jobhead-status.
WHEN 'S'. WRITE: / text-006. "'Scheduled'.
WHEN 'R'. WRITE: / text-007. "'Released'.
WHEN 'F'. WRITE: / text-008. "'Completed'.
WHEN 'A'. WRITE: / text-009. "'Cancelled'.
WHEN OTHERS.
ENDCASE.
IF wa_jobhead-status = 'F'.
exit.
ENDIF.
ENDDO.
PERFORM OPEN_2nd_JOb. -
I want to upload material master (MM01) using LSMW with BAPI method
I want to upload material master (MM01) using LSMW with BAPI method and also later on I may need to change the updated data.
Which business object and Method I should use so that i can do both.
Thanks
kumar nHi,
The business object is BUS1001.
Thanks,
Murali -
Use of APO macro function CHAR_VALUES_INPUT
I am using APO V7.
I am using the APO macro function CHAR_VALUES_INPUT to read in a resource name from the interactive user.
Is there a way of making sure that the user entered data is left justified?
(I am using the entered name in the RESOURCE_VARIANT function, and this function only seems to work if the resource name parameter is left justified, ie no leading blanks).
Thanks for any advice on this...Hi,
see SAP Note 1477144. It corrects this problem.
Best regards
Rico Frenzel -
Sales order Using LSMW and BAPI BUS2032
Hi Guys,
I am trying to use LSMW for creating sales order through BAPI.
Business Object BUS2032
Method CREATEFROMDAT2
Message Type SALESORDER_CREATEFROMDAT2
Basic Type SALESORDER_CREATEFROMDAT202
I can do it using a BDC program.
I want to know how the sales order flat file will look like (one header and multiple line item)if i am using LSMW with BAPI and how it is mapped for multiple line items.
Thanks in Adv.
AkhilSee if you can get something out of this.
One simple step by step example
Complete the step one (you are using the correct BAPI )
insetp 2(Maintain Source Structures) create source structures like with the header and details hierarchy
5 ZCFOF0021_HDR Header
ZCFOF0021_PARTNER Partner
ZCFOF0021_ITM Item Detail
In Step 3(Maintain Source Fields) create the fields for all source structures like below example
5 ZCFOF0021_HDR Header OLDNR C(008) Legacy JDE Sales Order Number
VKORG C(004) Sales Organization
VTWEG C(002) Distribution Channel
SPART C(002) Division
AUART C(004) Sales Document Type
VDATU C(008) Requested delivery date
BSTKD C(020) Customer purchase order number
BSARK C(004) Customer purchase order type
BSTDK C(008) Customer purchase order date
INCO1 C(003) Incoterms (part 1)
INCO2 C(028) Incoterms (part 2)
ZTERM C(004) Terms of payment key
LIFSK C(002) Delivery block (document header)
FAKSK C(002) Billing block in SD document
WAERK C(005) SD document currency
KURSK C(009) Exchange Rate for Pricing and Statistics
AUTLF C(001) Complete delivery defined for each sales order
VSBED C(002) Shipping conditions
ZOTC_PATNAME C(035) Patient Name
ZOTC_PATREFNO C(035) Patient Reference Number
ZOTC_IMPDATE C(008) Implant Date
BNAME C(030) Branching name
TAXK1 C(001) Alternative tax classification
5 ZCFOF0021_PARTNER Partner
OLDNR C(008) Legacy JDE Sales Order Number
PARVW C(002) Partner function
KUNNR C(010) Sold To
NAME1 C(035) Name 1
STRAS C(035) House number and street
STR_SUPPL1 C(040) Street 2
LAND1 C(003) Country Key
PSTLZ C(010) Postal Code
ORT01 C(035) City
REGIO C(003) Region (State, Province, County)
AUART C(004) Sales Document Type
5 ZCFOF0021_ITM Item Detail
OLDNR C(008) Legacy JDE Sales Order Number
MATNR C(018) Material Number
WERKS C(004) Plant
LGORT C(004) Storage Location
VRKME C(003) Sales unit
KSCHL2 C(004) Condition type
KBETR2C C(011) Condition rate with decimal places and minus sign
KWAER2 C(005) Currency key
WMENGC C(013) Order qty in sales units - 00009001 corresponds to 9.001
CHARG C(010) Batch Number
In Step 4 (Maintain Structure Relations) assign source structures to target strucutres like below
E1SALESORDER_CREATEFROMDAT2 Header Segment <<<< ZCFOF0021_HDR Header
E1BPSDHD1 Communication Fields: Sales and Distribution Document Header <<<< ZCFOF0021_HDR Header
E1BPSDHD1X Checkbox Fields for Sales and Distribution Document Header
E1BP_SENDER Logical System of Sender
E1BPSDLS SD Checkbox for the Logic Switch
5 E1BPSDITM Communication Fields: Sales and Distribution Document Item <<<< ZCFOF0021_ITM Item Detail
E1BPSDITM1 Communication Fields: Sales and Distribution Document Item
E1BPSDITMX Communication Fields: Sales and Distribution Document Item
E1BPPARNR Communications Fields: SD Document Partner: WWW <<<< ZCFOF0021_PARTNER Partner
E1BPSCHDL Communication Fields for Maintaining SD Doc. Schedule Lines <<<< ZCFOF0021_ITM Item Detail
E1BPSCHDLX Checkbox List for Maintaining SD Document Schedule Line
E1BPCOND Communication Fields for Maintaining Conditions in the Order <<<< ZCFOF0021_ITM Item Detail
E1BPCONDX Communication Fields for Maintaining Conditions in the Order
E1BPCUCFG CU: Configuration Data
E1BPCUINS Instances of Several Configurations
E1BPCUPRT Part_of Entries of Several Configurations
E1BPCUVAL Characteristic Values of Several Configurations
E1BPCUBLB BLOB Internal Configuration Data (SCE)
E1BPCUVK Variant Condition Keys in Configurations
E1BPCUREF CU: Reference Order Item / Instance in Configuration
E1BPCCARD Communication Table: Means of Payment Order/Billing Document
E1BPSDTEXT Communication Fields: SD Texts
E1BPSDKEY Key in Sales and Distribution Document
E1BPPAREX Ref. Structure for BAPI Parameter EXTENSIONIN/EXTENSIONOUT <<<< ZCFOF0021_ITM Item Detail
5 E1BPADR1 BAPI Reference Structure for Addresses (Org./Company) <<<< ZCFOF0021_PARTNER Partner
E1BPADR11 BAPI Reference Structure for Addresses (Org./Company) <<<< ZCFOF0021_PARTNER Partner
In Step 5(Maintain Field Mapping and Conversion Rules) assign source fields to target fields
Map each filed to the target fields. -
Use of APO transaction /sapapo/tsobj
I have a question about the use of APO transaction /sapapo/tsobj - for the transport of planning areas and planning books.
As far as I can see, this transaction can be used to first transport planning areas, and <u>then</u> transport planning books.
Can one also use the transaction to transport planning areas <u>and</u> books <u>in one go?</u>
Thanks,
Bob Austin, Atos Originabsolutely
you can transport planning areas, planning objects, planning books, data views, selection ids and mass processing jobs as well in one shot. -
Combined use of standard BAPI with Idoc....???
Hi Experts..
I go thru Bapi and Idoc. indiviuaslly.Now i want to use these together in one program. can i do that ..?
If yes than plz give me some example code which make use of the both bapi and idoc.
I means......
1. Need an example of the std.BAPI which uses Idoc.
2.Example of Idoc. which uses std . Bapi's.
Thanks in advance.
..LakhanWhen you ask, "Can we use SAP Standard extractors to pull out data from R3 to XI (without BI)," are you referring to SAP Exchange Infrastructure (SAP XI now called SAP Process Integration or SAP PI) or are you referring to SAP Business Objects Enterprise XI?
SAP PI (SAP XI) doesn't have the mechanisms necessary for execution of standard extractors. SAP Business Objects Entrprise XI, by itself, doesn't have this capability. You would need to have SAP Business Objects Data Services XI, which is a separate application and has separate licensing than SAP Business Objects Enterprise XI, in order to expose the standard content extractors in SAP applications. If I recall, that capability was introduced in SAP Business Objects Data Services XI 3.2, which went into general release in August 2009. -
Hi All,
I am working on APO Demand Planning.
I am using the BAPI is BAPI_PBSRVAPS_GETDETAIL2 and the inputs of this BAPI are
1. Planning Book =DP_PLNB
2.Data View=COLLABORATIVE
3. Planning Version=000
4.Selection ID=MAT
5.Period Type:Cor B (C for month and B for week , depence on selection)
6.Date From=08/2007
7.Date To=08/2008
when I give the above inputs to the bapi i am getting perfect data.
When go for the xMII transaction I am giving the same Inputs but when I give the Period Type "C"or "B" I am not able to get the data.
with out the Period Type Input I am getting all the data what ever in the Planning book. But I want only one year data which i can select by weeks or by months.
my Date inputs in xMII are like below
From Date is xml formata: datefromxmlformat(dateadddays(datenow, -365), "MM/yyyy")
To Date is xml format : datefromxmlformat((datenow), "MM/yyyy")
If any one have an idea on this please reply .
Thanks
MuvvaHi Muvva,
What does the execution window show as far as errors when you run the transaction? Are you getting any response data back at all or is the entire response segment empty? If you are getting some response, there should be a RETURN segment which would contain error messages. If the response is completely empty, then there is probably a problem with the input data being passed in the Request segment. The input data is likely causing the entire BAPI to fail on the SAP side of things.
Please put a couple of tracers after the JCo Interface action block and link the Request Segment to one and the Response segment to the other. Review the values contained in the two segments and post them here. Use curly braces and code to allow the xml to be viewed.
And if MAT is really a material number (MATNR), then make sure it has leading zeroes (18 characters total). Almost all BAPIs need to have their ID numbers ( batch, order, material, etc.) pre-pended with leading zeroes. Do a search on zero and you will find some helpful topics here discussing this subject.
Good luck,
Mike -
How to change price of item using salesorder create bapi
hi all,
As per requirement i have to change price of the item while i am creating sales order using sales order create bapi. kindly tell me the process or if possible any sample program.
thanks in advance
thanks,
pavan
Message was edited by: pavan kumar pisipatihi max ,
i created sales order using following code. from here onwords i have to update to change the price of the item. kindly do the needful. i am working 4.7 ides
<b>report zmybapi1 .
data : my_order_header_in like bapisdhd1 occurs 0 with header line,
my_order_header_ix like bapisdhd1x.
data : my_orderitemsin like bapisditm occurs 0 with header line,
my_orderitemsix like bapisditmx occurs 0 with header line.
data : my_order_partners like bapiparnr occurs 0 with header line.
data : my_return like bapiret2 occurs 0 with header line.
data : w_vbeln like bapivbeln-vbeln.
data:
my_orderschedulesin like bapischdl occurs 0 with header line,
my_orderschedulesinx like bapischdlx occurs 0 with header line.
start-of-selection.
this is to assign values to internal table my_order_header_in
my_order_header_in-doc_type = 'TA'.
my_order_header_in-sales_org = 'JNJ1'.
my_order_header_in-distr_chan = '02'.
my_order_header_in-division = 'J1'.
my_order_header_in-sales_off = 'JNJ1'.
my_order_header_in-purch_no_c = 'testbapipo'.
my_order_header_in-purch_date = sy-datum.
my_order_header_in-req_date_h = sy-datum.
append my_order_header_in.
this is to assign values to internal table my_orderitemsin
my_orderitemsin-material = '000000000000000727'.
my_orderitemsin-plant = 'JNJ1'.
my_orderitemsin-target_qu = 'EA'.
my_orderitemsin-target_qty = '50'.
append my_orderitemsin.
this is to assign values to internal table my_order_partners
my_order_partners-partn_role = 'AG'.
my_order_partners-partn_numb = '0000000011'.
append my_order_partners.
my_order_partners-partn_role = 'WE'.
my_order_partners-partn_numb = '0000000011'.
append my_order_partners.
This is to assign values to internal table my_orderschedulesin
my_orderschedulesin-itm_number = '10'.
my_orderschedulesin-req_qty = '10'.
append my_orderschedulesin.
my_orderschedulesin-itm_number = '20'.
my_orderschedulesin-req_qty = '20'.
append my_orderschedulesin.
my_order_header_ix-updateflag = 'I'.
my_order_header_ix-doc_type = 'X'.
my_order_header_ix-sales_org = 'X'.
my_order_header_ix-distr_chan = 'X'.
my_order_header_ix-division = 'X'.
my_order_header_ix-sales_off = 'X'.
my_order_header_ix-purch_no_c = 'X'.
my_order_header_ix-purch_date = 'X'.
my_order_header_ix-req_date_h = 'X'.
my_orderitemsix-updateflag = 'I'.
my_orderitemsix-material = 'X'.
my_orderitemsix-target_qty = 'X'.
my_orderitemsix-plant = 'X'.
my_orderitemsix-division = 'X'.
my_orderitemsix-target_qu = 'X'.
append my_orderitemsix.
my_orderschedulesinx-updateflag = 'I'.
my_orderschedulesinx-itm_number = 'X'.
my_orderschedulesinx-req_qty = 'x'.
append my_orderschedulesinx.
my_orderschedulesinx-itm_number = 'X'.
my_orderschedulesinx-req_qty = 'x'.
append my_orderschedulesinx.
call function 'BAPI_SALESORDER_CREATEFROMDAT2'
exporting
SALESDOCUMENTIN =
order_header_in = my_order_header_in
order_header_inx = my_order_header_ix
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
importing
salesdocument = w_vbeln
tables
return = my_return
order_items_in = my_orderitemsin
order_items_inx = my_orderitemsix
order_partners = my_order_partners
ORDER_SCHEDULES_IN = my_orderschedulesin
order_schedules_inx = my_orderschedulesinx
ORDER_CONDITIONS_IN =
ORDER_CONDITIONS_INX =
ORDER_CFGS_REF =
if sy-subrc ne 0.
write: my_return-message, my_return-number, my_return-type.
else.
call function 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
write: my_return-message, my_return-number, my_return-type.
endif.</b>
thanks,
pavan
Message was edited by: pavan kumar pisipati
Maybe you are looking for
-
Is there a factory unlock that I can buy to unlock an IPhone 5c locked to Sprint
Please help. I bought an IPhone 5c locked to Sprint from an eBay seller. It was only slightly discounted so not cheap! My daughter searched in eBay and we paid with her birthday money. I thought any phone could be unlocked as did not think eBay would
-
LoadUserProfile() creates a profile with Chinese characters on a remote system
Hi, I'm working on an application where LoadUserProfile() is being used to remotely load a user profile on a machine. The token being passed to LoadUserProfile() is obtained from LogonUser(). When doing this only with a Domain Admin user which is ad
-
Move percent in pie chart?
I'd like to be able to shift the percentage number in a pie chart slightly to add text below it with a text block. Is there any way to do this? It seems I can just have the percentage amount appear either inside or outside the pie piece, but can't po
-
Titles do not transfer from jpg into IPHOTO 7.01
very perplexing situation: i spent hours writing in the titles of 140 images inside photoshop CS4 in the title area in the ITPC area of photoshop for a slide show. this was done in CS4 i then ran Graphic converter to make them smaller jpgs 1 MB each.
-
My I pod will not play music!
My I pod will not play music, It shows the music playing, but the volume controls have disappeared, and it will not play audio. Please help!