To output only sales order no while using BAPI CRM_BUPA_READ_ORDER_OBJECTS
I am using the BAPI CRM_BUPA_READ_ORDER_OBJECTS to display the sales orders against a business partner in CRM.
My requirement is to only get the sales orders for the business partner that I input, but in the table ET_SEARCH_RESULT along with the sales order number it is also displaying couple of data like PROC, T, DESCRIPTION, POSTING_DA, CHANGED_AT, CHANGED_BY, CREATED_AT, CONCATSTAT, CONCATUSER, PROCESS_TYPE_TXT, CREATED_BY, KURZTEXT, ACT_TEXT, NET_VALUE_MAN, SALES_EMPL. PERSON_RES, CONTACT_PE, SALES_PARTN, PLANNING_A, SALES_EMPLOYEE_LIST, PERSON_RESP_LIST, PERSON_RESP_NAME, CONTACT_PERSON_LIST, OBJECT_TYPE_TXT etc.
But I donu2019t need all these information. I need only the list of sales orders and the date created.
So I am trying to declare a structure only with sales order number and posting date and trying to move the fields of IT_ET_SEARCH_RESULT to that internal table. But the program throws me a syntax error saying ET_SEARCH_RESULT is a flat structure
This is my code.
CALL FUNCTION 'CRM_BUPA_READ_ORDER_OBJECTS'
EXPORTING
IV_BU_PARTNER = it_IV_BU_PARTNER
IMPORTING
ET_SEARCH_RESULT = IT_ET_SEARCH_RESULT.
What should I do so that I donu2019t see all the data from ET_SEARCH_RESULT. I want only couple of data of my choice like sales order number and posting date. What should I do?
how is IT_ET_SEARCH_RESULT defined in your code? it has to match exactly like ET_SEARCH_RESULT is expecting
Similar Messages
-
Sales order details uploading using BAPI method in LSMW
Hi Guys,
Sales order details uploading using BAPI in LSMW, could you please suggest me, is any standard method or programs is available for this.
I have some queries about this.
1) One header line having multiple line items, in this case we able to upload use the LSMW method,
if possible please tell me the steps.
2) Do we need to do any config changes while uploading data?
3) Flat file should be which format.
4) Steps to process each step wise if possible.
Please help me
Thanks,
Gourisanakar.Hi Gouri Sankar,
would you be able to upload the sales orders with multiple line items using BAPI LSMW?
if so could you plz suggest?
Thanks in advance.
Suresh/ -
Need code for sales order create report using bapi's
need code for sales order create report using bapi's
Hi,
Go through below link
http://www.saptechies.com/bapi_salesorder_createfromdat2/
<b>Reward points if it helps,</b>
Satish -
Problem with BOM Quant while creating Sales order with reference using BAPI
Dear All,
I am facing problem with creating a slaes order with reference to other sales order by using BAPI_SALESORDER_CREATEFROMDAT2 .
Sales order is getting created but
1. It exploding the BOM means the line items which are not there in the reference SO also coming in the new SO ( all BOM items are coming )
2. Schedule line for BOM header item is getting copied to all sub items of BOM.
Can any one help me out to prevent the above deviations in creating Sales order with reference by using BAPI_SALESORDER_CREATEFROMDAT2.
Note: while passing the parameters to BAPI_SALESORDER_CREATEFROMDAT2
all the data related to items is exactly the same as in the original Sales Order.
Thanks in advnace.
Regards,
JohnHi All,
Can any one help me !!!!!!!!!!
please -
Creating Sales order texts while using BDC session method is not working
Hi All,
I have an existing program which creates sales order using BDC session method.( Actual program uses BAPI to create sales order and in case if any error occurs during creation of sales order BDC session is generated so that user can process it later and i am facing issues in this part of code where it uses BDC)
I wanted to modify this BDC sesion to update the sales order text also. I tried recording VA01 for creationg sales order text unfortunatly it is not capturing the data i am entering in the text fields.
Please suggest if there is any way to create sales order using BDC.
Regards
SheebaHi Madhu,
'=TP_CREATE' is the OK code i am getting for creating TEXTS. But the text entered are not captured in BDC.
Part of BDC program generated for cretaing sales order texts.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=%_GC 128 22'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=TP_CREATE'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=%_GC 128 22'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=TP_CREATE'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'/EBACK'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=SICH'.
Regards,
Sheeba -
Sales order creating by using bapi
Hi,
I am creating sales order by using bapi BAPI_SALESORDER_CREATEFROMDAT2
for that i am run this bapy, that asking standard data, plz anybody can help me
send the data as
doc_type
sales_org
Distribution chanel
Division
sold to party
Thanks
FazilHi
Refer link below
Sales Order Creation Through BAPI -
Create sales order with reference via BAPI
Hi all,
I would like to know if is it possible to create a sales order with reference using BAPI, that is, I want to create an order from a contract, for example, referencing one or more contract itens. If so, what variable or table should I use?
I think that the most suitable function is
'BAPI_SALESORDER_CREATEFROMDAT2' or should I use another to do this?
I am using release SAP ECC 6.0.
Thanks for any help.
Pauloyes, you are using right BAPI i.e. BAPI_SALESORDER_CREATEFROMDAT2
You will have to provide ORDER_HEADER_IN in that, Others are optional, even then if you have data for them, Provide it for better performance.
For any confusion related to chosing BAPI : You may go to BAPI transaction and find out the correct BAPI according to ur need. for example sales order relatd BAPI's are
BAPI_SALESORDER_CHANGE :Change Sales Order
BAPI_SALESORDER_CREATEFROMDAT2: Create Sales Order
BAPI_SALESDOCU_CREATEWITHDIA: Create Data Container with Dialog
BAPI_SALESORDER_GETLIST:List of all Orders for Customer
and so on.
Reward if helpful.. -
Error while creating sales order with ref using SD_SALESDOCUMENT_CREATE
Hi
I am creating sales order with reference using function module SD_SALESDOCUMENT_CREATE , while creating i am getting error
Document doesn't have document category even thougth i am passing document category in header as well as item lavel.
In VBUK table there is no value for VGTYP.
Can you please help me how to resolve it.
Thanks & regards
kiranProblem resolved by passing REFDOC_CAT in the FM along with SD_DOC_CAT.
Thanks -
T Code for doing mass output for Sales order like VL71 for Delivery
Hi
Can anyone let me know what is the t code for the sales orders for which despatch time was set as "3- using own transaction"
MuthuHi,
Though there is a program, there is no output for sales order similar to VL71 for delivery. Sales order is the only transaction for which there is no tcode for this purpose.
You can do the following.
Go to SE38 give program name SD70AV1A and execute
Now give ur selection criteria and save this as a variant.
Now you can schedule a job at regular intervals using this variant.
This will enable that if you maintain the output record as 3(using own transaction), the output will be created in mass for multiple sales orders. -
How to print sales order acknowledgement while printing purchase order
how to print sales order acknowledgement while printing corresponding purchase order
in me22nin print program of Purchase order.. try to trigger output for Order Ack. as well...
Order acknowledgement -
Collective treatment of Outputs in Sales orders
Dear uru's,
I am looking for transaction VF31, but used for sales orders.
In other words, I need to repeat massively outputs from sales orders.
Can someone remind me the transaction?
Regards,
FYou can try with program RSNAST00 with the following parameters
Output application V1
Object key 0000012345
Output Type BA00
Transmission medium 1
Tick Send again
Finally click Execute
thanks
G. Lakshmipathi -
Sales order with MRP run but no need of sales order stock while PGI
Dear Gurus,
We have scenario in company that we want to run MRP for sales order & generate requirements. But while doing post goods issue for same sales order, sales order stock need not be present.
Please tell which planning strategy, strategy group or else should be used here.
Thanks in Advance !!
Thanks,
VishwasHi,
Please configure in the following manner..
create a strategy group say Z9..in this maintain main strategy as 20 and alternate strategy as 10... Now assign this strategy group to material in material master in MRP3 View..
Now create sales order say A and run MRP with MD50..after completion of production you will get Sales order stock.. now convert this sales order stock unrestricted use stock..
Now before you are doing PGI for sales order A... go to sales order change VA02 and change the requirement type to KSL from KE and then system will all you to do PGI with unrestricted use stock...
Thanks
Kumar -
How can we remove an unwanted # in sales order texts created using a bapiFM
Hi,
i've written the following code which splits the record fetched from apllication server and moves it into a workarea.
CONSTANTS:c_sep VALUE cl_abap_char_utilities=>horizontal_tab, "for separation
SPLIT wa_tab1-rec1 AT c_sep INTO wa_inf_itm-inf_vbeln
wa_inf_itm-itm_number
wa_inf_itm-material
wa_inf_itm-req_qty
wa_inf_itm-uom
wa_inf_itm-amount_pr00
wa_inf_itm-amount_pi02
wa_inf_itm-amount_mwst
wa_inf_itm-amount_vprs
wa_inf_itm-currency
wa_inf_itm-text.
Here c_sep will have a value '#' instead of 'space' in Flatfile from application server.
The field 'wa_inf_itm-text' though it doesnot contain any value in debugging, when the sales order is created using FM 'BAPI_SALESORDER_CREATE_FROM_DAT2' the item texts are having a # character at the end of the text if it has any text(when checked in va03--sales order item text) or if it doesnot contain any text ,then also # character is seen in texts.
Thanks & Regards,
Prasad Reddy.hi
use
Replace all occurrence of '#' with space from .......
I think it will solve ur problem.
Rewards with point if helpful.
Regards
Santosh. -
I Need Sales Order Status Reports using ALV
Hi I Need Sales Order Status Reports using ALV.
HI!
For alv use REUSE_ALV_GRID_DSPLAY function module.
For the given report fetch data from the tables:
VBAK - sales order header
VBAP - sales order details
VBUK - sales order header status
VBUP - sales order items status
Regards
Tamá -
Hi All,
I have created an output type for item level output in sales order.Please suggest me what is the program and FORM routine to be assigned to this output type.
Thanks,
Anup.Hello,
You have to create the PRINT PROGRAM & SMARTFORM as per your requirement.
Program can be created in the SE38 transaction code
Smartform can be created in the transaction code SMARTFORMS
This will be done be ABAPERS, just you have to give the functional specifications to the ABAPERs to fetch the data.
Hope it is clear,
thanks,
santosh
Maybe you are looking for
-
Which is the best way to transfer from JFormattedTextField to database. The conventional way of getting Text and inserting into database or Is there any other way where u can connect to database field directly like in VB or any other packages. Also b
-
Sale registers and purchase registers
can anybody help me to know wat do u mean by sales registers and purchase registers.im new to abap and is struggling to understand the flow of there purchase orders and sale orders and registers. im writing a report program where im printing both s
-
My screen shows the power plug and is pointing to a sign of the itunes store and is frozen. I'm a new user. Can I restart it?
-
Does webDynpro allows us to include a link in the message?
Hi All, Is there any possibility to pass links in webDynpro messages? Thanks in Advance, Praveen
-
How to Extend TimzZone Function on JDK 1.1?
We are using Oracle 8.1.7 and try to perform a timezone function on it. However, Oracle 8i only support JDK1.1.8 which has a lot of incompleted timezone function in the library. But JDK 1.3 timezone functions work properly. My idea is to write extend