cancel
Showing results for 
Search instead for 
Did you mean: 

BS01_SALESORDER_GETDETAIL acting weird in a SO when generating SmartForm

Former Member
0 Kudos

Hi Every1,

I've got a problem with getting the Sales Order pricing conditions during a print (+preview)

of a sales order, this via a function module within my smartform: BS01_SALESORDER_GETDETAIL.

(additional information)

When I perform a print preview (generate a smartform) for my sales order the function below

is executed within our customizing definded smartform for Order Confirmation.

(actual problem description)

The thing is that when I'm outside the sales order (transaction VA03) and

I perform a "Issue Output to" the function below works perfect and both my

needed tables (lt_order_condidtions & lt_order_cond_item) are filled in

correctly with data from the sales order.

Once I'm in the sales order itself the preview of my smartform does execute

this function below except my tables are empty.

I allready tried & defined every table for the function and filled them in + tested my smartform again. That

is how I noticed that some tables are correctly filled in while my needed tables are

not. This also explains why the lt_return table is initial and so leaving me no clue

why this is happening.

Can it be that when I'm inside a sales order it locks certain data preventing this

function to fetch data for itself?

Are there alternatives for this?

Somebody any idea why this is happening?

If you need additional information do not hesitate to ask me.

Helpfull answers will be rewarded!

Thanks for your help.

  • Get Sales Order pricing conditions to determine unit values

CALL FUNCTION 'BS01_SALESORDER_GETDETAIL'

EXPORTING

salesdocument = zvbdka-vbeln

internal_use = ' '

IMPORTING

order_header = lt_order_header

TABLES

return = lt_return

  • ORDER_ITEMS =

  • ORDER_SCHEDULE_LINES =

  • ORDER_BUSINESS =

  • ORDER_PARTNERS =

  • ORDER_ADDRESS =

  • ORDER_STATUSHEADERS =

  • ORDER_STATUSITEMS =

order_conditions = lt_order_conditions

  • ORDER_COND_HEAD =

order_cond_item = lt_order_cond_item

  • ORDER_COND_QTY_SCALE =

  • ORDER_COND_VAL_SCALE =

  • ORDER_CONTRACTS =

  • ORDER_TEXTHEADERS =

  • ORDER_TEXTLINES =

  • ORDER_FLOWS =

  • ORDER_CFGS_CUREFS =

  • ORDER_CFGS_CUCFGS =

  • ORDER_CFGS_CUINS =

  • ORDER_CFGS_CUPRTS =

  • ORDER_CFGS_CUVALS =

  • ORDER_CFGS_CUBLBS =

  • ORDER_CFGS_CUVKS =

  • ORDER_BILLINGPLANS =

  • ORDER_BILLINGDATES =

  • ORDER_CREDITCARDS =

  • EXTENSIONOUT =

  • ORDER_SERVICES =

  • ORDER_SERVICES_TEXT =

  • ORDER_SERVICES_COND =

.

IF lt_return[] IS INITIAL.

ENDIF.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Although my question was not answerred I'm closing it.

I do not need the info anymore.

Best regards,

Tom.